|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.elements.StateTime
public class StateTime
This class represents the time that a State occurs, including several variables, such as whether the time is concrete or relative to some other time, and if so, what time it is relative to.
Field Summary | |
---|---|
static StateTime |
INTERP
|
static StateTime |
PROPERTY
|
static StateTime |
TIME_0
|
static StateTime |
TIME_1
|
static StateTime |
TIME_NEG1
|
static StateTime |
UNBOUNDED
|
static StateTime |
VIRTUAL
|
Constructor Summary | |
---|---|
StateTime(StateTime prototype)
Constructor that clones another StateTime. |
|
StateTime(StateTimeType timeType,
double timeIndex)
Constructor for an absolute time. |
|
StateTime(java.lang.String in)
Constructor that parses information from a string. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object other)
|
int |
compareTo(StateTime other)
Compares two StateTimes in a way consistent with other CompareTo functions in Java |
boolean |
equals(java.lang.Object otherObject)
Determines if this StateTime is equivalent to another StateTime. |
double |
getTimeIndex()
Returns the time index of the StateTime. |
StateTimeType |
getTimeType()
Returns the StateTimeType of the StateTime. |
boolean |
greaterThan(StateTime other)
Determines if this StateTime is greater than another StateTime. |
boolean |
hasTimeIndex()
Returns whether this StateTime has a time index (i.e., is not Virtual or Unbounded) |
java.lang.StringBuffer |
render()
Serialize the StateTime. |
java.lang.StringBuffer |
renderForHumans()
Render the StateTime in a way that is not reinterpretable by the StateTime(String) constructor, but is nicer for humans to read. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StateTime TIME_0
public static final StateTime TIME_NEG1
public static final StateTime TIME_1
public static final StateTime VIRTUAL
public static final StateTime UNBOUNDED
public static final StateTime PROPERTY
public static final StateTime INTERP
Constructor Detail |
---|
public StateTime(StateTimeType timeType, double timeIndex) throws Scheherexception
Scheherexception
public StateTime(StateTime prototype)
public StateTime(java.lang.String in) throws Scheherexception
Scheherexception
Method Detail |
---|
public boolean equals(java.lang.Object otherObject)
equals
in interface TimelineTime
equals
in class java.lang.Object
public boolean greaterThan(StateTime other) throws Scheherexception
Scheherexception
public java.lang.StringBuffer render()
render
in interface RenderableObject
render
in interface TimelineTime
public int compareTo(StateTime other)
public int compareTo(java.lang.Object other) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
public boolean hasTimeIndex()
public double getTimeIndex() throws Scheherexception
Scheherexception
public StateTimeType getTimeType()
public java.lang.StringBuffer renderForHumans()
renderForHumans
in interface TimelineTime
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |