com.atomikos.finitestates
Class AllowAllTransitionTable<Status>
java.lang.Object
com.atomikos.finitestates.AllowAllTransitionTable<Status>
- All Implemented Interfaces:
- TransitionTable<Status>
public class AllowAllTransitionTable<Status>
- extends Object
- implements TransitionTable<Status>
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(Status from,
Status to)
- This method always returns true.
- Specified by:
legalTransition in interface TransitionTable<Status>
- 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 © 2014. All Rights Reserved.