Class Context

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Integer maxApparentPower
      MaxApparentPower is guaranteed to be not-null in any State other than NO_LIMIT.
      protected int reserveSoc  
      protected java.lang.Integer soc
      SoC is guaranteed to be not-null in any State other than NO_LIMIT.
      protected Sum sum  
    • Constructor Summary

      Constructors 
      Constructor Description
      Context​(EmergencyCapacityReserve emergencyCapacityReserve, Sum sum, java.lang.Integer maxApparentPower, java.lang.Integer soc, int reserveSoc)  
    • Field Detail

      • sum

        protected final Sum sum
      • maxApparentPower

        public final java.lang.Integer maxApparentPower
        MaxApparentPower is guaranteed to be not-null in any State other than NO_LIMIT.
      • soc

        protected final java.lang.Integer soc
        SoC is guaranteed to be not-null in any State other than NO_LIMIT.
      • reserveSoc

        protected final int reserveSoc
    • Constructor Detail

      • Context

        public Context​(EmergencyCapacityReserve emergencyCapacityReserve,
                       Sum sum,
                       java.lang.Integer maxApparentPower,
                       java.lang.Integer soc,
                       int reserveSoc)
    • Method Detail

      • getTargetPower

        public java.lang.Float getTargetPower()
      • setTargetPower

        protected void setTargetPower​(java.lang.Float targetPower)
      • setTargetPower

        protected void setTargetPower​(java.lang.Integer targetPower)
      • getRampPower

        public float getRampPower()
      • setRampPower

        protected void setRampPower​(java.lang.Double rampPower)
      • setRampPower

        protected void setRampPower​(float rampPower)
      • setRampPower

        protected void setRampPower​(int rampPower)