public class EventSources extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TRIGGER_ON_EMPTY |
Constructor and Description |
---|
EventSources() |
EventSources(EventSource initialEvent) |
EventSources(int previousEventCount) |
Modifier and Type | Method and Description |
---|---|
void |
add(EventSource eventSource) |
void |
compact()
Compact event sources.
|
void |
debug() |
EventSource |
getById(String id) |
int |
getEventCount() |
ArrayList<EventSource> |
getEventSources() |
HashMap<String,EventSource> |
getEventTriggers(PlanItem planItem) |
int |
getPreviousEventCount() |
public static final int TRIGGER_ON_EMPTY
public EventSources()
public EventSources(int previousEventCount)
public EventSources(EventSource initialEvent)
public int getEventCount()
public int getPreviousEventCount()
public EventSource getById(String id)
public HashMap<String,EventSource> getEventTriggers(PlanItem planItem)
public ArrayList<EventSource> getEventSources()
public void compact()
Compact event sources. 'exit' events overwrite any other events for the same plan item. If we have an exit event for a plan item, event sources
for the same plan item with an event (transition) other than 'exit' are eliminated.
Reset the previousEventCount
value to the new size of eventSources
after compaction.
public void add(EventSource eventSource)
public void debug()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.