|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.physics.assembler.PhysicalHumanoidAssembler
public class PhysicalHumanoidAssembler
Sets up PhysicalHumanoid and its connection to the VObject that is steered by the PhysicalHumanoid
| Field Summary | |
|---|---|
private VJoint |
human
|
private PhysicalHumanoid |
ph
|
PhysicalSegmentAssembler |
rootAssembler
|
ArrayList<PhysicalSegmentAssembler> |
segmentAssemblers
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
PhysicalHumanoidAssembler(VJoint h,
PhysicalHumanoid p)
Constructor |
|
| Method Summary | |
|---|---|
void |
addPhysicalSegmentAssembler(PhysicalSegmentAssembler psa)
Adds a new PhysicalSegmentAssembler, assumes psa has a valid segment attached |
StringBuilder |
appendAttributeString(StringBuilder buf)
Appends a String to buf that encodes the attributes for the XML encoding. |
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding. |
void |
clear()
Set to 'empty' state, remove all segments etc |
void |
createFromGNode(GNode node,
String[] segments,
String[] endSegments,
String rootSegment,
JointType[] types,
float[] axes,
float[] limits1,
float[] limits2,
float[] limits3)
|
boolean |
decodeAttribute(String attrName,
String attrValue)
decodes the value from an attribute value String returns true if succesful, returns false for attribute names that are not recognized. |
boolean |
decodeAttribute(String attrName,
String attrValue,
XMLTokenizer tokenizer)
decodes the value from an attribute value String returns true if succesful, returns false for attribute names that are not recognized. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
PhysicalHumanoid |
getPhysicalHumanoid()
|
String |
getXMLTag()
returns the XML tag that is used to encode this type of XMLStructure. |
void |
removePhysicalSegmentAssembler(PhysicalSegmentAssembler psa)
|
private void |
setJoints()
|
void |
setRootSegmentAssembler(PhysicalSegmentAssembler psa)
Sets the root assembler |
void |
setupJoints(String rootJoint)
Create the PhysicalSegments and PhysicalJoints |
void |
setupStartJointOffset(PhysicalSegmentAssembler psa)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private VJoint human
private PhysicalHumanoid ph
public PhysicalSegmentAssembler rootAssembler
public ArrayList<PhysicalSegmentAssembler> segmentAssemblers
| Constructor Detail |
|---|
public PhysicalHumanoidAssembler(VJoint h,
PhysicalHumanoid p)
h - the visualization humanoidp - the PhysicalHumanoid| Method Detail |
|---|
public void createFromGNode(GNode node,
String[] segments,
String[] endSegments,
String rootSegment,
JointType[] types,
float[] axes,
float[] limits1,
float[] limits2,
float[] limits3)
public void setupStartJointOffset(PhysicalSegmentAssembler psa)
public void setupJoints(String rootJoint)
private void setJoints()
public void clear()
public void addPhysicalSegmentAssembler(PhysicalSegmentAssembler psa)
public void removePhysicalSegmentAssembler(PhysicalSegmentAssembler psa)
public void setRootSegmentAssembler(PhysicalSegmentAssembler psa)
public boolean decodeAttribute(String attrName,
String attrValue)
decodeAttribute in class XMLStructureAdapter
public boolean decodeAttribute(String attrName,
String attrValue,
XMLTokenizer tokenizer)
decodeAttribute in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
decodeContent in class XMLStructureAdapterIOException
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
appendContent in class XMLStructureAdapterpublic StringBuilder appendAttributeString(StringBuilder buf)
appendAttributeString in class XMLStructureAdapterpublic String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapterpublic PhysicalHumanoid getPhysicalHumanoid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||