|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--Phidgets.Phidget | +--Phidgets.PhidgetManager
The class PhidgetManager
represents a Phidget Manager.
The Phidget manager is a way to keep track of attached phidgets, it will send OnAttach and OnDetach events as Phidgets are added and removed fromt he system, and also maintain a Vector list of all attached Phidgets.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
PhidgetManager()
|
Method Summary | |
void |
add_IPhidgetManagerEventsListener(_IPhidgetInterfaceKitEvents l)
Sets up the event handlers |
java.util.Vector |
getPhidgets()
Returns a list of Phidgets attached to the host computer |
int |
OpenRemote(int serverSerial,
int port,
java.lang.String pass)
Open the device when it is on the local network. |
int |
OpenRemoteIP(java.lang.String ip,
int port,
java.lang.String pass)
Open the device when it is on a remote network. |
void |
remove_IPhidgetManagerEventsListener()
Removes the events handlers |
java.lang.String |
toString()
|
Methods inherited from class Phidgets.Phidget |
Close, equals, GetDeviceType, GetDeviceVersion, GetIsAttached, GetSerialNumber, GetServerAddress, GetServerID, GetServerPort, run, setDeviceType, setDeviceVersion, setSerialNumber |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PhidgetManager()
Method Detail |
public int OpenRemote(int serverSerial, int port, java.lang.String pass)
serverSerial
- Serial number of the server, or -1 for any serialport
- Server portserialNumber
- Serial number of the device or -1 for any serialpass
- Server passwordpublic int OpenRemoteIP(java.lang.String ip, int port, java.lang.String pass)
ip
- IP address or hostname of the serverport
- Server portserialNumber
- Serial number of the device or -1 for any serialpass
- Server passwordpublic void add_IPhidgetManagerEventsListener(_IPhidgetInterfaceKitEvents l)
l
- An object implementing the __IPhidgetInterfaceKitEvents interfacepublic void remove_IPhidgetManagerEventsListener()
public java.lang.String toString()
toString
in class java.lang.Thread
public java.util.Vector getPhidgets()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |