endrov.hardwareNative
Class ITKCorvus

java.lang.Object
  extended by endrov.hardware.EvDeviceProvider
      extended by endrov.hardwareNative.ITKCorvus
All Implemented Interfaces:
EvDevice

public class ITKCorvus
extends EvDeviceProvider
implements EvDevice

ITK Corvus stage drive + joystick. The language is Venus-1 which is supposed to work with many other ITK devices.


Field Summary
 EvDeviceObserver event
           
 HWSerial serial
          I/O is blocking.
 
Fields inherited from class endrov.hardware.EvDeviceProvider
hw
 
Constructor Summary
ITKCorvus()
           
 
Method Summary
 void addDeviceListener(EvDeviceObserver.DeviceListener listener)
          Add a listener for updates.
 java.util.Set<EvDevice> autodetect()
          Return null if operation not supported TODO maybe not return but add it right away?
 void getConfig(org.jdom.Element root)
           
 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 gsetSampleLoadPosition()
           
 boolean hasConfigureDialog()
           
 boolean hasSampleLoadPosition()
           
 void initController()
           
 EvDevice newProvided(java.lang.String s)
           
 void openConfigureDialog()
           
 java.util.List<java.lang.String> provides()
           
 java.lang.String queryCommand(java.lang.String cmd)
           
 void removeDeviceListener(EvDeviceObserver.DeviceListener listener)
           
 void sendCommand(java.lang.String cmd)
           
 void setConfig(org.jdom.Element root)
           
 void setNumAxis(int num)
          Corvus special command: The number of axis can be set.
 void setPropertyValue(java.lang.String prop, boolean value)
           
 void setPropertyValue(java.lang.String prop, java.lang.String value)
           
 void setSampleLoadPosition(boolean b)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serial

public HWSerial serial
I/O is blocking. hence the GUI dies upon init (most likely)


event

public EvDeviceObserver event
Constructor Detail

ITKCorvus

public ITKCorvus()
Method Detail

sendCommand

public void sendCommand(java.lang.String cmd)

queryCommand

public java.lang.String queryCommand(java.lang.String cmd)

initController

public void initController()

setNumAxis

public void setNumAxis(int num)
Corvus special command: The number of axis can be set.


autodetect

public java.util.Set<EvDevice> autodetect()
Description copied from class: EvDeviceProvider
Return null if operation not supported TODO maybe not return but add it right away?

Specified by:
autodetect in class EvDeviceProvider

getConfig

public void getConfig(org.jdom.Element root)
Specified by:
getConfig in class EvDeviceProvider

provides

public java.util.List<java.lang.String> provides()
Specified by:
provides in class EvDeviceProvider

newProvided

public EvDevice newProvided(java.lang.String s)
Specified by:
newProvided in class EvDeviceProvider

setConfig

public void setConfig(org.jdom.Element root)
Specified by:
setConfig in class EvDeviceProvider

getDescName

public java.lang.String getDescName()
Description copied from interface: EvDevice
Descriptive name of hardware

Specified by:
getDescName in interface EvDevice

getPropertyMap

public java.util.SortedMap<java.lang.String,java.lang.String> getPropertyMap()
Specified by:
getPropertyMap in interface EvDevice

getPropertyTypes

public java.util.SortedMap<java.lang.String,DevicePropertyType> getPropertyTypes()
Specified by:
getPropertyTypes in interface EvDevice

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String prop)
Specified by:
getPropertyValue in interface EvDevice

getPropertyValueBoolean

public java.lang.Boolean getPropertyValueBoolean(java.lang.String prop)
Specified by:
getPropertyValueBoolean in interface EvDevice

setPropertyValue

public void setPropertyValue(java.lang.String prop,
                             boolean value)
Specified by:
setPropertyValue in interface EvDevice

setPropertyValue

public void setPropertyValue(java.lang.String prop,
                             java.lang.String value)
Specified by:
setPropertyValue in interface EvDevice

hasConfigureDialog

public boolean hasConfigureDialog()
Specified by:
hasConfigureDialog in interface EvDevice

openConfigureDialog

public void openConfigureDialog()
Specified by:
openConfigureDialog in interface EvDevice

addDeviceListener

public void addDeviceListener(EvDeviceObserver.DeviceListener listener)
Description copied from interface: EvDevice
Add a listener for updates. The pointer to the listener is weak

Specified by:
addDeviceListener in interface EvDevice

removeDeviceListener

public void removeDeviceListener(EvDeviceObserver.DeviceListener listener)
Specified by:
removeDeviceListener in interface EvDevice

hasSampleLoadPosition

public boolean hasSampleLoadPosition()

setSampleLoadPosition

public void setSampleLoadPosition(boolean b)

gsetSampleLoadPosition

public boolean gsetSampleLoadPosition()

stop

public void stop()