public class EventTree extends java.lang.Object implements EventConstructor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_KEY |
protected Event |
root |
Modifier | Constructor and Description |
---|---|
protected |
EventTree() |
protected |
EventTree(Event root) |
Modifier and Type | Method and Description |
---|---|
void |
addPath(Event... path)
extend this tree with a new path
|
boolean |
checkPath(Event lastEvent)
this should be overridden in case we want to check if this is an expected trace
The generic form can only check if this is a valid end event.
|
boolean |
checkPath(Event lastEvent,
java.lang.String[] pathSpecs) |
Event |
createRoot()
this is our purpose in life, which has to be provided by concrete subclasses
|
int |
getMaxDepth() |
float |
getPathCoverage()
override this if the concrete model keeps track of coverage
|
Event |
getRoot() |
Event |
interleave(Event... otherTrees) |
EventTree |
interleave(EventTree... otherTrees) |
boolean |
isCompletelyCovered()
override this if the concrete model can keep track of coverage
call at the end of execution
|
void |
printPaths() |
void |
printTree() |
Event |
removeSource(java.lang.Object source) |
java.util.List<Event> |
visibleEndEvents() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alternatives, anyCombination, anyPermutation, event, event, generatePermutation, iteration, sequence
public static final java.lang.String CONFIG_KEY
protected Event root
protected EventTree()
protected EventTree(Event root)
public Event createRoot()
public Event getRoot()
public java.util.List<Event> visibleEndEvents()
public void printPaths()
public void printTree()
public boolean checkPath(Event lastEvent)
public boolean checkPath(Event lastEvent, java.lang.String[] pathSpecs)
public float getPathCoverage()
public boolean isCompletelyCovered()
public void addPath(Event... path)
public Event removeSource(java.lang.Object source)
public int getMaxDepth()