Class State

java.lang.Object
org.metricshub.ipmi.core.sm.states.State
Direct Known Subclasses:
Authcap, AuthcapWaiting, Ciphers, CiphersWaiting, OpenSessionComplete, OpenSessionWaiting, Rakp1Complete, Rakp1Waiting, Rakp3Complete, Rakp3Waiting, SessionValid, Uninitialized

public abstract class State extends Object
The abstract for state of the StateMachine.
  • Constructor Details

    • State

      public State()
  • Method Details

    • onEnter

      public void onEnter(StateMachine stateMachine)
      Defines the action performed when the state is entered.
      Parameters:
      stateMachine - - the context
    • doTransition

      public abstract void doTransition(StateMachine stateMachine, StateMachineEvent machineEvent)
      Performs the state transition
      Parameters:
      stateMachine - - the context
      machineEvent - - the StateMachineEvent that was the cause of the transition
    • doAction

      public abstract void doAction(StateMachine stateMachine, RmcpMessage message)
      Defines the action that should be performed when a response form the remote system arrives in the current state.
      Parameters:
      stateMachine - - the context
      message - - the message that appeared