com.atomikos.finitestates
Class AllowAllTransitionTable

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


Constructor Summary
AllowAllTransitionTable()
           
 
Method Summary
 boolean legalTransition(Object from, Object 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(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.