public interface

TransitionCondition

uk.ac.imperial.presage2.util.fsm.TransitionCondition
Known Indirect Subclasses

Class Overview

Decides whether a transition may be made from a state given an event.

Summary

Constants
TransitionCondition ALWAYS
Public Methods
abstract boolean allow(Object event, Object entity, State state)
Test whether this state transition is allowed given the event object and current state.

Constants

public static final TransitionCondition ALWAYS

Public Methods

public abstract boolean allow (Object event, Object entity, State state)

Test whether this state transition is allowed given the event object and current state.

Parameters
event The event which is being applied on the state machine.
entity Entity associated with this state machine.
state Current state of the FSM.
Returns
  • true if this transition is allowed from state given event