com.atomikos.finitestates
Class AllowAllTransitionTable
java.lang.Object
com.atomikos.finitestates.AllowAllTransitionTable
- All Implemented Interfaces:
- TransitionTable
public class AllowAllTransitionTable
- extends Object
- implements TransitionTable
A default transition table implementation that allows any
transition without really checking anything.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllowAllTransitionTable
public AllowAllTransitionTable()
legalTransition
public boolean legalTransition(Object from,
Object to)
- This method always returns true.
- Specified by:
legalTransition
in interface TransitionTable
- Parameters:
from
- The start state of the transition.to
- The end state of the transition.
- Returns:
- true if the transition is allowed, false otherwise.
Copyright © 2011. All Rights Reserved.