public class DotToken extends java.lang.Object implements java.lang.Iterable<DotTokenStep>
Constructor and Description |
---|
DotToken(LocalDotNode startPosition,
java.lang.Double startTime,
boolean fade) |
Modifier and Type | Method and Description |
---|---|
void |
addStepInNode(LocalDotNode node,
java.lang.Double arrivalTime) |
void |
addStepOverEdge(LocalDotEdge edge,
java.lang.Double arrivalTime) |
void |
addSubToken(DotToken token) |
DotTokenStep |
get(int i) |
java.util.Set<DotToken> |
getAllTokensRecursively()
Returns a set containing this token and all its subtokens.
|
LocalDotNode |
getLastPosition()
Returns the last known dot node in this token.
|
DotTokenStep |
getLastStep() |
java.util.Set<DotToken> |
getLastSubTokens()
Returns the set of subtokens that start at the last known position in
this token.
|
java.lang.Double |
getLastTime() |
LocalDotNode |
getStartPosition()
Returns the start dot node of this token.
|
java.lang.Double |
getStartTime()
Returns the start time of this token.
|
java.util.Set<DotToken> |
getSubTokensAtPoint(int index)
Returns a set of tokens that start after the given index.
|
LocalDotNode |
getTarget(int index)
Gets the target dot node after the edge of the given index.
|
java.lang.Double |
getTimestamp(int index)
Gets
|
int |
getTokenDestination(int index)
Given an index, returns the index of the parallel join where index is the
parallel split of.
|
boolean |
hasSubTokensAt(int index)
Returns whether there are subtokens after the given index.
|
boolean |
isAllTimestampsSet()
Returns whether all timestamps have been set
|
boolean |
isFade()
Returns whether this token is supposed to be faded in and out at start
and end.
|
boolean |
isParallelJoin(int index)
Returns whether the position after index is a parallel join, i.e.
|
java.util.Iterator<DotTokenStep> |
iterator() |
void |
setStartTime(double startTime) |
void |
setTimestampOfPoint(int index,
java.lang.Double timestamp) |
int |
size() |
java.lang.String |
toString() |
java.lang.String |
toString(int indent) |
public DotToken(LocalDotNode startPosition, java.lang.Double startTime, boolean fade)
public java.lang.Double getLastTime()
public LocalDotNode getLastPosition()
public LocalDotNode getTarget(int index)
index
- public java.lang.Double getTimestamp(int index)
index
- public void setTimestampOfPoint(int index, java.lang.Double timestamp)
public java.util.Set<DotToken> getAllTokensRecursively()
public void addStepInNode(LocalDotNode node, java.lang.Double arrivalTime)
public void addStepOverEdge(LocalDotEdge edge, java.lang.Double arrivalTime)
public void addSubToken(DotToken token)
public DotTokenStep getLastStep()
public java.util.Set<DotToken> getSubTokensAtPoint(int index)
index
- public java.util.Set<DotToken> getLastSubTokens()
public LocalDotNode getStartPosition()
public void setStartTime(double startTime)
public java.lang.Double getStartTime()
public boolean isFade()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indent)
public boolean hasSubTokensAt(int index)
index
- public int getTokenDestination(int index)
index
- public boolean isParallelJoin(int index)
index
- public boolean isAllTimestampsSet()
public java.util.Iterator<DotTokenStep> iterator()
iterator
in interface java.lang.Iterable<DotTokenStep>
public int size()
public DotTokenStep get(int i)