Browse Source

fixed transform value

Kevin Trometer 8 years ago
parent
commit
5ea011f5a2
1 changed files with 22 additions and 0 deletions
  1. 22 0
      src/classes/HolonTransformer.java

+ 22 - 0
src/classes/HolonTransformer.java

@@ -4,6 +4,9 @@ public class HolonTransformer extends CpsObject {
 
 	/* Ratio of the transformer */
 	float transformRatio;
+	
+	/*Fixed transform value */
+	float transformFixed;
 
 	/**
 	 * Constructor Set type of object (Transformer), its transform ratio and the
@@ -41,4 +44,23 @@ public class HolonTransformer extends CpsObject {
 	public float getTransformRatio() {
 		return this.transformRatio;
 	}
+	
+	/**
+	 * Set fixed Transform Value
+	 * 
+	 * @param fixed
+	 *            desired fixed Transform Value
+	 */
+	public void setTransformFixed(float fixed) {
+		this.transformFixed = fixed;
+	}
+
+	/**
+	 * Output the actual fixed Transform Value
+	 * 
+	 * @return actual fixed Transform Value
+	 */
+	public float getTransformFixed() {
+		return this.transformFixed;
+	}
 }