io.sarl.sre.janus.services.lifecycle
Enumeration AgentState
All Superinterfaces:
java.io.Serializable, java.lang.Comparable<T>, java.lang.constant.Constable
sealed enum AgentState
extends java.lang.Object
Describe the states of an agent.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Enumeration Constant Summary
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.
Action Summary
Modifier and type Action 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(String)
static AgentState values
Enumeration Constant Details
ALIVE
static val ALIVE : AgentState
The owner of the event bus is running.
DEAD
static val DEAD : AgentState
The owner of the event bus was destroyed.
DYING
static val DYING : AgentState
The owner of the event bus is under destruction.
INITIALIZING
static val INITIALIZING : AgentState
The agent is under creation.
UNSTARTED
static val UNSTARTED : AgentState
The agent is unstarted: before initialization process.
Action Details
isAlive
def isAlive : boolean
Replies if the state is one of the living states (initializing and alive).
Returns:
true if the state is an agent life state.
Since:
0.7
isAsynchronousEventHandling
def isAsynchronousEventHandling : boolean
Replies if the state accepts asynchronous event handling.
Returns:
true if the state accept event handling.
Since:
0.5
isBlockingEventHandling
def isBlockingEventHandling : boolean
Replies if the state accepts blocking event handling.
Returns:
true if the state accept block event handling.
Since:
0.5
isPostAlive
def isPostAlive : boolean
Replies if the state is after the agent life.
Returns:
true if the state is after the agent life.
Since:
0.5
isPreAlive
def isPreAlive : boolean
Replies if the state is before the agent life.
Returns:
true if the state is before the agent life.
Since:
0.7
valueOf(String)
def valueOf(String) : AgentState
values
def values : AgentState