Class Context

    • Field Detail

      • config

        protected final Config config
      • maxChargePower

        protected final int maxChargePower
      • maxDischargePower

        protected final int maxDischargePower
    • Method Detail

      • waitForChangeState

        protected boolean waitForChangeState​(StateMachine.State currentState,
                                             StateMachine.State nextState)
        Helper for a state change. If awaiting hysteresis time exceeded switches from currentState to NextState.
        Parameters:
        currentState - Used to output better log.
        nextState - state which will be switched to.
        Returns:
        boolean true if change state is allowed
      • getChargePower

        protected int getChargePower()
      • getDischargePower

        protected int getDischargePower()