Package com.embabel.agent.api.event
Class StateTransitionEvent
-
- All Implemented Interfaces:
-
com.embabel.agent.api.event.AgentProcessEvent,com.embabel.agent.api.event.AgenticEvent,com.embabel.agent.core.InProcess,com.embabel.common.core.types.Timestamped
public final class StateTransitionEvent extends AbstractAgentProcessEvent
The agent process has transitioned to a new state.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisInitialStateprivate final BooleanisSameInstanceprivate final BooleanisSameTypeprivate final ObjectnewStateprivate final ObjectpreviousStateprivate final Instanttimestampprivate final StringprocessIdprivate final List<ActionInvocation>historyprivate final AgentProcessStatusReportstatusprivate final AgentProcessagentProcess
-
Constructor Summary
Constructors Constructor Description StateTransitionEvent(AgentProcess agentProcess, Object newState, Object previousState)
-
Method Summary
Modifier and Type Method Description final BooleanisInitialState()final BooleanisSameInstance()final BooleanisSameType()final ObjectgetNewState()final ObjectgetPreviousState()-
-
Constructor Detail
-
StateTransitionEvent
StateTransitionEvent(AgentProcess agentProcess, Object newState, Object previousState)
- Parameters:
newState- the new state instancepreviousState- the previous state instance, or null if this is the initial state
-
-
Method Detail
-
isInitialState
final Boolean isInitialState()
-
isSameInstance
final Boolean isSameInstance()
-
isSameType
final Boolean isSameType()
-
getNewState
final Object getNewState()
-
getPreviousState
final Object getPreviousState()
-
-
-
-