|
||||||||||
| 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.EyePair
public class EyePair
Stores the information about a detected eyes. This information includes the id of the eyes, its status (looking in the camera or not), its position and the latest time it was detected.
| Field Summary | |
|---|---|
(package private) static String |
BMLTNAMESPACE
|
private int |
id
|
private boolean |
looking
|
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 | |
|---|---|
EyePair()
|
|
EyePair(int id,
boolean looking,
Position position,
String time)
Creates a new instance of Eyes with the given id, position and time. |
|
EyePair(int id,
boolean looking,
String time)
Creates a new instance of Eyes 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 |
boolean |
isLooking()
|
void |
setLooking(boolean looking)
|
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 boolean looking
private Position position
private String time
private static final String XMLTAG
static final String BMLTNAMESPACE
| Constructor Detail |
|---|
public EyePair()
public EyePair(int id,
boolean looking,
String time)
id - the id of the eyeslooking - if the eyes are looking at the camera or nottime - the time when these eyes were detected
public EyePair(int id,
boolean looking,
Position position,
String time)
id - the id of the eyeslooking - if the eyes are looking at the camera or notposition - the position of of the detected eyestime - the time when these eyes were detected| Method Detail |
|---|
public Position getPosition()
public void setPosition(Position position)
position - the position to setpublic int getId()
public String getTime()
public boolean isLooking()
public void setLooking(boolean looking)
looking - the looking to setpublic 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 | |||||||||