|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.sensors.eyebox2.directaccess.Face
public class Face
Stores the information about a detected face. This information includes the id of the face, its position and the latest time it was detected.
| Field Summary | |
|---|---|
(package private) static String |
BMLTNAMESPACE
|
private int |
id
|
private Position |
position
|
private String |
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 | |
|---|---|
Face()
|
|
Face(int id,
Position position,
String time)
Creates a new instance of Face with the given id, position and time. |
|
Face(int id,
String time)
Creates a new instance of Face with the given ID and the given time. |
|
| Method Summary | |
|---|---|
StringBuilder |
appendAttributes(StringBuilder buf)
|
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes all attributes. |
int |
getId()
|
String |
getNamespace()
Returns the (full, unabbreviated) namespace string for this XMLStructure Class |
Position |
getPosition()
|
String |
getTime()
|
String |
getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object |
void |
setPosition(Position position)
|
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int id
private Position position
private String time
private static final String XMLTAG
static final String BMLTNAMESPACE
| Constructor Detail |
|---|
public Face()
public Face(int id,
String time)
id - the id of this facetime - the time when this face was detected
public Face(int id,
Position position,
String time)
id - the id of this faceposition - the position of of the detected facetime - the time when this face was detected| Method Detail |
|---|
public Position getPosition()
public void setPosition(Position position)
position - the position to setpublic int getId()
public String getTime()
public StringBuilder appendAttributes(StringBuilder buf)
appendAttributes in class XMLStructureAdapter
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
XMLStructureAdapter
decodeAttributes in class XMLStructureAdapterpublic static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapterpublic String getNamespace()
XMLStructureAdapter
getNamespace in class XMLStructureAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||