Class 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é
    • Constructor Detail

      • 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 class FunctionTransition
        Parameters:
        inputs - The input events
        context - The context for the evaluation
        Returns:
        true if the transition fires, false otherwise