|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.elckerlyc.animationengine.controller.CompoundController
public class CompoundController
A physical controller that is a compound of several other controllers. XML writing functionality is not implemented.
| Field Summary | |
|---|---|
private Map<String,PhysicalController> |
desiredControllers
|
private String[] |
desJointIDs
|
private String[] |
jointIDs
|
private PhysicalHumanoid |
pHuman
|
private Map<String,PhysicalController> |
requiredControllers
|
private static String |
XMLTAG
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
CompoundController()
|
|
CompoundController(PhysicalHumanoid p)
|
|
| Method Summary | |
|---|---|
void |
addDesiredController(PhysicalController newController,
String id)
|
void |
addRequiredController(PhysicalController newController,
String id)
|
PhysicalController |
copy(PhysicalHumanoid ph)
Creates a copy of the controller |
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes all attributes. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
String[] |
getDesiredJointIDs()
Gets the ids of joints the controller would like to steer if available |
String |
getParameterValue(String name)
Get the parameter value of parameter name, return null if not found |
String[] |
getRequiredJointIDs()
Gets the ids of controlled joints |
String |
getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object |
void |
reset()
Clears out all previous time dependen variables |
void |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
void |
setPhysicalHumanoid(PhysicalHumanoid p)
Links the controller to a new set of physical joints |
void |
update(double timeDiff)
Updates the controller |
static String |
xmlTag()
The XML Stag for XML encoding -- use this static method when you want to see if a given String equals the xml tag for this class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Map<String,PhysicalController> requiredControllers
private Map<String,PhysicalController> desiredControllers
private String[] jointIDs
private String[] desJointIDs
private PhysicalHumanoid pHuman
private static final String XMLTAG
| Constructor Detail |
|---|
public CompoundController()
public CompoundController(PhysicalHumanoid p)
| Method Detail |
|---|
public void reset()
PhysicalController
reset in interface PhysicalControllerpublic void setPhysicalHumanoid(PhysicalHumanoid p)
PhysicalController
setPhysicalHumanoid in interface PhysicalControllerp - physical humanoid to link topublic String[] getRequiredJointIDs()
PhysicalController
getRequiredJointIDs in interface PhysicalControllerpublic String[] getDesiredJointIDs()
PhysicalController
getDesiredJointIDs in interface PhysicalControllerpublic void update(double timeDiff)
PhysicalController
update in interface PhysicalControllertimeDiff - time since last updatepublic PhysicalController copy(PhysicalHumanoid ph)
PhysicalController
copy in interface PhysicalController
public void addRequiredController(PhysicalController newController,
String id)
public void addDesiredController(PhysicalController newController,
String id)
public String getParameterValue(String name)
PhysicalController
getParameterValue in interface PhysicalController
public void setParameterValue(String name,
String value)
setParameterValue in interface PhysicalController
public void setParameterValue(String name,
float value)
setParameterValue in interface PhysicalController
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
XMLStructureAdapter
decodeAttributes in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
XMLStructureAdapter
decodeContent in class XMLStructureAdapterIOExceptionpublic static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||