org.glassfish.pfl.basic.fsm
Interface Guard

All Known Implementing Classes:
Guard.Base

public interface Guard

Author:
Ken Cavanaugh

Nested Class Summary
static class Guard.Base
           
static class Guard.Result
           
 
Method Summary
 Guard.Result evaluate(FSM fsm, Input in)
          Called by the state engine to determine whether a transition is enabled, defered, or disabled.
 

Method Detail

evaluate

Guard.Result evaluate(FSM fsm,
                      Input in)
Called by the state engine to determine whether a transition is enabled, defered, or disabled. The result is interpreted as follows:

Parameters:
fsm - is the state machine causing this action.
in - is the input that caused the transition.


Copyright © 2013 Oracle. All Rights Reserved.