|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Planner
Elckerlyc planner. Each planner can add BML behaviors to a plan and is able to resolve their unknown time constraints
| Method Summary | |
|---|---|
List<SyncAndTimePeg> |
addBehaviour(BMLBlockPeg bbPeg,
Behaviour b,
List<TimePegAndConstraint> sac,
PlanUnit planElement)
Adds a behavior to the plan. |
void |
addExceptionListener(BMLExceptionListener el)
|
void |
addFeedbackListener(BMLFeedbackListener fb)
|
void |
clearAll(double time)
Removes all behaviors from the plan |
Set<String> |
getBehaviours(String bmlId)
|
double |
getEndTime(String behId,
String bmlId)
|
List<BMLFeedbackListener> |
getFeedbackListeners()
|
Set<String> |
getInvalidBehaviours()
Checks if the behavior plan is still consistent (e.g. after modifying the timing of some TimePegs). |
Player |
getPlayer()
Returns the Player for this planner. useful for, e.g., resetting the player of any planner (see BMLRealizer.reset). |
List<Class<? extends Behaviour>> |
getSupportedBehaviours()
|
List<Class<? extends Behaviour>> |
getSupportedDescriptionExtensions()
|
void |
interruptBehaviour(String behaviourId,
String bmlId,
double globalTime)
Interrupts the behavior, sending the appropiate feedback callbacks if the behavior was running, just removes it otherwise. |
void |
interruptBehaviourBlock(String bmlId,
double globalTime)
Interrupt all behaviors in a bml block This stops the behavior an removes it from the plan |
void |
removeAllExceptionListeners()
|
void |
removeAllFeedbackListeners()
|
void |
removeBehaviour(String behaviourId,
String bmlId)
Removes behavior with behaviourId and bmlId from the plan Callback behavior is unspecified |
void |
removeFeedbackListener(BMLFeedbackListener fb)
|
void |
reset()
Resets the player, that is: stops running behavior and returns the player to its startup state (default pose etc) This does not clear any behaviours from the plans. |
PlanUnit |
resolveSynchs(BMLBlockPeg bbPeg,
Behaviour b,
List<TimePegAndConstraint> sac)
Resolves TimePegs for behavior b, given some known time pegs and constraints |
void |
setBMLBlockState(String bmlId,
PlanUnitState state)
|
void |
setParameterValue(String behId,
String bmlId,
String paramId,
float value)
|
void |
setParameterValue(String behId,
String bmlId,
String paramId,
String value)
|
void |
shutdown()
Clean up resources constructed with the planner (e.g. for native stuff, spawned threads, ...). |
| Method Detail |
|---|
Player getPlayer()
List<SyncAndTimePeg> addBehaviour(BMLBlockPeg bbPeg,
Behaviour b,
List<TimePegAndConstraint> sac,
PlanUnit planElement)
throws BehaviourPlanningException
planElement - planElement obtained from resolveSynchs, null to create a new planElement
BehaviourPlanningException - if no behavior satisfying sac can be constructed
PlanUnit resolveSynchs(BMLBlockPeg bbPeg,
Behaviour b,
List<TimePegAndConstraint> sac)
throws BehaviourPlanningException
b - the behaviorsac - the provided time pegs and constraints, missing constraints are filled out by this method
BehaviourPlanningException - if no behavior satisfying sac can be constructedvoid clearAll(double time)
void reset()
Set<String> getInvalidBehaviours()
void removeBehaviour(String behaviourId,
String bmlId)
void interruptBehaviour(String behaviourId,
String bmlId,
double globalTime)
void interruptBehaviourBlock(String bmlId,
double globalTime)
List<Class<? extends Behaviour>> getSupportedBehaviours()
List<Class<? extends Behaviour>> getSupportedDescriptionExtensions()
void removeFeedbackListener(BMLFeedbackListener fb)
void removeAllFeedbackListeners()
void addFeedbackListener(BMLFeedbackListener fb)
List<BMLFeedbackListener> getFeedbackListeners()
void removeAllExceptionListeners()
void addExceptionListener(BMLExceptionListener el)
void setBMLBlockState(String bmlId,
PlanUnitState state)
Set<String> getBehaviours(String bmlId)
double getEndTime(String behId,
String bmlId)
void setParameterValue(String behId,
String bmlId,
String paramId,
float value)
void setParameterValue(String behId,
String bmlId,
String paramId,
String value)
void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||