Class AgentConfigManager.AgentState

    • Constructor Detail

      • AgentState

        public AgentState()
    • Method Detail

      • setState

        public void setState​(int newState)
        Sets the new state independent from the current state.
        Specified by:
        setState in interface AgentState
        Parameters:
        newState - the new state.
      • advanceState

        public void advanceState​(int newState)
        Advance the state to the given state. If the current state is greater than the provided state, the current state will not be changed.
        Specified by:
        advanceState in interface AgentState
        Parameters:
        newState - the new minimum state.
      • addError

        public void addError​(AgentState.ErrorDescriptor error)
        Add an error description to the internal error list.
        Specified by:
        addError in interface AgentState
        Parameters:
        error - an ErrorDescriptor instance to add.