com.atomikos.finitestates
Class AllowAllTransitionTable<Status>

java.lang.Object
  extended by 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.


Constructor Summary
AllowAllTransitionTable()
           
 
Method Summary
 boolean legalTransition(Status from, Status to)
          This method always returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowAllTransitionTable

public AllowAllTransitionTable()
Method Detail

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.