| java.lang.Object com.sun.perseus.model.TimeInstance
All known Subclasses: com.sun.perseus.model.IntervalTimeInstance,
TimeInstance | class TimeInstance (Code) | | Base class for representing time instances in a
TimedElementSupport 's begin and end instance times lists.
version: $Id: TimeInstance.java,v 1.2 2006/04/21 06:39:25 st125089 Exp $ |
Constructor Summary | |
public | TimeInstance(TimedElementSupport timedElement, Time time, boolean clearOnReset, boolean isBegin) Builds an instance time for the input TimedElementSupport
and time. |
Method Summary | |
void | setTime(Time newTime) Updates this instance time. |
clearOnReset | boolean clearOnReset(Code) | | If true, this TimeInstance should be cleared from
the TimedElementSupport intance list on reset.
|
isBegin | boolean isBegin(Code) | | True if this instance is in the begin instance list.
Fals if it is part of an end instance list.
|
TimeInstance | public TimeInstance(TimedElementSupport timedElement, Time time, boolean clearOnReset, boolean isBegin)(Code) | | Builds an instance time for the input TimedElementSupport
and time. The constructor will insert the Instance
automatically into the TimedElementSupport corresponding
instance list.
Parameters: timedElement - the associated TimedElementSupport Parameters: time - the instance time value. Parameters: clearOnReset - defines whether or not this instance shouldbe cleared from instance times lists on reset. Parameters: isBegin - true if this object is part of the timedElement's begin instance list. throws: NullPointerException - if time or timedElement is null |
setTime | void setTime(Time newTime)(Code) | | Updates this instance time. This notifies the associated
TimedElementSupport through its instanceUpdate
method.
Parameters: newTime - the new instance time. Should not be null. throws: NullPointerException - if newTime is null. |
|
|