public enum AgentState extends Enum<AgentState>
Enum Constant and Description |
---|
ALIVE
The owner of the event bus is running.
|
DEAD
The owner of the event bus was destroyed.
|
DYING
The owner of the event bus is under destruction.
|
INITIALIZING
The agent is under creation.
|
UNSTARTED
The agent is unstarted: before initialization process.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isAlive()
Replies if the state is one of the living states (initializing and alive).
|
abstract boolean |
isAsynchronousEventHandling()
Replies if the state accepts asynchronous event handling.
|
abstract boolean |
isBlockingEventHandling()
Replies if the state accepts blocking event handling.
|
abstract boolean |
isPostAlive()
Replies if the state is after the agent life.
|
abstract boolean |
isPreAlive()
Replies if the state is before the agent life.
|
static AgentState |
valueOf(name : String)
Returns the enum constant of this type with the specified name.
|
static AgentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentState UNSTARTED
public static final AgentState INITIALIZING
public static final AgentState ALIVE
public static final AgentState DYING
public static final AgentState DEAD
public static def
values() : AgentState[]
AgentState
for (AgentState c : AgentState.values()) System.out.println(c);
public static def
valueOf(name : String) : AgentState
AgentState
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract def
isAsynchronousEventHandling() : boolean
AgentState
true
if the state accept event handling.public abstract def
isBlockingEventHandling() : boolean
AgentState
true
if the state accept block event handling.public abstract def
isAlive() : boolean
AgentState
true
if the state is an agent life state.public abstract def
isPreAlive() : boolean
AgentState
true
if the state is before the agent life.public abstract def
isPostAlive() : boolean
AgentState
true
if the state is after the agent life.Copyright © 2021 the original authors or authors.