de.cau.cs.kieler.synccharts.kivi
Class SignalFlowTrigger

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractTrigger
      extended by de.cau.cs.kieler.synccharts.kivi.SignalFlowTrigger
All Implemented Interfaces:
ITrigger

public class SignalFlowTrigger
extends AbstractTrigger

This trigger is informed whenever the button for the signal flow visualization is pushed.

Rating red

Nested Class Summary
static class SignalFlowTrigger.SignalFlowActiveState
          Contains the state for the signal flow mechanism.
 
Constructor Summary
SignalFlowTrigger()
           
 
Method Summary
 void button(boolean p)
          Called by the signal flow handler when the button is pressed.
static SignalFlowTrigger getInstance()
          Get the faux-singleton instance.
 void register()
          Called when the trigger is activated, e.g., if KIVi is (re-)activated or the first ICombination being fired by such a trigger is loaded.
 void unregister()
          Called when the trigger is deactivated, e.g., if the whole KIVi is deactivated.
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractTrigger
isActive, setActive, synchronizedTrigger, trigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignalFlowTrigger

public SignalFlowTrigger()
Method Detail

getInstance

public static SignalFlowTrigger getInstance()
Get the faux-singleton instance.

Returns:
the instance

register

public void register()
Description copied from class: AbstractTrigger
Called when the trigger is activated, e.g., if KIVi is (re-)activated or the first ICombination being fired by such a trigger is loaded. Registers itself where necessary.

Specified by:
register in interface ITrigger
Specified by:
register in class AbstractTrigger

unregister

public void unregister()
Description copied from class: AbstractTrigger
Called when the trigger is deactivated, e.g., if the whole KIVi is deactivated. Unregisters itself where necessary.

Specified by:
unregister in interface ITrigger
Specified by:
unregister in class AbstractTrigger

button

public void button(boolean p)
Called by the signal flow handler when the button is pressed.

Parameters:
p - true if the button is in the pushed state