|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--adm.event.CAdaptor
CAdaptor is an invisible bean used to monitor and to control a cdev
Device Property's value.
A cdev.DeviceListener can subscribe to this bean to receive notification
of monitors. Objects can also send CDEV "set" commands via this bean.
Currently the data type to set is restricted to int, double or String.
Constructor Summary | |
CAdaptor()
|
Method Summary | |
void |
addDeviceListener(DeviceListener dl)
Add the device listener |
void |
deviceChanged(DeviceEvent evt)
|
java.lang.String |
getDeviceName()
Return the device name to which this component is connected. |
java.lang.String |
getPropertyName()
Return the device property name to which this component is connected. |
java.lang.String |
getStringValue()
Return the data value as a string |
void |
removeDeviceListener(DeviceListener dl)
Remove the device listener |
void |
setDeviceName(java.lang.String newName)
Set the Device name |
void |
setPropertyName(java.lang.String newName)
Set device property name |
void |
setValue(double val)
Send a double data to control system |
void |
setValue(int val)
Send a int data to control system |
void |
setValue(java.lang.String val)
Send a String data to control system |
java.lang.String |
toString()
Return device name.property name as a string |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public CAdaptor()
Method Detail |
public void setDeviceName(java.lang.String newName)
newName
- the name of device you want to connectpublic java.lang.String getDeviceName()
public void setPropertyName(java.lang.String newName)
newName
- the name of device property you want to connectpublic java.lang.String getPropertyName()
public void addDeviceListener(DeviceListener dl)
public void removeDeviceListener(DeviceListener dl)
public java.lang.String toString()
public void deviceChanged(DeviceEvent evt)
public java.lang.String getStringValue()
public void setValue(java.lang.String val)
public void setValue(double val)
public void setValue(int val)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |