Package ca.uqac.lif.cep.fsm
Class TransitionOtherwise
- java.lang.Object
-
- ca.uqac.lif.cep.fsm.MooreMachine.Transition
-
- ca.uqac.lif.cep.fsm.FunctionTransition
-
- ca.uqac.lif.cep.fsm.TransitionOtherwise
-
- All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable
public final class TransitionOtherwise extends FunctionTransition
Represents the "otherwise" transition in the Moore machine- Author:
- Sylvain Hallé
-
-
Field Summary
-
Fields inherited from class ca.uqac.lif.cep.fsm.FunctionTransition
m_assignments, m_destination, m_function
-
-
Constructor Summary
Constructors Constructor Description TransitionOtherwise(int destination)
TransitionOtherwise(int destination, ca.uqac.lif.cep.functions.ContextAssignment assignment)
TransitionOtherwise(int destination, ca.uqac.lif.cep.functions.ContextAssignment... assignments)
TransitionOtherwise(TransitionOtherwise t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransitionOtherwise
duplicate(boolean with_state)
boolean
isFired(java.lang.Object[] inputs, ca.uqac.lif.cep.Context context)
Determines if the transition fires for the given inputjava.lang.String
toString()
-
Methods inherited from class ca.uqac.lif.cep.fsm.FunctionTransition
getDestination, modifyContext
-
Methods inherited from class ca.uqac.lif.cep.fsm.MooreMachine.Transition
duplicate, reset
-
-
-
-
Constructor Detail
-
TransitionOtherwise
public TransitionOtherwise(TransitionOtherwise t)
-
TransitionOtherwise
public TransitionOtherwise(int destination)
-
TransitionOtherwise
public TransitionOtherwise(int destination, ca.uqac.lif.cep.functions.ContextAssignment assignment)
-
TransitionOtherwise
public TransitionOtherwise(int destination, ca.uqac.lif.cep.functions.ContextAssignment... assignments)
-
-
Method Detail
-
isFired
public boolean isFired(java.lang.Object[] inputs, ca.uqac.lif.cep.Context context)
Description copied from class:MooreMachine.Transition
Determines if the transition fires for the given input- Overrides:
isFired
in classFunctionTransition
- Parameters:
inputs
- The input eventscontext
- The context for the evaluation- Returns:
true
if the transition fires,false
otherwise
-
duplicate
public TransitionOtherwise duplicate(boolean with_state)
- Specified by:
duplicate
in interfaceca.uqac.lif.cep.Duplicable
- Overrides:
duplicate
in classFunctionTransition
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFunctionTransition
-
-