de.cau.cs.kieler.sim.kivi
Class StateActivityTrigger.ActiveStates

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractTriggerState
      extended by de.cau.cs.kieler.sim.kivi.StateActivityTrigger.ActiveStates
All Implemented Interfaces:
ITriggerState
Enclosing class:
StateActivityTrigger

public static final class StateActivityTrigger.ActiveStates
extends AbstractTriggerState

Contains the currently active states.

Rating red

Constructor Summary
StateActivityTrigger.ActiveStates()
          Default Constructor.
 
Method Summary
 List<List<EObject>> getActiveStates()
          Get the list of states that were active in a specific step, i.e.
 List<EObject> getCurrentActiveStates()
          Get list of currently active states in this step.
 org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor getDiagramEditor()
          Get the diagram editor where the simulation is running.
 List<EObject> getHistoryStates()
          Get list of all states that are active or that have been active.
 Class<? extends ITrigger> getTriggerClass()
          Get the trigger class associated with this trigger state.
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractTriggerState
finish, getKeyClass, getSequenceNumber, merge, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateActivityTrigger.ActiveStates

public StateActivityTrigger.ActiveStates()
Default Constructor.

Method Detail

getTriggerClass

public Class<? extends ITrigger> getTriggerClass()
Get the trigger class associated with this trigger state.

Returns:
the trigger class

getActiveStates

public List<List<EObject>> getActiveStates()
Get the list of states that were active in a specific step, i.e. a list of lists. The outer list corresponds to the steps.

Returns:
the list of lists of active states

getCurrentActiveStates

public List<EObject> getCurrentActiveStates()
Get list of currently active states in this step.

Returns:
list of active states

getHistoryStates

public List<EObject> getHistoryStates()
Get list of all states that are active or that have been active.

Returns:
list of active and history states

getDiagramEditor

public org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor getDiagramEditor()
Get the diagram editor where the simulation is running.

Returns:
the diagram editor