Iterator iter = gas.iterator() ;
// Search for a guard that is not DISABLED.
// All DISABLED means use defaults.
while (iter.hasNext()) {
GuardedAction ga = (GuardedAction)iter.next() ;
Guard.Result gr = ga.getGuard().evaluate( fsm, in ) ;
if (debug)
ORBUtility.dprint( this,
"doIt: evaluated " + ga + " with result " + gr ) ;
if (gr == Guard.Result.ENABLED) {
// ga has the next state and action.
nextState = (StateImpl)ga.getNextState() ;
action = ga.getAction() ;
if (debug) {
ORBUtility.dprint( this, "nextState = " + nextState ) ;
ORBUtility.dprint( this, "action = " + action ) ;
}
break ;