|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.animation.ConfigList
public class ConfigList
A ConfigList defines a sequence of configurations of type float[] plus corresponding timestamps of type double.
| Field Summary | |
|---|---|
private int |
arraySize
|
private float[][] |
configList
|
private int |
configSize
|
private static int |
DEFAULTARRAYSIZE
|
private int |
listSize
|
private double[] |
time
|
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 | |
|---|---|
ConfigList(int configSize)
|
|
ConfigList(XMLTokenizer tokenizer)
|
|
| Method Summary | |
|---|---|
void |
addConfig(double t,
float[] conf)
Adds a VPartsConfig at the appropriate place, depending on the time value The value is inserted at the position determined by findLowerIndex(time) + 1. |
StringBuilder |
appendAttributeString(StringBuilder buf,
XMLFormatting fmt)
Appends a String of signature attributes to buf |
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends the config elements as XML content. |
ConfigList |
clone()
removes configList[index]..configList[index+width-1] from the list |
boolean |
decodeAttribute(String attrName,
String valCode,
XMLTokenizer tokenizer)
Decodes a single attribute |
void |
decodeContent(String data)
|
void |
decodeContent(XMLTokenizer xmlTokenizer)
Decodes XML content, and converts it into the double time values and float cofig data. |
private void |
ensureArraySize(int requestedSize)
|
private int |
findInsertIndex(double t)
|
float[] |
getConfig(int i)
Returns the Config at index i |
int |
getConfigSize()
Returns the (uniform) size of configs, in number of floats. |
double |
getEndTime()
|
double |
getStartTime()
|
double |
getTime(int i)
Returns the time for config i |
String |
getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object |
void |
mirror(int index)
|
int |
size()
returns the size of the list |
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 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double[] time
private float[][] configList
private int listSize
private int arraySize
private static final int DEFAULTARRAYSIZE
private int configSize
private static final String XMLTAG
| Constructor Detail |
|---|
public ConfigList(int configSize)
public ConfigList(XMLTokenizer tokenizer)
throws IOException
IOException| Method Detail |
|---|
public ConfigList clone()
clone in class Objectpublic int getConfigSize()
public int size()
public double getTime(int i)
public void mirror(int index)
public float[] getConfig(int i)
public double getStartTime()
public double getEndTime()
public void addConfig(double t,
float[] conf)
private void ensureArraySize(int requestedSize)
private final int findInsertIndex(double t)
public StringBuilder appendAttributeString(StringBuilder buf,
XMLFormatting fmt)
appendAttributeString in class XMLStructureAdapter
public boolean decodeAttribute(String attrName,
String valCode,
XMLTokenizer tokenizer)
decodeAttribute in class XMLStructureAdapter
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
appendContent in class XMLStructureAdapter
public void decodeContent(XMLTokenizer xmlTokenizer)
throws IOException
decodeContent in class XMLStructureAdapterIOExceptionpublic void decodeContent(String data)
public 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 | |||||||||