|
XMT-O Reference Software | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xmto2xmta.EventModel
Class to group together the various type of timing elements.
History:
Field Summary | |
private java.util.Hashtable |
convertIndexTable_
|
private static boolean |
debug_
Whether debug information is to be printed to the console. |
private java.util.Hashtable |
eventTable_
Hash table Data structure for event times. |
private Xmto2Xmta |
o2aConverter_
Input structures |
private ConvertElement |
root_
|
private TimeScheduler |
timeScheduler_
|
private java.util.ResourceBundle |
xmto2XmtaRes_
|
private java.util.Hashtable |
xmtoIdTable_
|
Constructor Summary | |
EventModel(Xmto2Xmta converter,
java.util.Hashtable xmtoIds,
java.util.Hashtable convertIndexes,
ConvertElement root,
TimeScheduler timeScheduler)
Create the Event Model. |
Method Summary | |
TimingAttribute |
getActiveDuration(java.lang.Integer convertTreeIndex)
Return the active duration of the specified element. |
TimingAttribute |
getBeginSceneBeginTime(java.lang.Integer convertTreeIndex)
Get the begining scene time for the begin event. |
TimingAttribute |
getBeginSceneEndTime(java.lang.Integer convertTreeIndex)
Get the begining scene time for the end event The end event can occur across some range of times, usually this is the duration of the element which is clicked on. |
TimingAttribute |
getEndSceneBeginTime(java.lang.Integer convertTreeIndex)
Get the ending scene time for the begin event The begin event can occur across some range of times, usually this is the duration of the element which is clicked on. |
TimingAttribute |
getEndSceneEndTime(java.lang.Integer convertTreeIndex)
Get the ending scene time for the end event The end event can occur across some range of times, usually this is the duration of the element which is clicked on. |
TimingAttribute |
getSceneBeginTime(java.lang.Integer convertTreeIndex)
This is the determines the event which kicks off the begining of the element. |
TimingAttribute |
getSceneEndTime(java.lang.Integer convertTreeIndex)
This is the determines the event which kicks off the ending of the element. |
boolean |
isBeginEvent(java.lang.Integer convertTreeIndex)
|
boolean |
isEndEvent(java.lang.Integer convertTreeIndex)
is the end timing attribute an event or not. |
static void |
setDebug(boolean debug)
Enable debugging information to be printed to the console. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static boolean debug_
private Xmto2Xmta o2aConverter_
private java.util.Hashtable xmtoIdTable_
private java.util.Hashtable convertIndexTable_
private TimeScheduler timeScheduler_
private ConvertElement root_
private java.util.Hashtable eventTable_
private java.util.ResourceBundle xmto2XmtaRes_
Constructor Detail |
public EventModel(Xmto2Xmta converter, java.util.Hashtable xmtoIds, java.util.Hashtable convertIndexes, ConvertElement root, TimeScheduler timeScheduler)
converter
- converter with pointers to the convert tree,
the xmto id hash table and the convert tree index hash table.xmtoIds
- table of the convert tree Elements. The hash index is the xmto id
attribute. Not all convert tree elements are contained in this table,
for example the elements which don't have xmto ids. Also this table
may have elemnents removed if an element isn't supported or has an error
which can't be converted.convertIndexes
- table of the convert tree Elements. The hash index is the unique
index for each convert element (like an id, but not to be confused with the
xmto id. This table may have elemnents removed if an element isn't
supported or has an error which can't be converted.resolveModel
- Model holding all the resolved times for convert tree timing elements.Method Detail |
public TimingAttribute getActiveDuration(java.lang.Integer convertTreeIndex)
public TimingAttribute getBeginSceneBeginTime(java.lang.Integer convertTreeIndex)
Since this element is a click event, its range can't be determined via the lifecycle of the element, but try anyway. If we can't find the range from the life cycle use the range of the parent/ancestor timing element. The parent/ancestor range can be used to limit this element's range.
The the range of this element also depends on the duration of the element which is clicked (sensor element). Thus the range of time is limited to the active duration of the sensor element.
The range of the begin event is the intersection of sensor duration and the element/parent/ancestor element duration.
This routine is returns the earliest time in which the begin event can occur, the begining of the range.
public TimingAttribute getBeginSceneEndTime(java.lang.Integer convertTreeIndex)
public TimingAttribute getEndSceneBeginTime(java.lang.Integer convertTreeIndex)
Since this element is a click event, its range can't be determined via the lifecycle of the element, but try anyway. If we can't find the range from the life cycle use the range of the parent/ancestor timing element. The parent/ancestor range can be used to limit this element's range.
The the range of this element also depends on the duration of the element which is clicked (sensor element). Thus the range of time is limited to the active duration of the sensor element.
The range of the begin event is the intersection of sensor duration and the element/parent/ancestor element duration.
This routine is returns the latest time in which the begin event can occur, the end of the range. It might be indefinite, thus it might never start if the user never clicks.
public TimingAttribute getEndSceneEndTime(java.lang.Integer convertTreeIndex)
public TimingAttribute getSceneBeginTime(java.lang.Integer convertTreeIndex)
public TimingAttribute getSceneEndTime(java.lang.Integer convertTreeIndex)
public boolean isBeginEvent(java.lang.Integer convertTreeIndex)
public boolean isEndEvent(java.lang.Integer convertTreeIndex)
public static void setDebug(boolean debug)
debug
- sets debug information is printed
|
XMT-O Reference Software | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |