de.cau.cs.kieler.core.kivi
Interface ITriggerListener

All Known Subinterfaces:
ICombination
All Known Implementing Classes:
AbstractCombination, E2STransformationCombination, HighlightSelectedTransitionsCombination, KiviMenuContributionDemoCombination, KSBasECombination, LayoutAfterCollapseExpandCombination, LayoutAfterDiagramReinitCombination, LayoutAfterModelChangedCombination, LayoutAnalysisCombination, LayoutCombination, ManualFocusCombination, RandomLayoutCombination, ShowGraphitiHierarchyCombination, ShowHierarchyCombination, SignalFlowCombination, StateMachineCombination, SyncChartsCombination, TestCombinationA, TestCombinationB, TestCombinationEffectsTrigger, TestCombinationEffectsTrigger2, TestCombinationManyExecutes, TestCombinationNoExecute, TestCombinationOverlappingParameters, TestCombinationSpammer, TestCombinationSpammerSynchronized, TestCombinationTwoEffects, TestCombinationUndo, TestCombinationWrongParameterType, UpdateVisibilityCombination

public interface ITriggerListener

An interface for listeners of ITriggerState changes. Subclasses should specify for which kinds of trigger states they want to receive notifications in getTriggerStates() and a specific trigger state needs to be handled in handle(ITriggerState).

Implementations are then registered and coordinated by KiVi.

Rating red

Method Summary
 Class<? extends ITriggerState>[] getTriggerStates()
          Get the array of trigger state classes this combination listens to.
 void handle(ITriggerState triggerState)
          Handle one specific trigger state that just changed.
 

Method Detail

getTriggerStates

Class<? extends ITriggerState>[] getTriggerStates()
Get the array of trigger state classes this combination listens to.

Returns:
array of trigger states

handle

void handle(ITriggerState triggerState)
Handle one specific trigger state that just changed.

Parameters:
triggerState - the trigger state responsible for the triggering