123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 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;
- }
- }
|