|
||||||||||
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.PhidgetWeightSensor
The class PhidgetWeightSensor
represents a Phidget Weight Sensor. All methods
to read weight data from the weight sensor are implemented in this class.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
PhidgetWeightSensor()
|
Method Summary | |
void |
add_IPhidgetWeightSensorEventsListener(_IPhidgetWeightSensorEvents l)
Sets up the event handlers |
double |
GetWeight()
Gets the weight |
double |
GetWeightChangeTrigger()
Gets the weight change trigger |
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_IPhidgetWeightSensorEventsListener()
Removes the events handlers |
void |
SetUseImperial(boolean newVal)
Sets whether to use imperial or not |
void |
SetWeightChangeTrigger(double newVal)
Sets the weight change trigger |
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 PhidgetWeightSensor()
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 double GetWeight()
public double GetWeightChangeTrigger()
public void SetWeightChangeTrigger(double newVal)
newVal
- triggerpublic void SetUseImperial(boolean newVal)
newVal
- public void add_IPhidgetWeightSensorEventsListener(_IPhidgetWeightSensorEvents l)
l
- An object implementing the __IPhidgetWeightSensorEvents interfacepublic void remove_IPhidgetWeightSensorEventsListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |