12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- package classes;
- /**
- * The class HolonTransformer represents a Transformer that transforms a flow to a lower flow.
- * Transforemer are not used in the current State of the Project but could be used the future.
- *
- * @author Gruppe14
- *
- */
- public class HolonTransformer extends AbstractCpsObject {
- /* Ratio of the transformer */
- float transformRatio;
- /* Fixed transform value */
- float transformFixed;
-
- float maxInput;
-
- float maxOutput;
- /**
- * Constructor Set type of object (Transformer), its transform ratio and the
- * default name ("Transformer").
- *
- * @param objName name for the Object
- */
- public HolonTransformer(String objName) {
- super(objName);
- }
- /**
- * Copy of the Object.
- *
- * @param obj the Object to Copy
- */
- public HolonTransformer(AbstractCpsObject obj) {
- super(obj);
- this.setTransformRatio(((HolonTransformer) obj).getTransformRatio());
- this.setTransformFixed(((HolonTransformer) obj).getTransformFixed());
- }
- /**
- * Set transform ratio.
- *
- * @param ratio
- * desired ratio
- */
- public void setTransformRatio(float ratio) {
- this.transformRatio = ratio;
- }
- /**
- * Output the actual ratio of the transformer.
- *
- * @return actual ratio of the transformer
- */
- 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;
- }
- /**
- * Get the Output of the Transformer.
- *
- * @return The Output
- */
- public float getOutput() {
- float output = 0;
- return output;
- }
-
- public HolonTransformer makeCopy(){
- return new HolonTransformer(this);
- }
- }
|