|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.TimePeg
@ThreadSafe public class TimePeg
BML SynchronisationPoint, used in the realizer as intermediate, slightly flexible timing structure. One can construct OffsetPegs that define a TimePegs that remains at a fixed time offset from a 'regular' TimePeg. Sub classes should retain thread-safety. All Time Pegs are declared relative to the start time of a BMLBlock.
| Field Summary | |
|---|---|
private boolean |
absoluteTime
|
protected BMLBlockPeg |
bmlBlockPeg
|
private double |
value
|
static double |
VALUE_UNKNOWN
|
| Constructor Summary | |
|---|---|
TimePeg(BMLBlockPeg bmp)
|
|
| Method Summary | |
|---|---|
double |
getGlobalValue()
|
TimePeg |
getLink()
Get the 'underlying' TimePeg. |
(package private) double |
getLocalValue()
get the value of the SynchronisationPoint |
boolean |
isAbsoluteTime()
|
void |
setAbsoluteTime(boolean absTime)
Sets whether this timepeg links to an absolute time value (default is false). |
void |
setGlobalValue(double v)
Set the value of the SynchronisationPoint. |
void |
setLocalValue(double v)
Set the value of the SynchronisationPoint. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double VALUE_UNKNOWN
protected final BMLBlockPeg bmlBlockPeg
private double value
private boolean absoluteTime
| Constructor Detail |
|---|
public TimePeg(BMLBlockPeg bmp)
| Method Detail |
|---|
public boolean isAbsoluteTime()
public void setAbsoluteTime(boolean absTime)
public TimePeg getLink()
double getLocalValue()
public double getGlobalValue()
public void setLocalValue(double v)
value - the new valuepublic void setGlobalValue(double v)
value - the new valuepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||