|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.physics.assembler.PhysicalSegmentAssembler
public class PhysicalSegmentAssembler
Sets up PhysicalSegment and the connection to the VObject that is steered by the PhysicalSegment
| Field Summary | |
|---|---|
ArrayList<VJoint> |
endJoints
|
private VJoint |
human
|
private boolean |
isRoot
|
private org.slf4j.Logger |
logger
|
private PhysicalHumanoid |
pHuman
|
PhysicalSegment |
segment
|
VJoint |
startJoint
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
PhysicalSegmentAssembler(VJoint h,
PhysicalHumanoid ph,
PhysicalSegment seg)
Create a PhysicalSegment |
|
| Method Summary | |
|---|---|
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 |
createFromGNode(String phID,
GNode rootNode,
String jointName,
String[] joints,
String[] endJ)
|
boolean |
decodeAttribute(String attrName,
String attrValue)
decodes the value from an attribute value String returns true if successful, 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. |
private void |
findEndJoints(VJoint start,
String[] joints,
String[] ej)
|
private void |
findJoints(VJoint start,
String[] jointNames,
String[] endJoints,
ArrayList<VJoint> joints)
|
private void |
findNodes(GNode rootNode,
ArrayList<GNode> nodes,
ArrayList<VJoint> segmentJoints)
|
String |
getXMLTag()
returns the XML tag that is used to encode this type of XMLStructure. |
boolean |
isRoot()
|
void |
setRoot(boolean isRoot)
|
String |
toString()
the default toString() method returns the result of toXMLSTring() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public VJoint startJoint
private VJoint human
public PhysicalSegment segment
public ArrayList<VJoint> endJoints
private boolean isRoot
private PhysicalHumanoid pHuman
private org.slf4j.Logger logger
| Constructor Detail |
|---|
public PhysicalSegmentAssembler(VJoint h,
PhysicalHumanoid ph,
PhysicalSegment seg)
h - humanoidseg - segment| Method Detail |
|---|
public String toString()
XMLStructureAdapter
toString in class XMLStructureAdapter
private void findEndJoints(VJoint start,
String[] joints,
String[] ej)
private void findJoints(VJoint start,
String[] jointNames,
String[] endJoints,
ArrayList<VJoint> joints)
private void findNodes(GNode rootNode,
ArrayList<GNode> nodes,
ArrayList<VJoint> segmentJoints)
public void createFromGNode(String phID,
GNode rootNode,
String jointName,
String[] joints,
String[] endJ)
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 boolean isRoot()
public void setRoot(boolean isRoot)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||