|
||||||||||
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.PhidgetInterfaceKit
The class PhidgetInterfaceKit
represents a Phidget Interface kit. All methods
to read and write data to and from an Interface Kit are implemented in this class.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
PhidgetInterfaceKit()
|
Method Summary | |
void |
add_IPhidgetInterfaceKitEventsListener(_IPhidgetInterfaceKitEvents l)
Sets up the event handlers |
boolean |
GetInputState(int Index)
Gets the state of a digital input |
int |
GetNumInputs()
Gets the number of ditigal inputs |
int |
GetNumOutputs()
Gets the number of digital outputs |
int |
GetNumSensors()
Gets the number of analog inputs |
boolean |
GetOutputState(int Index)
Gets the state of a digital output |
int |
GetSensorChangeTrigger(int Index)
Gets the change trigger for an analog input |
int |
GetSensorNormalizeMaximum(int Index)
Gets the maximum input value for an analog input |
int |
GetSensorNormalizeMinimum(int Index)
Gets the minimum input value for an analog input |
int |
GetSensorValue(int Index)
Gets the value of a analog input. |
int |
OpenRemote(int serverSerial,
int port,
int serialNumber,
java.lang.String pass)
Open the device when it is on the local network. |
int |
OpenRemoteIP(java.lang.String ip,
int port,
int serialNumber,
java.lang.String pass)
Open the device when it is on a remote network. |
void |
remove_IPhidgetInterfaceKitEventsListener()
Removes the events handlers |
void |
SetOutputState(int Index,
boolean newVal)
Sets the state of a ditigal output |
void |
SetSensorChangeTrigger(int Index,
int newVal)
Sets the change trigger for an analog input. |
void |
SetSensorNormalizeMaximum(int Index,
int newVal)
Sets the maximum value for a analog input. |
void |
SetSensorNormalizeMinimum(int Index,
int newVal)
Sets the minimum value for a analog input. |
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, toString, yield |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PhidgetInterfaceKit()
Method Detail |
public int OpenRemote(int serverSerial, int port, int serialNumber, 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, int serialNumber, 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 int GetNumOutputs()
public int GetNumInputs()
public int GetNumSensors()
public boolean GetInputState(int Index)
Index
- Inputpublic boolean GetOutputState(int Index)
Index
- Outputpublic int GetSensorValue(int Index)
Index
- Inputpublic int GetSensorNormalizeMinimum(int Index)
Index
- Inputpublic int GetSensorNormalizeMaximum(int Index)
Index
- Inputpublic int GetSensorChangeTrigger(int Index)
Index
- Inputpublic void SetOutputState(int Index, boolean newVal)
Index
- OutputnewVal
- Statepublic void SetSensorNormalizeMinimum(int Index, int newVal)
Index
- InputnewVal
- Valuepublic void SetSensorNormalizeMaximum(int Index, int newVal)
Index
- InputnewVal
- Valuepublic void SetSensorChangeTrigger(int Index, int newVal)
Index
- InputnewVal
- Valuepublic void add_IPhidgetInterfaceKitEventsListener(_IPhidgetInterfaceKitEvents l)
l
- An object implementing the __IPhidgetInterfaceKitEvents interfacepublic void remove_IPhidgetInterfaceKitEventsListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |