Package adaptlil.gazepoint.api.recv
Class RecXml
java.lang.Object
adaptlil.gazepoint.api.XmlObject
adaptlil.gazepoint.api.recv.RecXml
Implements GazeAPI for real time processing of gaze data.
public class attributes are used to convert this object to a WEKA instance for machine learning.
private attributes are generally adaptlil.data_classes that mirror the GazeAPI for a more 'best-practice' development experience
Looks ike gaze api doesnt send different rec templates where we have to map.
It sends one single rec element with unique attribute ids for each command set.
-
Field Summary
Modifier and TypeFieldDescriptionprivate BestPointOfGaze
private Cursor
5.13 Cursor position Description: The position of the mouse cursor.private Fixation
private LeftEyePointOfGaze
private LeftEyePupil
private PupilDiameter
private RightEyePointOfGaze
private RightEyePupil
private Double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the data class holder for BestPointOfGaze attributes contained in thisdata packet. getBPOGV()
getBPOGX()
getBPOGY()
getCS()
getCX()
getCY()
Returns the data class holder for the Fixation attributes contained in thepacket. getFPOGD()
getFPOGS()
getFPOGV()
getFPOGX()
getFPOGY()
Returns the data class holder for the LeftPointOfGaze attributes contained in thisReturns the data class holder for the LeftEyePupil attributes containedgetLPCX()
getLPCY()
getLPD()
getLPMM()
getLPMMV()
getLPOGV()
getLPOGX()
getLPOGY()
getLPS()
getLPV()
Data class holder for PupilDiameter attributes of the(This) Returns the data class holder for the RightEyePointOfGaze attributes contained in thisReturns the RightEyePupil data class for the attributes contained in the(this) getRPCX()
getRPCY()
getRPD()
getRPMM()
getRPMMV()
getRPOGV()
getRPOGX()
getRPOGY()
getRPS()
getRPV()
getTime()
boolean
RecXml[]
interpolate
(RecXml first, RecXml last, List<RecXml> packetsBetweenFirstAndLast, int steps) Interpolates all data attributes of a RECXml object.void
setBestPointOfGaze
(BestPointOfGaze bestPointOfGaze) Sets the bestPointOfGaze attribute and its relative GazePoitn data metrics [e.g.void
setFixation
(Fixation fixation) Sets the fixation object and the relative GazePoint Data metric names [e.g.void
setLeftEyePointOfGaze
(LeftEyePointOfGaze leftEyePointOfGaze) Sets the leftEyePointOfGaze attribute and its relative GazePoint data metrics [e.g.void
setLeftEyePupil
(LeftEyePupil leftEyePupil) Sets the LeftEyePupil attribute and its relative GazePoint data metrics [e.g.void
setPupilDiameter
(PupilDiameter pupilDiameter) Sets the PupilDiameter attribute of this class and its relative GazePoint data metrics [e.g.void
setRightEyePointOfGaze
(RightEyePointOfGaze rightEyePointOfGaze) Sets the rightEyePointOfGaze attribute and its relative GazePoint data metrics [e.g.void
setRightEyePupil
(RightEyePupil rightEyePupil) Sets the RightEyePupil attribute and its relative GazePoint data metrics [e.g.void
-
Field Details
-
fixation
-
cursor
-
bestPointOfGaze
-
leftEyePointOfGaze
-
rightEyePointOfGaze
-
leftEyePupil
-
rightEyePupil
-
pupilDiameter
-
FPOGX
-
FPOGY
-
FPOGS
-
FPOGD
-
FPOGID
-
FPOGV
-
BPOGX
-
BPOGY
-
BPOGV
-
LPOGX
-
LPOGY
-
LPOGV
-
RPOGX
-
RPOGY
-
RPOGV
-
LPCX
-
LPCY
-
LPD
-
LPS
-
LPV
-
RPCX
-
RPCY
-
RPD
-
RPS
-
RPV
-
LPMM
-
LPMMV
-
RPMMV
-
RPMM
-
CX
5.13 Cursor position Description: The position of the mouse cursor. Parameter ID: CX, CY Parameter type: float Parameter description: The X- and Y-coordinates of the mouse cursor, as percentage of the screen size. Parameter ID: CS (0 for idle, 1 for left mouse button down, 2 for right button down, 3 for left button up, 4 for right button up. Parameter type: integer Parameter description: Mouse cursor state, 0 for steady state, 1 for left button down, 2 for right button down, 3 for left button up, 4 for right button up -
CY
-
CS
-
counter
-
time
-
timeTick
-
-
Constructor Details
-
RecXml
public RecXml()
-
-
Method Details
-
getFixation
Returns the data class holder for the Fixation attributes contained in thepacket. - Returns:
- Fixation
-
getBestPointOfGaze
Returns the data class holder for BestPointOfGaze attributes contained in thisdata packet. - Returns:
- BestPointOfGaze
-
getLeftEyePointOfGaze
Returns the data class holder for the LeftPointOfGaze attributes contained in this- Returns:
- LeftEyePointOfGaze
-
getRightEyePointOfGaze
Returns the data class holder for the RightEyePointOfGaze attributes contained in this- Returns:
- RightEyePointOfGaze
-
getLeftEyePupil
Returns the data class holder for the LeftEyePupil attributes contained- Returns:
- LeftEyePupil
-
getRightEyePupil
Returns the RightEyePupil data class for the attributes contained in the(this) - Returns:
- RightEyePupil
-
getPupilDiameter
Data class holder for PupilDiameter attributes of the(This) - Returns:
-
getCursor
-
getFPOGX
-
getFPOGY
-
getFPOGS
-
getFPOGD
-
getFPOGID
-
getFPOGV
-
getCX
-
getCY
-
getCS
-
getCounter
-
getTime
-
getBPOGX
-
getBPOGY
-
getBPOGV
-
getLPOGX
-
getLPOGY
-
getLPOGV
-
getRPOGX
-
getRPOGY
-
getRPOGV
-
getLPCX
-
getLPCY
-
getLPD
-
getLPS
-
getLPV
-
getRPCX
-
getRPCY
-
getRPD
-
getRPS
-
getRPV
-
getLPMM
-
getLPMMV
-
getRPMMV
-
getRPMM
-
getTimeTick
-
setFixation
Sets the fixation object and the relative GazePoint Data metric names [e.g. FPOGX, FPOGY]- Parameters:
fixation
-
-
setBestPointOfGaze
Sets the bestPointOfGaze attribute and its relative GazePoitn data metrics [e.g. BPOGX, BPOGY]- Parameters:
bestPointOfGaze
- The object to set the RecXmlObject bestPointOfGaze attribute to.
-
setLeftEyePointOfGaze
Sets the leftEyePointOfGaze attribute and its relative GazePoint data metrics [e.g. LPOGX, LPOGY]- Parameters:
leftEyePointOfGaze
- The object to set the RecXmlObject leftEyePointOfGaze attribute to.
-
setRightEyePointOfGaze
Sets the rightEyePointOfGaze attribute and its relative GazePoint data metrics [e.g. RPOGX, RPOGY]- Parameters:
rightEyePointOfGaze
- The actual param to set the RecXmlObject.rightEyePointOfGaze to.
-
setLeftEyePupil
Sets the LeftEyePupil attribute and its relative GazePoint data metrics [e.g. LPV, LPCX, LPCY, LPD]- Parameters:
leftEyePupil
- the actual param to set the RecXmlObject.leftEyePupil to.
-
setRightEyePupil
Sets the RightEyePupil attribute and its relative GazePoint data metrics [e.g. RPCX, RPCY, RPV, RPD]- Parameters:
rightEyePupil
- the actual param to set the RecXmlObject.rightEyePupil to.
-
setPupilDiameter
Sets the PupilDiameter attribute of this class and its relative GazePoint data metrics [e.g. RPMM, RPMMV, LPMM, LPMMV]- Parameters:
pupilDiameter
- The actual param to set the RecXmlObject.pupilDiameter to.
-
setTime
-
interpolate
public RecXml[] interpolate(RecXml first, RecXml last, List<RecXml> packetsBetweenFirstAndLast, int steps) Interpolates all data attributes of a RECXml object. This means if the packets contained BestPointofGaze and PupilDiameter, this function will interpolate those two attributes between the first packet and the last packet.- Parameters:
first
-last
-packetsBetweenFirstAndLast
- Optional array. If only a few attributes of the packets between first and last are marked as invalid, we can use this function to interpolate on those marked as invalid. Otherwise, if we leave this as null, this function will interpolate ALL attributes for ALL packets between first and last.steps
-- Returns:
-
hasInvalidAttributes
public boolean hasInvalidAttributes()
-