|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.ElckerlycRealizer
public class ElckerlycRealizer
Use this thin wrapper to a AbstractScheduler to control one virtual human by sending snippets of BML to it. This is one of the central accesspoints to controlling a virtual human. (The A BMLRealizer is built from the following elements:
| Field Summary | |
|---|---|
private static org.slf4j.Logger |
logger
|
private BMLParser |
parser
to parse the BML snippets (stored in BehaviourBlocks) and collect the constraints (this parser is a scheduler.Scheduler object) |
private BMLScheduler |
scheduler
A BaseScheduler (e.g. |
private SchedulingClock |
schedulingClock
|
| Constructor Summary | |
|---|---|
ElckerlycRealizer(BMLParser bmlparser,
SchedulingClock c,
BMLScheduler bmlScheduler,
Planner... planners)
Constructs a ElckerlycRealizer facade and hooks up the planners to it |
|
ElckerlycRealizer(BMLParser p,
SchedulingClock c,
Planner... planners)
Constructs a ElckerlycRealizer facade and hooks up the planners to it Uses a BMLScheduler with a SmartBodySchedulingStrategy |
|
ElckerlycRealizer(SchedulingClock c,
Planner... planners)
Constructs a ElckerlycRealizer facade and hooks up the planners to it Uses the default BMLParser as BMLParser and a BMLScheduler with a SmartBodySchedulingStrategy. |
|
| Method Summary | |
|---|---|
void |
addAnticipator(String id,
Anticipator ap)
Add an Anticipator to the scheduler, to interact with the synchronisation points in the BML |
void |
addExceptionListener(BMLExceptionListener newListener)
adds an exception listener to the realizer. |
void |
addFeedbackListener(BMLFeedbackListener newListener)
add a feedbacklistener to the realizer. |
private void |
addPlanner(Planner p)
|
void |
addPlanningListener(BMLTPlanningListener bp)
|
void |
addWarningListener(BMLWarningListener newListener)
add a warninglistener to the realizer. |
void |
clear()
Clears the parser and the scheduler |
Planner |
getPlanner(Class<? extends Behaviour> c)
|
BMLScheduler |
getScheduler()
|
protected void |
initBMLInfo()
Init the BMLInfo, to make sure that the BML parser knows how to handle all BMLT behavior types. |
void |
removeAnticipator(String aid)
|
void |
reset()
|
void |
scheduleBML(Reader in)
Schedules piece of BML. |
void |
scheduleBML(String blockContent)
Schedules piece of BML. |
void |
scheduleBML(XMLTokenizer in)
Schedules piece of BML. |
void |
setExceptionListener(BMLExceptionListener e)
Remove all exception listeners and set a new one for the scheduler and animation player. |
void |
setFeedbackListener(BMLFeedbackListener f)
Remove all feedback listeners and set a new one for the animation planner (who sets it in all newly created tmus). |
void |
setParameterValue(String behId,
String bmlId,
String paramId,
float value)
|
void |
setParameterValue(String behId,
String bmlId,
String paramId,
String value)
|
void |
setWarningListener(BMLWarningListener w)
Remove all warning listeners and set a new one for the scheduler and animation player. |
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.slf4j.Logger logger
private final SchedulingClock schedulingClock
private final BMLParser parser
private final BMLScheduler scheduler
| Constructor Detail |
|---|
public ElckerlycRealizer(BMLParser bmlparser,
SchedulingClock c,
BMLScheduler bmlScheduler,
Planner... planners)
public ElckerlycRealizer(BMLParser p,
SchedulingClock c,
Planner... planners)
public ElckerlycRealizer(SchedulingClock c,
Planner... planners)
| Method Detail |
|---|
public void setParameterValue(String behId,
String bmlId,
String paramId,
float value)
public void setParameterValue(String behId,
String bmlId,
String paramId,
String value)
public void setFeedbackListener(BMLFeedbackListener f)
public void setWarningListener(BMLWarningListener w)
public void setExceptionListener(BMLExceptionListener e)
public void addExceptionListener(BMLExceptionListener newListener)
public void addPlanningListener(BMLTPlanningListener bp)
public void addWarningListener(BMLWarningListener newListener)
public void addFeedbackListener(BMLFeedbackListener newListener)
protected void initBMLInfo()
private void addPlanner(Planner p)
public void addAnticipator(String id,
Anticipator ap)
public void removeAnticipator(String aid)
public void scheduleBML(Reader in)
throws IOException
IOException
XMLScanException - if the BML was invalid XMLpublic void shutdown()
public void scheduleBML(XMLTokenizer in)
IOException
XMLScanException - if the BML was invalid XMLpublic void scheduleBML(String blockContent)
IOException
XMLScanException - if the BML was invalid XMLpublic void clear()
public void reset()
public Planner getPlanner(Class<? extends Behaviour> c)
public BMLScheduler getScheduler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||