public class InstanceTime
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
protected boolean |
clearOnReset
Whether this InstanceTime should be removed from an element's
begin or end instance time lists upon reset.
|
protected TimingSpecifier |
creator
The
TimingSpecifier that created this InstanceTime. |
protected float |
time
The time.
|
Constructor and Description |
---|
InstanceTime(TimingSpecifier creator,
float time,
boolean clearOnReset)
Creates a new InstanceTime.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compares this InstanceTime with another.
|
(package private) float |
dependentUpdate(float newTime)
Called by the dependent Interval to indicate that its time
has changed.
|
boolean |
getClearOnReset()
Returns whether the InstanceTime should be removed from the
element's begin or end instance time list when it is reset.
|
float |
getTime()
Returns the time of this instance time.
|
java.lang.String |
toString()
Returns a string representation of this InstanceTime.
|
protected float time
protected TimingSpecifier creator
TimingSpecifier
that created this InstanceTime.protected boolean clearOnReset
public InstanceTime(TimingSpecifier creator, float time, boolean clearOnReset)
creator
- the TimingSpecifier that created this InstanceTimetime
- the new time, in parent simple timeclearOnReset
- whether this InstanceTime should be removed from
an instance time list upon element resetpublic boolean getClearOnReset()
public float getTime()
float dependentUpdate(float newTime)
newTime
- the new time, in parent simple timepublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable