java.lang.Objectjava.lang.Thread
Phidgets.Phidget
Field Summary | |
protected boolean |
attached
|
protected java.lang.String |
deviceType
|
protected int |
deviceVersion
|
protected _IPhidgetEvents |
events
|
protected int |
handler
|
protected java.lang.String |
IPAddr
|
protected java.lang.String |
password
|
protected int |
Port
|
protected int |
serialNumber
|
protected int |
ServerID
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Phidget()
|
Method Summary | |
void |
Close()
Closes the device. |
boolean |
equals(java.lang.Object comp)
|
protected boolean |
getBoolean(java.lang.String data)
|
java.lang.String |
GetDeviceType()
Gets the device type. |
int |
GetDeviceVersion()
Gets the Device Version. |
boolean |
GetIsAttached()
Gets the connection status. |
int |
GetSerialNumber()
Gets the Serial Number. |
java.lang.String |
GetServerAddress()
Gets the IP address of the Phidget WebService |
int |
GetServerID()
Gets the Server ID of the Phidget WebService |
int |
GetServerPort()
Gets the Port of the Phidget WebService |
protected void |
gotData(java.lang.String[] dataArray)
|
protected void |
init(java.lang.String[] dataArray)
|
protected int |
OpenRemote(int serial,
int port)
|
protected int |
OpenRemoteIP(java.lang.String ip,
int port)
|
void |
run()
Polls for phidget data on an open socket. |
void |
setDeviceType(java.lang.String string)
Sets the device name. |
void |
setDeviceVersion(int i)
Sets teh device version. |
void |
setSerialNumber(int i)
Sets the serial number. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int handler
protected int serialNumber
protected int deviceVersion
protected boolean attached
protected java.lang.String deviceType
protected java.lang.String password
protected _IPhidgetEvents events
protected java.lang.String IPAddr
protected int Port
protected int ServerID
Constructor Detail |
public Phidget()
Method Detail |
public int GetSerialNumber()
public int GetDeviceVersion()
public boolean GetIsAttached()
public java.lang.String GetDeviceType()
protected int OpenRemote(int serial, int port)
protected int OpenRemoteIP(java.lang.String ip, int port)
public void Close()
protected boolean getBoolean(java.lang.String data)
protected void init(java.lang.String[] dataArray)
protected void gotData(java.lang.String[] dataArray)
public void run()
public void setDeviceType(java.lang.String string)
string
- Device Namepublic void setDeviceVersion(int i)
i
- Versionpublic void setSerialNumber(int i)
i
- Serial Numberpublic boolean equals(java.lang.Object comp)
public java.lang.String GetServerAddress()
public int GetServerPort()
public int GetServerID()