class TransitionMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Event,Transition> |
transitions
The transitions.
|
Constructor and Description |
---|
TransitionMap()
Create the object.
|
Modifier and Type | Method and Description |
---|---|
void |
addTransition(Transition transition)
Add a new transition.
|
Transition |
getTransition(Event event)
Get a transition for the event.
|
java.util.Collection<Transition> |
getTransitions()
Get all defined transitions.
|
java.lang.String |
toString() |
private final java.util.Map<Event,Transition> transitions
public void addTransition(Transition transition) throws FsmException
transition
- the transtionFsmException
- if something failspublic Transition getTransition(Event event)
event
- the eventpublic java.util.Collection<Transition> getTransitions()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2013 Michal Turek, AnotherFSM.