|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectendrov.hardwareNative.EvSerialTCP
public class EvSerialTCP
Serial communication over TCP/IP TODO this code has not been tested
| Field Summary | |
|---|---|
EvDeviceObserver |
event
|
| Constructor Summary | |
|---|---|
EvSerialTCP(java.net.Socket s)
|
|
| Method Summary | |
|---|---|
void |
addDeviceListener(EvDeviceObserver.DeviceListener listener)
Add a listener for updates. |
java.lang.String |
getDescName()
Descriptive name of hardware |
java.util.SortedMap<java.lang.String,java.lang.String> |
getPropertyMap()
|
java.util.SortedMap<java.lang.String,DevicePropertyType> |
getPropertyTypes()
|
java.lang.String |
getPropertyValue(java.lang.String prop)
|
java.lang.Boolean |
getPropertyValueBoolean(java.lang.String prop)
|
boolean |
hasConfigureDialog()
|
java.lang.String |
nonblockingRead()
Read whatever input is available at the moment |
void |
openConfigureDialog()
|
java.lang.String |
readUntilTerminal(java.lang.String term)
Read until string occurs. |
void |
removeDeviceListener(EvDeviceObserver.DeviceListener listener)
|
void |
setPropertyValue(java.lang.String prop,
boolean value)
|
void |
setPropertyValue(java.lang.String prop,
java.lang.String value)
|
void |
writePort(java.lang.String s)
Write string to serial port |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public EvDeviceObserver event
| Constructor Detail |
|---|
public EvSerialTCP(java.net.Socket s)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String nonblockingRead()
HWSerial
nonblockingRead in interface HWSerialpublic java.lang.String readUntilTerminal(java.lang.String term)
HWSerial
readUntilTerminal in interface HWSerialpublic void writePort(java.lang.String s)
HWSerial
writePort in interface HWSerialpublic java.lang.String getDescName()
EvDevice
getDescName in interface EvDevicepublic java.util.SortedMap<java.lang.String,java.lang.String> getPropertyMap()
getPropertyMap in interface EvDevicepublic java.util.SortedMap<java.lang.String,DevicePropertyType> getPropertyTypes()
getPropertyTypes in interface EvDevicepublic java.lang.String getPropertyValue(java.lang.String prop)
getPropertyValue in interface EvDevicepublic java.lang.Boolean getPropertyValueBoolean(java.lang.String prop)
getPropertyValueBoolean in interface EvDevice
public void setPropertyValue(java.lang.String prop,
java.lang.String value)
setPropertyValue in interface EvDevice
public void setPropertyValue(java.lang.String prop,
boolean value)
setPropertyValue in interface EvDevicepublic boolean hasConfigureDialog()
hasConfigureDialog in interface EvDevicepublic void openConfigureDialog()
openConfigureDialog in interface EvDevicepublic void addDeviceListener(EvDeviceObserver.DeviceListener listener)
EvDevice
addDeviceListener in interface EvDevicepublic void removeDeviceListener(EvDeviceObserver.DeviceListener listener)
removeDeviceListener in interface EvDevice
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||