Package adaptlil.gazepoint.api
Class GazeApiCommands
java.lang.Object
adaptlil.gazepoint.api.GazeApiCommands
Static grabber file to obtain Class types for Xml deserialization.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
private static com.fasterxml.jackson.dataformat.xml.XmlMapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionContains a list of classes that extend RecXmlObject.static XmlObject
mapToXmlObject
(String xml) Attempts to map an xml from Gaze.
-
Field Details
-
xmlMapper
private static com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper -
ENABLE_SEND_DATA
- See Also:
-
ENABLE_SEND_COUNTER
- See Also:
-
ENABLE_SEND_TIME
- See Also:
-
ENABLE_SEND_TIME_TICK
- See Also:
-
ENABLE_SEND_POG_FIX
- See Also:
-
ENABLE_SEND_POG_LEFT
- See Also:
-
ENABLE_SEND_POG_RIGHT
- See Also:
-
ENABLE_SEND_POG_BEST
- See Also:
-
ENABLE_SEND_POG_AAC
- See Also:
-
ENABLE_SEND_PUPIL_LEFT
- See Also:
-
ENABLE_SEND_PUPIL_RIGHT
- See Also:
-
ENABLE_SEND_EYE_LEFT
- See Also:
-
ENABLE_SEND_EYE_RIGHT
- See Also:
-
ENABLE_SEND_CURSOR
- See Also:
-
ENABLE_SEND_BLINK
- See Also:
-
ENABLE_SEND_PUPILMM
- See Also:
-
ENABLE_SEND_DIAL
- See Also:
-
ENABLE_SEND_GSR
- See Also:
-
ENABLE_SEND_HR
- See Also:
-
ENABLE_SEND_HR_PULSE
- See Also:
-
ENABLE_SEND_TTL
- See Also:
-
ENABLE_SEND_PIX
- See Also:
-
ENABLE_SEND_USER_DATA
- See Also:
-
CALIBRATE_START
- See Also:
-
CALIBRATE_SHOW
- See Also:
-
CALIBRATE_TIMEOUT
- See Also:
-
CALIBRATE_DELAY
- See Also:
-
CALIBRATE_RESULT_SUMMARY
- See Also:
-
CALIBRATE_CLEAR
- See Also:
-
CALIBRATE_RESET
- See Also:
-
CALIBRATE_ADDPOINT
- See Also:
-
USER_DATA
- See Also:
-
TRACKER_DISPLAY
- See Also:
-
TIME_TICK_FREQUENCY
- See Also:
-
SCREEN_SIZE
- See Also:
-
CAMERA_SIZE
- See Also:
-
PRODUCT_ID
- See Also:
-
SERIAL_ID
- See Also:
-
COMPANY_ID
- See Also:
-
API_ID
- See Also:
-
TRACKER_ID
- See Also:
-
MARKER_PIX
- See Also:
-
AAC_FILTER
- See Also:
-
-
Constructor Details
-
GazeApiCommands
public GazeApiCommands()
-
-
Method Details
-
getRecCommands
Contains a list of classes that extend RecXmlObject. These contain the class reference so the xmlMapper can try it against many types when we don't know exactly what the command will be.- Returns:
-
getAckCommands
-
mapToXmlObject
Attempts to map an xml from Gaze. If one is found, it is returned, otherwise null. NOTE: this downcasts the object so to get the proper object, do an instanceof check on the type to properly deal with the correct xml object. (e.g.) -> if (xmlObject instance of RecXmlCommand) ((RecFixationPOG) xmlObject)) now you can call the correct methods and handle the data properly.- Parameters:
xml
-- Returns:
-