public class StateTransitionChecker extends Object implements TransitionChecker<State,Message>
| Constructor and Description |
|---|
StateTransitionChecker() |
| Modifier and Type | Method and Description |
|---|---|
Status |
validateArrival(Envelope<State,Message> envelope)
Validates the arrival to a given target state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
|
Status |
validateDeparture(Envelope<State,Message> envelope)
Validates the departure from the current state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
|
public Status validateDeparture(Envelope<State,Message> envelope)
validateDeparture in interface TransitionChecker<State,Message>envelope - the received messagepublic Status validateArrival(Envelope<State,Message> envelope)
validateArrival in interface TransitionChecker<State,Message>envelope - the received messageCopyright © 2019 state-machine. All rights reserved.