StateTransitionEvent

class StateTransitionEvent(val agentProcess: AgentProcess, val newState: Any, val previousState: Any? = null) : AbstractAgentProcessEvent

The agent process has transitioned to a new state.

Parameters

newState

the new state instance

previousState

the previous state instance, or null if this is the initial state

Constructors

Link copied to clipboard
constructor(agentProcess: AgentProcess, newState: Any, previousState: Any? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

True if this is the initial state entry (no previous state)

Link copied to clipboard

True if staying in the same state instance (return this)

Link copied to clipboard

True if transitioning to a new instance of the same state type

Link copied to clipboard
Link copied to clipboard
val previousState: Any? = null
Link copied to clipboard
open override val processId: String

ID of the process that this event relates to.

Link copied to clipboard
Link copied to clipboard
open val timestamp: Instant