Enum IAgent.State

    • Enum Constant Detail

      • STARTED

        public static final IAgent.State STARTED
        The state of a started agent. It is currently active and performing its work.
      • PAUSED

        public static final IAgent.State PAUSED
        The state of a paused agent. Its active status has been temporarily suspended, and it won't be performing its work until it is resumed.
      • STOPPED

        public static final IAgent.State STOPPED
        The state of a stopped agent. A stopped agent is "shut down". It won't perform any work anymore and cannot be re-started.
      • TRANSIENT

        public static final IAgent.State TRANSIENT
        An agent is in a transient state when it is in the middle of a state transition. An agent in a transient state is not allowed to enter another state transition until it is back to a "regular" state.
    • Method Detail

      • values

        public static IAgent.State[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IAgent.State c : IAgent.State.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IAgent.State valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null