endrov.hardwareMicromanager
Class MMSerial

java.lang.Object
  extended by endrov.hardwareMicromanager.MMDeviceAdapter
      extended by endrov.hardwareMicromanager.MMSerial
All Implemented Interfaces:
EvDevice, HWSerial

public class MMSerial
extends MMDeviceAdapter
implements HWSerial

Micro manager serial interface


Field Summary
 
Fields inherited from class endrov.hardwareMicromanager.MMDeviceAdapter
event, mm, mmDeviceName
 
Constructor Summary
MMSerial(MicroManager mm, java.lang.String mmDeviceName)
           
 
Method Summary
 java.lang.String nonblockingRead()
          Read whatever input is available at the moment
 java.lang.String readUntilTerminal(java.lang.String term)
          Read until string occurs.
 void writePort(java.lang.String s)
          Write string to serial port
 
Methods inherited from class endrov.hardwareMicromanager.MMDeviceAdapter
addDeviceListener, getDescName, getPropertyMap, getPropertyTypes, getPropertyValue, getPropertyValueBoolean, hasConfigureDialog, openConfigureDialog, removeDeviceListener, setPropertyValue, setPropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface endrov.hardware.EvDevice
addDeviceListener, getDescName, getPropertyMap, getPropertyTypes, getPropertyValue, getPropertyValueBoolean, hasConfigureDialog, openConfigureDialog, removeDeviceListener, setPropertyValue, setPropertyValue
 

Constructor Detail

MMSerial

public MMSerial(MicroManager mm,
                java.lang.String mmDeviceName)
Method Detail

nonblockingRead

public java.lang.String nonblockingRead()
Description copied from interface: HWSerial
Read whatever input is available at the moment

Specified by:
nonblockingRead in interface HWSerial

readUntilTerminal

public java.lang.String readUntilTerminal(java.lang.String term)
Description copied from interface: HWSerial
Read until string occurs. Returns up to and including this string

Specified by:
readUntilTerminal in interface HWSerial

writePort

public void writePort(java.lang.String s)
Description copied from interface: HWSerial
Write string to serial port

Specified by:
writePort in interface HWSerial