|
XMT-O Reference Software | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xmto2xmta.timegraph.Container | +--xmto2xmta.timegraph.TimeContainer
Time container in timing graph. Parent of all actual timed elements.
History:
Field Summary | |
private int |
accIterationCount
|
private Time |
accIterationDur
|
static int |
BEGIN
|
private ContainerLife |
containerLife
|
private Interval |
currentInterval
|
private Time |
curSamplingTime
|
private Time |
dur
|
private int |
durType
|
static int |
DURTYPE_MEDIA
|
static java.lang.String[] |
DURTYPE_NAME
|
static int |
DURTYPE_TIMEVALUE
|
static int |
DURTYPE_UNSPECIFIED
|
static int |
END
|
private boolean |
endSpecifiedDetermined
|
private boolean |
endSpecifiedResult
|
static int |
ENDSYNC_ALL
|
static int |
ENDSYNC_FIRST
|
static int |
ENDSYNC_ID
|
static int |
ENDSYNC_LAST
|
static int |
ENDSYNC_MEDIA
|
static java.lang.String[] |
ENDSYNC_NAME
|
private java.lang.Integer |
endsyncID
|
private int |
endsyncRule
|
private java.util.Vector |
eventDependents
|
private int |
fill
|
static int |
FILL_AUTO
|
static int |
FILL_DEFAULT
|
static int |
FILL_FREEZE
|
static int |
FILL_HOLD
|
static int |
FILL_INHERIT
|
static java.lang.String[] |
FILL_NAME
|
static int |
FILL_REMOVE
|
static int |
FILL_TRANSITION
|
private int |
fillDefault
|
private LifeInterval |
fillInterval
|
private boolean |
fillTime
|
private java.util.HashMap |
globalToLocalTimeCache
|
private boolean |
hasStarted
|
private Time |
implicitDur
|
private InstanceTimeList[] |
instanceTimeList
|
private Time |
intrinsicDur
|
private Time |
lastActiveEnd
|
private Time |
lifeBegin
|
private java.util.Vector |
lifeHistory
|
private LifeInterval |
lifeInterval
|
private Time |
max
|
private int |
maxType
|
private Time |
min
|
static int |
MINMAX_MEDIA
|
static java.lang.String[] |
MINMAX_NAME
|
static int |
MINMAX_TIMEVALUE
|
private int |
minType
|
private Time |
naturalEnd
|
private float |
repeatCount
|
private boolean |
repeatCountIndefinite
|
private boolean |
repeatCountSpecified
|
private Time |
repeatDur
|
private boolean |
repeatDurSpecified
|
private int |
restart
|
static int |
RESTART_ALWAYS
|
static int |
RESTART_DEFAULT
|
static int |
RESTART_INHERIT
|
static java.lang.String[] |
RESTART_NAME
|
static int |
RESTART_NEVER
|
static int |
RESTART_WHENNOTACTIVE
|
private int |
restartDefault
|
private boolean |
siblingSaysNoFill
|
private Time |
simpleDur
|
private int |
state
|
static int |
STATE_ACTIVE
|
static int |
STATE_DEAD
|
static java.lang.String[] |
STATE_NAME
|
static int |
STATE_WAITING
|
private java.util.Vector |
syncbaseDependents
|
private java.util.Vector[] |
syncConditions
The following section contains timing attributes from the XMT-O doc element. |
Fields inherited from class xmto2xmta.timegraph.Container |
children, errWriter, id, parent, timeGraph, writer |
Constructor Summary | |
TimeContainer()
|
|
TimeContainer(java.lang.Integer id,
Container parent)
|
|
TimeContainer(TimeGraph timeGraph,
java.lang.Integer id,
Container parent)
|
Method Summary | |
private boolean |
addInstanceTime(TimeContainer syncbase,
Interval interval,
boolean begin)
add a new syncbase interval to the begin or end instance time list. |
void |
beginSimpleDuration()
Element is starting a new simple duration now. |
private Time[] |
calcActiveEnd(Time begin)
|
private Time[] |
calcActiveEnd(Time begin,
Time endConstraint)
|
private boolean |
changeCurInstanceTime(TimeContainer syncbase,
Interval interval,
boolean begin)
A syncbase element changed its current interval. |
void |
changeIntervalNotice(TimeContainer syncbase,
Interval interval)
Called by a syncbase element. |
void |
childHasEnded()
Called by a child when it ends its active interval. |
private void |
clearAllEventInstanceTimes(java.util.Vector conditions,
InstanceTimeList instanceTimeList)
When an element restarts, all event-based instance times must be cleared. |
Time[] |
computeActiveDur(Time begin)
|
Time[] |
computeActiveDur(Time begin,
Time end)
Compute active duration that begins at a definite time, and constrained by the end time (if the end time is resolved). |
protected Time |
computeImplicitDur()
Compute the implicit dur of the element. |
private Time |
computeIntermediateActiveDur()
|
Time |
computeIntrinsicDur()
|
Time |
computeSimpleDur()
|
Time |
convertFromAscendantToLocalTime(TimeContainer ascendant,
Time ascendantTime)
Convert an ascendant's local time to my local time. |
private Interval |
convertFromGlobalIntervalToLocal(Interval interval)
Convert an interval in global time to local time. |
Time |
convertFromGlobalToLocalTime(Time globalTime)
Convert a global time to a local time and return the local time. |
Time |
convertFromLocalToGlobalTime(Time localTime)
|
Time |
convertLocalToAscendantTime(TimeContainer ascendant,
Time myLocalTime)
Convert an element's local time (in parent's simple time) to the ascendant's simple time. |
Time |
convertRemoteToLocalTime(TimeContainer fromContainer,
Time fromTime)
Convert another element's local time (i.e., parent simple time), to this element's local time. |
private void |
deleteCurInstanceTime(TimeContainer syncbase,
boolean begin)
A syncbase element deleted its current interval. |
void |
deleteIntervalNotice(TimeContainer syncbase)
Called by a syncbase element. |
boolean |
durSpecified()
|
void |
endCurInterval()
Element is scheduled to end the current active interval now. |
private boolean |
endHasEventConditions()
|
void |
endNaturalInterval()
End the current natural (no min) interval |
void |
endSimpleDuration()
Element is ending the current simple duration now. |
boolean |
endSpecified()
|
void |
fastForwardMedia()
Element begins earlier than the parent simple time. |
private void |
freeze()
|
int |
getAccIterationCount()
|
Time |
getAccIterationDur()
|
java.util.Vector |
getBeginConditions()
|
InstanceTimeList |
getBeginInstanceTimeList()
|
Interval |
getCurrentInterval()
|
Time |
getCurrentLocalTime()
Get the current local time in parent simple time. |
Time |
getCurrentTime()
Get the current global time. |
Time |
getDur()
|
int |
getDurType()
|
java.util.Vector |
getEndConditions()
|
InstanceTimeList |
getEndInstanceTimeList()
|
java.lang.Integer |
getEndsyncID()
|
int |
getEndsyncRule()
|
java.util.Vector |
getEventDependents()
|
int |
getFill()
|
int |
getFillDefault()
|
Time |
getImplicitDur()
|
Time |
getIntrinsicDur()
|
java.util.Vector |
getLifeHistory()
|
Time |
getMax()
|
int |
getMaxType()
|
Time |
getMin()
|
int |
getMinType()
|
private Interval |
getNextActiveInterval(Time beginAfter,
Time minEndTime,
boolean skipZeroSizeInterval)
|
private Time[] |
getNextEndTime(Time begin)
Given a begin time, compute the nearest end time that comes at or after the begin time. |
float |
getRepeatCount()
|
Time |
getRepeatDur()
|
int |
getRestart()
|
int |
getRestartDefault()
|
Time |
getSimpleDur()
|
int |
getState()
|
java.util.Vector |
getSyncbaseDependents()
|
boolean |
hasResolvedBegin(Time from)
|
boolean |
hasStarted()
|
boolean |
isActiveOrDead()
|
boolean |
isRepeatCountIndefinite()
|
boolean |
isRepeatCountSpecified()
|
boolean |
isRepeatDurSpecified()
|
void |
newIntervalNotice(TimeContainer syncbase,
Interval interval)
Called by a syncbase element. |
void |
nextSamplingTime(Time globalTime,
java.lang.String msg)
|
private void |
recomputeActiveCurIntervalEndTime()
|
private void |
recomputeNextWaitingInterval()
|
private void |
release()
|
void |
removeSamplingTime(Time globalTime)
|
void |
removeSyncbaseInstanceTimes(TimeContainer whoRestarted)
Called by the parent when an ancestor is reset. |
private void |
removeSyncbaseInstanceTimes(TimeContainer whoRestarted,
java.util.Vector conditions,
InstanceTimeList instanceTimeList)
|
boolean |
repeatCountSpecified()
|
boolean |
repeatDurSpecified()
|
void |
repeatSimpleDuration()
|
void |
reset(TimeContainer whoRestarted,
ELASid parentELASid)
Called by the parent when the parent's simple duration begins at the start of a new active duration or at each repeat. |
private void |
resyncSyncbaseInstanceTimes(TimeContainer whoStarted,
java.util.Vector conditions,
InstanceTimeList instanceTimeList)
When an element is reset, must resync the syncbase instance times. |
void |
sample()
The main entry point for the time container. |
void |
sendChangeIntervalNotice()
Notify all syncbase and event dependents of a change in current interval. |
void |
sendDeleteIntervalNotice()
Notify all syncbase dependents that the current interval is deleted. |
void |
sendNewIntervalNotice()
Notify all syncbase and event dependents of a new current interval. |
void |
setBeginConditions(java.util.Vector conditions)
|
void |
setDur(int durType,
Time dur)
|
void |
setEndConditions(java.util.Vector conditions)
|
void |
setEndsyncRule(int endsyncRule)
|
void |
setEndsyncRule(int endsyncRule,
java.lang.Integer endsyncID)
|
void |
setEventDependents(java.util.Vector dependents)
|
void |
setFill(int fill)
|
void |
setFillDefault(int fillDefault)
|
void |
setImplicitDur(Time implicitDur)
|
void |
setIntrinsicDur(Time intrinsicDur)
|
void |
setMax(int maxType,
Time max)
|
void |
setMin(int minType,
Time min)
|
void |
setRepeatCount(float repeatCount)
|
void |
setRepeatCountIndefinite()
|
void |
setRepeatDur(Time repeatDur)
|
void |
setRestart(int restart)
|
void |
setRestartDefault(int restartDefault)
|
void |
setSimpleDur(Time simpleDur)
|
void |
setSyncbaseDependents(java.util.Vector dependents)
|
private void |
startFill()
|
void |
startNewInterval()
Element is scheduled to start a new active interval now. |
void |
stop()
|
void |
stop(ELASid elasid)
Called by the parent when the parent's simple duration ends at the end of the parent's active interval or at each repeat. |
void |
stopCurInterval()
Stop the currently running active interval now. |
private void |
stopFill()
|
private void |
stopFillBySibling()
|
private void |
stopPrevSiblingFill()
|
protected boolean |
timeContainerHasEnded()
Decide if the time container simple interval has ended by now based on the endsync rule. |
Methods inherited from class xmto2xmta.timegraph.Container |
addChild, children, getChildren, getCommonAscendant, getID, getNextChild, getParent, getPrevChild, getRoot, getTimeGraph, hasEvent, isAscendantOf, isCommonAscendantOf, setID, setParent, setTimeGraph |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int STATE_DEAD
public static final int STATE_ACTIVE
public static final int STATE_WAITING
public static final java.lang.String[] STATE_NAME
public static final int FILL_DEFAULT
public static final int FILL_REMOVE
public static final int FILL_FREEZE
public static final int FILL_HOLD
public static final int FILL_TRANSITION
public static final int FILL_AUTO
public static final int FILL_INHERIT
public static final java.lang.String[] FILL_NAME
public static final int RESTART_DEFAULT
public static final int RESTART_ALWAYS
public static final int RESTART_WHENNOTACTIVE
public static final int RESTART_NEVER
public static final int RESTART_INHERIT
public static final java.lang.String[] RESTART_NAME
public static final int ENDSYNC_MEDIA
public static final int ENDSYNC_LAST
public static final int ENDSYNC_ALL
public static final int ENDSYNC_FIRST
public static final int ENDSYNC_ID
public static final java.lang.String[] ENDSYNC_NAME
public static final int DURTYPE_UNSPECIFIED
public static final int DURTYPE_TIMEVALUE
public static final int DURTYPE_MEDIA
public static final java.lang.String[] DURTYPE_NAME
public static final int MINMAX_TIMEVALUE
public static final int MINMAX_MEDIA
public static final java.lang.String[] MINMAX_NAME
public static final int BEGIN
public static final int END
private java.util.Vector[] syncConditions
private int durType
private Time dur
private boolean repeatCountSpecified
private float repeatCount
private boolean repeatCountIndefinite
private boolean repeatDurSpecified
private Time repeatDur
private int restart
private int restartDefault
private int fill
private int fillDefault
private int minType
private Time min
private int maxType
private Time max
private int endsyncRule
private java.lang.Integer endsyncID
private java.util.Vector syncbaseDependents
private java.util.Vector eventDependents
private InstanceTimeList[] instanceTimeList
private java.util.HashMap globalToLocalTimeCache
private java.util.Vector lifeHistory
private ContainerLife containerLife
private LifeInterval lifeInterval
private LifeInterval fillInterval
private boolean fillTime
private int state
private Time intrinsicDur
private Time implicitDur
private Time simpleDur
private Time naturalEnd
private Interval currentInterval
private int accIterationCount
private Time accIterationDur
private boolean hasStarted
private Time lifeBegin
private Time lastActiveEnd
private Time curSamplingTime
private boolean siblingSaysNoFill
private boolean endSpecifiedDetermined
private boolean endSpecifiedResult
Constructor Detail |
public TimeContainer()
public TimeContainer(java.lang.Integer id, Container parent)
public TimeContainer(TimeGraph timeGraph, java.lang.Integer id, Container parent)
Method Detail |
public void setBeginConditions(java.util.Vector conditions)
public java.util.Vector getBeginConditions()
public void setEndConditions(java.util.Vector conditions)
public java.util.Vector getEndConditions()
public void setSyncbaseDependents(java.util.Vector dependents)
public java.util.Vector getSyncbaseDependents()
public void setEventDependents(java.util.Vector dependents)
public java.util.Vector getEventDependents()
public void setDur(int durType, Time dur)
public int getDurType()
public Time getDur()
public void setRepeatCount(float repeatCount)
public void setRepeatCountIndefinite()
public boolean isRepeatCountSpecified()
public boolean isRepeatCountIndefinite()
public float getRepeatCount()
public void setRepeatDur(Time repeatDur)
public boolean isRepeatDurSpecified()
public Time getRepeatDur()
public void setMin(int minType, Time min)
public int getMinType()
public Time getMin()
public void setMax(int maxType, Time max)
public int getMaxType()
public Time getMax()
public void setRestart(int restart)
public int getRestart()
public void setRestartDefault(int restartDefault)
public int getRestartDefault()
public void setFill(int fill)
public int getFill()
public void setFillDefault(int fillDefault)
public int getFillDefault()
public void setEndsyncRule(int endsyncRule, java.lang.Integer endsyncID)
public void setEndsyncRule(int endsyncRule)
public int getEndsyncRule()
public java.lang.Integer getEndsyncID()
public void setIntrinsicDur(Time intrinsicDur)
public Time getIntrinsicDur()
public void setImplicitDur(Time implicitDur)
public Time getImplicitDur()
public void setSimpleDur(Time simpleDur)
public Time getSimpleDur()
public Time getAccIterationDur()
public int getAccIterationCount()
public boolean isActiveOrDead()
public boolean hasStarted()
public Interval getCurrentInterval()
public boolean hasResolvedBegin(Time from)
public boolean endSpecified()
public boolean durSpecified()
public boolean repeatDurSpecified()
public boolean repeatCountSpecified()
public int getState()
public InstanceTimeList getBeginInstanceTimeList()
public InstanceTimeList getEndInstanceTimeList()
public java.util.Vector getLifeHistory()
public void sample()
public void nextSamplingTime(Time globalTime, java.lang.String msg)
public void removeSamplingTime(Time globalTime)
public void reset(TimeContainer whoRestarted, ELASid parentELASid)
private void resyncSyncbaseInstanceTimes(TimeContainer whoStarted, java.util.Vector conditions, InstanceTimeList instanceTimeList)
public void removeSyncbaseInstanceTimes(TimeContainer whoRestarted)
private void removeSyncbaseInstanceTimes(TimeContainer whoRestarted, java.util.Vector conditions, InstanceTimeList instanceTimeList)
public void stop(ELASid elasid)
public void stop()
public void startNewInterval()
private void clearAllEventInstanceTimes(java.util.Vector conditions, InstanceTimeList instanceTimeList)
public void endCurInterval()
public void stopCurInterval()
public void endNaturalInterval()
public void childHasEnded()
public void beginSimpleDuration()
public void endSimpleDuration()
public void repeatSimpleDuration()
public void fastForwardMedia()
public void sendNewIntervalNotice()
public void newIntervalNotice(TimeContainer syncbase, Interval interval)
private boolean addInstanceTime(TimeContainer syncbase, Interval interval, boolean begin)
private void recomputeNextWaitingInterval()
private void recomputeActiveCurIntervalEndTime()
public void sendChangeIntervalNotice()
public void changeIntervalNotice(TimeContainer syncbase, Interval interval)
private boolean changeCurInstanceTime(TimeContainer syncbase, Interval interval, boolean begin)
public void sendDeleteIntervalNotice()
public void deleteIntervalNotice(TimeContainer syncbase)
private void deleteCurInstanceTime(TimeContainer syncbase, boolean begin)
private Interval getNextActiveInterval(Time beginAfter, Time minEndTime, boolean skipZeroSizeInterval)
private Time[] getNextEndTime(Time begin)
private Time[] calcActiveEnd(Time begin)
private Time[] calcActiveEnd(Time begin, Time endConstraint)
public Time computeSimpleDur()
public Time computeIntrinsicDur()
protected Time computeImplicitDur()
protected boolean timeContainerHasEnded()
public Time[] computeActiveDur(Time begin)
public Time[] computeActiveDur(Time begin, Time end)
private Time computeIntermediateActiveDur()
private boolean endHasEventConditions()
private void startFill()
private void stopFill()
private void freeze()
private void release()
private void stopFillBySibling()
private void stopPrevSiblingFill()
public Time getCurrentTime()
public Time getCurrentLocalTime()
public Time convertRemoteToLocalTime(TimeContainer fromContainer, Time fromTime)
public Time convertFromAscendantToLocalTime(TimeContainer ascendant, Time ascendantTime)
public Time convertFromGlobalToLocalTime(Time globalTime)
public Time convertFromLocalToGlobalTime(Time localTime)
public Time convertLocalToAscendantTime(TimeContainer ascendant, Time myLocalTime)
private Interval convertFromGlobalIntervalToLocal(Interval interval)
|
XMT-O Reference Software | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |