|
XMT-O Reference Software | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xmto2xmta.TimeScheduler
Class to determine resolve the timing for the XMT-O tree.
History:
Field Summary | |
private java.lang.Class |
backdropClass
|
private static java.lang.String |
backdropClassName
|
private java.util.Hashtable |
convertIndexTable_
|
static boolean |
debug_
Whether debug information is to be printed to the console. |
private java.io.PrintWriter |
errWriter
|
private java.lang.reflect.Method |
getXmtoAttrSrcMethod
|
private static java.lang.String |
getXmtoAttrSrcMethodName
|
private Xmto2Xmta |
o2aConverter_
Input structures |
private long |
playTime
|
static long |
PLAYTIME
|
static java.lang.Integer |
ROOT_ID
|
private SimpleTimeGraph |
simpleTimeGraph
|
private TimeGraph |
timeGraph
|
private ConvertElement |
treeRoot_
|
private boolean |
useSimpleTimeGraph
|
private java.io.PrintWriter |
writer
|
private java.util.ResourceBundle |
xmto2XmtaRes_
Resource file for the messages. |
private java.util.Hashtable |
xmtoIdTable_
|
Constructor Summary | |
TimeScheduler(Xmto2Xmta converter,
java.util.Hashtable xmtoIds,
java.util.Hashtable convertIndexes,
ConvertElement treeRoot)
Create the Resolv Model. |
|
TimeScheduler(Xmto2Xmta converter,
java.util.Hashtable xmtoIds,
java.util.Hashtable convertIndexes,
ConvertElement treeRoot,
long playTime)
|
Method Summary | |
private TimingAttribute |
convert(Time time)
|
private TimingAttribute |
convertEventCondition(Condition condition)
|
private java.util.Vector |
createConditions(TimingAttribute attr,
boolean begin,
TimeContainer graphElement,
TimeContainer graphParent)
|
private TimingAttribute |
createEventInfo(Interval interval,
Condition condition)
|
private void |
createSimpleTimeGraph()
|
private void |
createTimeGraph()
|
void |
fireErrorEvent(int errorLevel,
int errorId,
java.lang.String message)
|
static boolean |
getDebug()
|
EventActiveInterval |
getEventActiveInterval(java.lang.Integer convertTreeIndex)
Get the event interval for an element. |
java.util.Vector |
getLifeCycles(java.lang.Integer convertTreeIndex)
Get the life cycles for the specified element. |
private void |
loadTimeContainerAttributes(TimingElement convertElement,
TimeContainer graphElement,
TimeContainer graphParent)
|
private void |
loadTimeGraph(TimeContainer timeGraphParent,
ConvertElement treeParent)
|
void |
printEventActiveIntervals()
|
private void |
printLifeCycles()
|
static void |
setDebug(boolean debug)
Enable debugging information to be printed to the console. |
static void |
setPlayTime(long playTime)
Set the default simulation play time in milliseconds |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static boolean debug_
public static long PLAYTIME
public static final java.lang.Integer ROOT_ID
private static final java.lang.String backdropClassName
private static final java.lang.String getXmtoAttrSrcMethodName
private Xmto2Xmta o2aConverter_
private java.util.Hashtable xmtoIdTable_
private java.util.Hashtable convertIndexTable_
private ConvertElement treeRoot_
private long playTime
private TimeGraph timeGraph
private java.io.PrintWriter writer
private java.io.PrintWriter errWriter
private java.lang.Class backdropClass
private java.lang.reflect.Method getXmtoAttrSrcMethod
private SimpleTimeGraph simpleTimeGraph
private boolean useSimpleTimeGraph
private java.util.ResourceBundle xmto2XmtaRes_
Constructor Detail |
public TimeScheduler(Xmto2Xmta converter, java.util.Hashtable xmtoIds, java.util.Hashtable convertIndexes, ConvertElement treeRoot)
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.treeRoot
- root of the convert tree.public TimeScheduler(Xmto2Xmta converter, java.util.Hashtable xmtoIds, java.util.Hashtable convertIndexes, ConvertElement treeRoot, long playTime)
Method Detail |
public static void setPlayTime(long playTime)
public java.util.Vector getLifeCycles(java.lang.Integer convertTreeIndex)
convertTreeIndex
- the index of the element to be look uppublic EventActiveInterval getEventActiveInterval(java.lang.Integer convertTreeIndex)
convertTreeIndex
- the index of the element to be look upprivate TimingAttribute createEventInfo(Interval interval, Condition condition)
public void printEventActiveIntervals()
public static void setDebug(boolean debug)
debug
- sets debug information is printedpublic static boolean getDebug()
private void createTimeGraph()
private void loadTimeGraph(TimeContainer timeGraphParent, ConvertElement treeParent)
private void loadTimeContainerAttributes(TimingElement convertElement, TimeContainer graphElement, TimeContainer graphParent)
private java.util.Vector createConditions(TimingAttribute attr, boolean begin, TimeContainer graphElement, TimeContainer graphParent)
private void createSimpleTimeGraph()
private TimingAttribute convert(Time time)
private TimingAttribute convertEventCondition(Condition condition)
public void fireErrorEvent(int errorLevel, int errorId, java.lang.String message)
private void printLifeCycles()
|
XMT-O Reference Software | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |