abstractpublic class AbstractTransition implements Transition(Code)
Abstract
Transition implementation. Takes care of matching the
current
Event 's id against the id of the
Event this
Transition handles. To handle any
Event the id should be set
to
Event.WILDCARD_EVENT_ID .
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 586695 $, $Date: 2007-10-20 04:01:17 -0600 (Sat, 20 Oct 2007) $
Creates a new instance with the specified
State as next state
and for the specified
Event id.
Parameters: eventId - the Event id. Parameters: nextState - the next State.
Executes this
Transition . This method doesn't have to check
if the
Event 's id matches because
AbstractTransition.execute(Event) has
already made sure that that is the case.
Parameters: event - the current Event. true if the Transition has been executed successfully and the StateMachine should move to the next State. false otherwise.