hmi.faceanimation.model
Class MPEG4Configuration

java.lang.Object
  extended by hmi.xml.XMLStructureAdapter
      extended by hmi.faceanimation.model.MPEG4Configuration
All Implemented Interfaces:
Configuration, XMLStructure

public class MPEG4Configuration
extends XMLStructureAdapter
implements Configuration

A MPEG-4 FA Configuration (set of values for FAPs).

Author:
PaulRC

Field Summary
private  Integer[] values
           
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
MPEG4Configuration()
          Constructor
 
Method Summary
 void addValues(MPEG4Configuration config)
          Add given values to current configuration.
 Integer getValue(int index)
           
 Integer[] getValues()
           
 String getXMLTag()
          The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object
 void multiply(float factor)
          multiply values with given factor
 void removeValues(MPEG4Configuration config)
          Remove given values from current configuration.
 void saveToFAPFile(File file)
           
 void setValue(int index, Integer value)
           
 void setValues(Integer[] values)
          Sets the values.
 String toString()
          the default toString() method returns the result of toXMLSTring()
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 hmi.xml.XMLStructureAdapter
appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttributes, appendAttributes, appendAttributeString, appendAttributeString, appendBooleans, appendCloseEmptyTag, appendCloseSTag, appendComment, appendContent, appendContent, appendDoubleElement, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendETag, appendETag, appendFloatArrayElement, appendFloatElement, appendFloats, appendIntArrayElement, appendIntElement, appendInts, appendLongElement, appendNewLine, appendNewLine, appendNewLine, appendOpenSTag, appendOptionalDoubleElement, appendOptionalFloatElement, appendOptionalIntElement, appendOptionalLongElement, appendSpaces, appendSpaces, appendSTag, appendSTag, appendSTag, appendStringArrayElement, appendStrings, appendSystemNewLine, appendTab, appendTextElement, appendXML, appendXML, appendXML, appendXML, appendXML, appendXMLStructure, appendXMLStructureList, appendXMLTextElementList, countTokens, countTokens, decodeAttribute, decodeAttribute, decodeAttributes, decodeBoolean, decodeBooleanArray, decodeBooleanArray, decodeBooleanArray, decodeBooleanArray, decodeContent, decodeDouble, decodeDoubleArray, decodeDoubleArray, decodeDoubleArray, decodeDoubleArray, decodeFloat, decodeFloatArray, decodeFloatArray, decodeFloatArray, decodeFloatArray, decodeInt, decodeIntArray, decodeIntArray, decodeIntArray, decodeIntArray, decodeLong, decodeStringArray, decodeStringArray, decodeStringArray, decodeStringArray, decodeXMLStructureList, decodeXMLValueElement, getNamespace, getOptionalAttribute, getOptionalAttribute, getOptionalBooleanAttribute, getOptionalDoubleAttribute, getOptionalFloatAttribute, getOptionalIntAttribute, getOptionalLongAttribute, getRequiredAttribute, getRequiredBooleanAttribute, getRequiredDoubleAttribute, getRequiredFloatAttribute, getRequiredIntAttribute, getRequiredLongAttribute, getTagLine, hasContent, parseXMLElement, postProcess, preProcess, readXML, readXML, readXML, setConsoleAttributeEnabled, setDefaultRecoverMode, setRecoverMode, spaces, toXMLString, toXMLString, toXMLString, toXMLString, toXMLString, toXMLString, writeXML, writeXML, writeXML, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

values

private Integer[] values

XMLTAG

private static final String XMLTAG
See Also:
Constant Field Values
Constructor Detail

MPEG4Configuration

public MPEG4Configuration()
Constructor

Method Detail

setValue

public void setValue(int index,
                     Integer value)

getValue

public Integer getValue(int index)

setValues

public void setValues(Integer[] values)
Sets the values. This must be a int[] with the right length.

Parameters:
values -
Throws:
Exception

addValues

public void addValues(MPEG4Configuration config)
Add given values to current configuration. This must be a int[] with the right length.

Parameters:
values -

multiply

public void multiply(float factor)
multiply values with given factor

Parameters:
factor -

removeValues

public void removeValues(MPEG4Configuration config)
Remove given values from current configuration. This must be a int[] with the right length.

Parameters:
values -

getValues

public Integer[] getValues()

toString

public String toString()
Description copied from class: XMLStructureAdapter
the default toString() method returns the result of toXMLSTring()

Overrides:
toString in class XMLStructureAdapter

saveToFAPFile

public void saveToFAPFile(File file)
                   throws IOException
Throws:
IOException

xmlTag

public 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


getXMLTag

public String getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object

Specified by:
getXMLTag in interface XMLStructure
Overrides:
getXMLTag in class XMLStructureAdapter