|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PlanUnit
| Method Summary | |
|---|---|
void |
addFeedbackListener(BMLFeedbackListener fb)
Adds a feedback listener |
void |
feedback(BMLSyncPointProgressFeedback fb)
Send feedback to all feedback listeners |
List<String> |
getAvailableSyncs()
Get the list of sync ids that can be used in this behavior. |
BMLBlockPeg |
getBMLBlockPeg()
Get the BML block to which this PlanUnit belongs |
String |
getBMLId()
Get the BML block id of the PlanUnit |
double |
getEndTime()
Get the global end time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet) |
String |
getId()
Get the behaviour id of the PlanUnit |
double |
getPreferedDuration()
0 is unknown/persistent |
double |
getRelativeTime(String syncId)
Get the relative timing of this sync id Implementing classes should at least provide valid relative times for the BML sync points |
String |
getReplacementGroup()
Get the PlanUnit replacement group (=typically the BML behavior) Used to determine the currently active persistent PlanUnit for this group in the player Only one group is active at a time null is none |
double |
getStartTime()
Get the global start time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet) |
PlanUnitState |
getState()
Get the plan unit state |
double |
getTime(String syncId)
Get the global time of sync syncId of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet) |
TimePeg |
getTimePeg(String syncId)
null is not set |
boolean |
hasValidTiming()
Checks if the timing of this plan unit is 'valid' (e.g. stuff like start is earlier than end, but also planunit specific stuff like biomechanically possible timing). |
boolean |
isDone()
State is done? |
boolean |
isLurking()
State is lurking? |
boolean |
isPlaying()
In PlanUnitState.IN_EXEC or PlanUnitState.SUBSIDING |
boolean |
isSubUnit()
Return true if this unit is a subunit of another planunit (e.g. a visime or speech-related timed motion unit) |
void |
play(double time)
Plays the unit at global time time. |
void |
reset()
Resets the plan unit. |
void |
setParameterValue(String paramId,
float value)
Sets a parameter value |
void |
setParameterValue(String paramId,
String value)
Sets a parameter value |
void |
setState(PlanUnitState newState)
Set the plan unit state |
void |
setTimePeg(String syncId,
TimePeg peg)
Assigns a TimePeg to a sync in the PlanUnit |
void |
start(double time)
Starts the Plan unit, is called only once before the first play is called. |
void |
stop(double time)
Stop the Plan unit. |
| Method Detail |
|---|
BMLBlockPeg getBMLBlockPeg()
String getId()
String getBMLId()
void feedback(BMLSyncPointProgressFeedback fb)
fb - feedback to sendvoid addFeedbackListener(BMLFeedbackListener fb)
fb - feedback listener to addvoid setState(PlanUnitState newState)
PlanUnitState getState()
void start(double time)
throws PlayException
time - global time, used for feedback
PlayException
void stop(double time)
throws PlayException
time - global time, used for feedback
PlayException
void play(double time)
throws PlayException
PlayExceptionvoid reset()
String getReplacementGroup()
double getStartTime()
double getEndTime()
double getTime(String syncId)
List<String> getAvailableSyncs()
double getRelativeTime(String syncId)
throws RelativeSyncNotFoundException
RelativeSyncNotFoundExceptionTimePeg getTimePeg(String syncId)
void setTimePeg(String syncId,
TimePeg peg)
boolean isLurking()
boolean isDone()
boolean isSubUnit()
double getPreferedDuration()
boolean isPlaying()
boolean hasValidTiming()
void setParameterValue(String paramId,
String value)
void setParameterValue(String paramId,
float value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||