hmi.elckerlyc
Class AbstractPlanner

java.lang.Object
  extended by hmi.elckerlyc.AbstractPlanner
All Implemented Interfaces:
Planner
Direct Known Subclasses:
AnimationPlanner, AudioPlanner, FacePlanner, InterruptPlanner, TextPlanner, TTSPlanner, WaitPlanner

public abstract class AbstractPlanner
extends Object
implements Planner


Field Summary
private  List<BMLFeedbackListener> feedbackListeners
           
 
Constructor Summary
AbstractPlanner()
           
 
Method Summary
 void addFeedbackListener(BMLFeedbackListener fb)
           
 Set<String> getBehaviours(String bmlId)
           
 double getEndTime(String behId, String bmlId)
           
 List<BMLFeedbackListener> getFeedbackListeners()
           
 void interruptBehaviourBlock(String bmlId, double time)
          Interrupt all behaviors in a bml block This stops the behavior an removes it from the plan
 void removeAllFeedbackListeners()
           
 void removeFeedbackListener(BMLFeedbackListener fb)
           
 void setBMLBlockState(String bmlId, PlanUnitState state)
           
 void shutdown()
          Clean up resources constructed with the planner (e.g. for native stuff, spawned threads, ...).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hmi.elckerlyc.Planner
addBehaviour, addExceptionListener, clearAll, getInvalidBehaviours, getPlayer, getSupportedBehaviours, getSupportedDescriptionExtensions, interruptBehaviour, removeAllExceptionListeners, removeBehaviour, reset, resolveSynchs, setParameterValue, setParameterValue
 

Field Detail

feedbackListeners

private final List<BMLFeedbackListener> feedbackListeners
Constructor Detail

AbstractPlanner

public AbstractPlanner()
Method Detail

getFeedbackListeners

public List<BMLFeedbackListener> getFeedbackListeners()
Specified by:
getFeedbackListeners in interface Planner
Returns:
an unmodifiable view of the registered feedback listeners

addFeedbackListener

public void addFeedbackListener(BMLFeedbackListener fb)
Specified by:
addFeedbackListener in interface Planner

removeFeedbackListener

public void removeFeedbackListener(BMLFeedbackListener fb)
Specified by:
removeFeedbackListener in interface Planner

removeAllFeedbackListeners

public void removeAllFeedbackListeners()
Specified by:
removeAllFeedbackListeners in interface Planner

setBMLBlockState

public void setBMLBlockState(String bmlId,
                             PlanUnitState state)
Specified by:
setBMLBlockState in interface Planner

getBehaviours

public Set<String> getBehaviours(String bmlId)
Specified by:
getBehaviours in interface Planner

getEndTime

public double getEndTime(String behId,
                         String bmlId)
Specified by:
getEndTime in interface Planner

interruptBehaviourBlock

public void interruptBehaviourBlock(String bmlId,
                                    double time)
Description copied from interface: Planner
Interrupt all behaviors in a bml block This stops the behavior an removes it from the plan

Specified by:
interruptBehaviourBlock in interface Planner

shutdown

public void shutdown()
Description copied from interface: Planner
Clean up resources constructed with the planner (e.g. for native stuff, spawned threads, ...). A planner should not be (re)used after shutting it down.

Specified by:
shutdown in interface Planner