< prev index next >

src/java.corba/share/classes/com/sun/corba/se/spi/orbutil/fsm/Guard.java

Print this page




  76 
  77         public static final Result ENABLED = new Result( "ENABLED" ) ;
  78         public static final Result DISABLED = new Result( "DISABLED" ) ;
  79         public static final Result DEFERED = new Result( "DEFERED" ) ;
  80     }
  81 
  82     /** Called by the state engine to determine whether a
  83     * transition is enabled, defered, or disabled.
  84     * The result is interpreted as follows:
  85     * <ul>
  86     * <li>ENABLED if the transition is ready to proceed
  87     * <li>DISABLED if the transition is not ready to proceed
  88     * <li>DEFERED if the action associated with the transition
  89     * is to be deferred.  This means that the input will not be
  90     * acted upon, but rather it will be saved for later execution.
  91     * Typically this is implemented using a CondVar wait, and the
  92     * blocked thread represents the defered input.  The defered
  93     * input is retried when the thread runs again.
  94     * </ul>
  95     *
  96     * @param FSM fsm is the state machine causing this action.
  97     * @param Input in is the input that caused the transition.
  98     */
  99     public Result evaluate( FSM fsm, Input in ) ;
 100 }
 101 
 102 // end of Action.java


  76 
  77         public static final Result ENABLED = new Result( "ENABLED" ) ;
  78         public static final Result DISABLED = new Result( "DISABLED" ) ;
  79         public static final Result DEFERED = new Result( "DEFERED" ) ;
  80     }
  81 
  82     /** Called by the state engine to determine whether a
  83     * transition is enabled, defered, or disabled.
  84     * The result is interpreted as follows:
  85     * <ul>
  86     * <li>ENABLED if the transition is ready to proceed
  87     * <li>DISABLED if the transition is not ready to proceed
  88     * <li>DEFERED if the action associated with the transition
  89     * is to be deferred.  This means that the input will not be
  90     * acted upon, but rather it will be saved for later execution.
  91     * Typically this is implemented using a CondVar wait, and the
  92     * blocked thread represents the defered input.  The defered
  93     * input is retried when the thread runs again.
  94     * </ul>
  95     *
  96     * @param fsm is the state machine causing this action.
  97     * @param in is the input that caused the transition.
  98     */
  99     public Result evaluate( FSM fsm, Input in ) ;
 100 }
 101 
 102 // end of Action.java
< prev index next >