|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.AbstractPlanner
hmi.elckerlyc.interrupt.InterruptPlanner
public class InterruptPlanner
| Field Summary | |
|---|---|
private InterruptPlayer |
player
|
private BMLScheduler |
scheduler
|
| Constructor Summary | |
|---|---|
InterruptPlanner(InterruptPlayer p)
Should call setScheduler before actual use |
|
InterruptPlanner(InterruptPlayer p,
BMLScheduler s)
|
|
| Method Summary | |
|---|---|
List<SyncAndTimePeg> |
addBehaviour(BMLBlockPeg bbPeg,
Behaviour b,
List<TimePegAndConstraint> sac,
PlanUnit planElement)
Adds a behavior to the plan. |
void |
addExceptionListener(BMLExceptionListener war)
|
void |
clearAll(double time)
Removes all behaviors from the plan |
InterruptPlayer |
getInterruptPlayer()
|
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 |
removeAllExceptionListeners()
|
void |
removeBehaviour(String behaviourId,
String bmlId)
Removes behavior with behaviourId and bmlId from the plan Callback behavior is unspecified |
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. |
InterruptUnit |
resolveSynchs(BMLBlockPeg bbPeg,
Behaviour b,
List<TimePegAndConstraint> sac)
Resolves TimePegs for behavior b, given some known time pegs and constraints |
void |
setParameterValue(String behId,
String bmlId,
String paramId,
float value)
|
void |
setParameterValue(String behId,
String bmlId,
String paramId,
String value)
|
void |
setScheduler(BMLScheduler s)
|
private void |
validateSacs(Behaviour b,
List<TimePegAndConstraint> sac)
|
| Methods inherited from class hmi.elckerlyc.AbstractPlanner |
|---|
addFeedbackListener, getBehaviours, getEndTime, getFeedbackListeners, interruptBehaviourBlock, removeAllFeedbackListeners, removeFeedbackListener, setBMLBlockState, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private BMLScheduler scheduler
private final InterruptPlayer player
| Constructor Detail |
|---|
public InterruptPlanner(InterruptPlayer p,
BMLScheduler s)
public InterruptPlanner(InterruptPlayer p)
| Method Detail |
|---|
public void setScheduler(BMLScheduler s)
public InterruptPlayer getInterruptPlayer()
public List<SyncAndTimePeg> addBehaviour(BMLBlockPeg bbPeg,
Behaviour b,
List<TimePegAndConstraint> sac,
PlanUnit planElement)
throws BehaviourPlanningException
Planner
planElement - planElement obtained from resolveSynchs, null to create a new planElement
BehaviourPlanningException - if no behavior satisfying sac can be constructed
private void validateSacs(Behaviour b,
List<TimePegAndConstraint> sac)
throws BehaviourPlanningException
BehaviourPlanningException
public InterruptUnit resolveSynchs(BMLBlockPeg bbPeg,
Behaviour b,
List<TimePegAndConstraint> sac)
throws BehaviourPlanningException
Planner
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 constructedpublic void addExceptionListener(BMLExceptionListener war)
public void clearAll(double time)
Planner
public Set<String> getInvalidBehaviours()
Planner
public Player getPlayer()
Planner
public List<Class<? extends Behaviour>> getSupportedBehaviours()
public List<Class<? extends Behaviour>> getSupportedDescriptionExtensions()
public void removeAllExceptionListeners()
public void removeBehaviour(String behaviourId,
String bmlId)
Planner
public void interruptBehaviour(String behaviourId,
String bmlId,
double globalTime)
Planner
public void reset()
Planner
public void setParameterValue(String behId,
String bmlId,
String paramId,
float value)
public void setParameterValue(String behId,
String bmlId,
String paramId,
String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||