t3.hrd.input
Class PointInputDeviceState

java.lang.Object
  extended by t3.hrd.input.PointInputDeviceState
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PointInputDeviceState
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Data structure to store the state of a point input device.

Author:
pjt40
See Also:
Serialized Form

Field Summary
 int buttons
          Integer where each bit represents a button.
 int clientId
          Client id
 double DESKx
          Location of the device in DESK space.
 double DESKy
          Location of the device in DESK space.
 java.io.Serializable extra
           
 int personId
          Person id
 int pointInputDeviceType
          Device type
 boolean positionAndButtonsKnown
          True iff the position of the device and its button state are currently known.
 
Constructor Summary
PointInputDeviceState(int clientId, int pointInputType, int personId)
           
PointInputDeviceState(int clientId, int pointInputType, int personId, boolean positionAndButtonsKnown, double DESKx, double DESKy, int buttons, java.io.Serializable extra)
           
 
Method Summary
 PointInputDeviceState clone()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pointInputDeviceType

public final int pointInputDeviceType
Device type


clientId

public final int clientId
Client id


personId

public final int personId
Person id


positionAndButtonsKnown

public boolean positionAndButtonsKnown
True iff the position of the device and its button state are currently known.


buttons

public int buttons
Integer where each bit represents a button. LSB is button 0.


DESKx

public double DESKx
Location of the device in DESK space.


DESKy

public double DESKy
Location of the device in DESK space.


extra

public java.io.Serializable extra
Constructor Detail

PointInputDeviceState

public PointInputDeviceState(int clientId,
                             int pointInputType,
                             int personId)

PointInputDeviceState

public PointInputDeviceState(int clientId,
                             int pointInputType,
                             int personId,
                             boolean positionAndButtonsKnown,
                             double DESKx,
                             double DESKy,
                             int buttons,
                             java.io.Serializable extra)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public PointInputDeviceState clone()
Overrides:
clone in class java.lang.Object