endrov.hardwareNative
Class BasicNativeCachingStateDevice

java.lang.Object
  extended by endrov.hardwareNative.BasicNativeCachingStateDevice
All Implemented Interfaces:
EvDevice, HWState
Direct Known Subclasses:
OlympusIX.DevCondenser, OlympusIX.DevLampIntensity, OlympusIX.DevLampSource, OlympusIX.DevMirrorUnit, OlympusIX.DevObjective, OlympusIX.DevPrism, OlympusIX.DevShutter

public abstract class BasicNativeCachingStateDevice
extends java.lang.Object
implements HWState

Device mapping state to property "state". State will be cached.


Constructor Summary
BasicNativeCachingStateDevice()
           
BasicNativeCachingStateDevice(int[] state, java.lang.String[] stateLabel)
           
BasicNativeCachingStateDevice(int min, int max)
           
 
Method Summary
 int getCurrentState()
           
abstract  int getCurrentStateHW()
           
 java.lang.String getCurrentStateLabel()
           
 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)
           
 java.util.List<java.lang.String> getStateNames()
           
 void setCurrentState(int state)
           
abstract  void setCurrentStateHW(int state)
           
 void setCurrentStateLabel(java.lang.String label)
           
 void setPropertyValue(java.lang.String prop, boolean value)
           
 void setPropertyValue(java.lang.String prop, java.lang.String value)
           
 
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, hasConfigureDialog, openConfigureDialog, removeDeviceListener
 

Constructor Detail

BasicNativeCachingStateDevice

public BasicNativeCachingStateDevice()

BasicNativeCachingStateDevice

public BasicNativeCachingStateDevice(int min,
                                     int max)

BasicNativeCachingStateDevice

public BasicNativeCachingStateDevice(int[] state,
                                     java.lang.String[] stateLabel)
Method Detail

getStateNames

public java.util.List<java.lang.String> getStateNames()
Specified by:
getStateNames in interface HWState

getCurrentStateHW

public abstract int getCurrentStateHW()

setCurrentStateHW

public abstract void setCurrentStateHW(int state)

getCurrentState

public int getCurrentState()
Specified by:
getCurrentState in interface HWState

setCurrentState

public void setCurrentState(int state)
Specified by:
setCurrentState in interface HWState

getCurrentStateLabel

public java.lang.String getCurrentStateLabel()
Specified by:
getCurrentStateLabel in interface HWState

setCurrentStateLabel

public void setCurrentStateLabel(java.lang.String label)
Specified by:
setCurrentStateLabel in interface HWState

getPropertyMap

public java.util.SortedMap<java.lang.String,java.lang.String> getPropertyMap()
Specified by:
getPropertyMap 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

getPropertyTypes

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