|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.physics.assembler.IDBranchAssembler
public class IDBranchAssembler
| Field Summary | |
|---|---|
IDBranch |
branch
|
private VJoint |
human
|
IDSegmentAssembler |
rootAssembler
|
ArrayList<IDSegmentAssembler> |
segmentAssemblers
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
IDBranchAssembler(VJoint h,
IDBranch b)
Constructor |
|
| Method Summary | |
|---|---|
void |
addPhysicalSegmentAssembler(IDSegmentAssembler 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. |
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. |
String |
getXMLTag()
returns the XML tag that is used to encode this type of XMLStructure. |
private void |
setCoM(IDSegmentAssembler psa)
|
void |
setRootSegmentAssembler(IDSegmentAssembler psa)
Sets the root assembler |
void |
setup()
Set CoM and translation of the segments |
private void |
setupSegments(IDSegmentAssembler psa,
float[] jPos)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private VJoint human
public IDBranch branch
public IDSegmentAssembler rootAssembler
public ArrayList<IDSegmentAssembler> segmentAssemblers
| Constructor Detail |
|---|
public IDBranchAssembler(VJoint h,
IDBranch b)
h - human to get link sizes fromb - branch to parse| Method Detail |
|---|
public void addPhysicalSegmentAssembler(IDSegmentAssembler psa)
public void setRootSegmentAssembler(IDSegmentAssembler psa)
private void setCoM(IDSegmentAssembler psa)
private void setupSegments(IDSegmentAssembler psa,
float[] jPos)
public void setup()
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 XMLStructureAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||