|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.phidgets.Phidget
com.phidgets.PHSensorPhidget
public final class PHSensorPhidget
This class represents a Phidget PH Sensor. All methods to read PH data from the PH Sensor are implemented in this class.
The Phidget PH Sensor provides one standard PH sensor input.
Constructor Summary | |
---|---|
PHSensorPhidget()
|
Method Summary | |
---|---|
void |
addPHChangeListener(PHChangeListener l)
Adds a pH change listener. |
double |
getPH()
Returns the measured pH. |
double |
getPHChangeTrigger()
Returns the change trigger. |
double |
getPotential()
Returns the Potential, in volts. |
void |
removePHChangeListener(PHChangeListener l)
|
void |
setPHChangeTrigger(double newVal)
Sets the change trigger. |
Methods inherited from class com.phidgets.Phidget |
---|
addAttachListener, addDetachListener, addErrorListener, close, equals, getDeviceName, getDeviceType, getDeviceVersion, getLibraryVersion, getSerialNumber, getTag, isAttached, open, openAny, removeAttachListener, removeDetachListener, removeErrorListener, setTag, toString, waitForAttachment |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PHSensorPhidget() throws PhidgetException
PhidgetException
Method Detail |
---|
public double getPH() throws PhidgetException
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public double getPotential() throws PhidgetException
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public void setPHChangeTrigger(double newVal) throws PhidgetException
newVal
- Trigger
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public double getPHChangeTrigger() throws PhidgetException
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public final void addPHChangeListener(PHChangeListener l)
Trigger
that has been set.
There is no limit on the number of ph change handlers that can be registered for a particular Phidget.
l
- An implemetation of the PHChangeListener
interfacepublic final void removePHChangeListener(PHChangeListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |