stella.telescope
Class CabinetSwitch

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.parameter.AbstractParameter
                  extended by stella.parameter.AbstractTrigger
                      extended by stella.parameter.SimpleTrigger
                          extended by stella.parameter.AbstractSwitch
                              extended by stella.parameter.RS485Switch
                                  extended by stella.telescope.CabinetSwitch
All Implemented Interfaces:
DriverDepending, Cloneable, Parameter, Switch, Trigger, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying

public class CabinetSwitch
extends RS485Switch

A switch to turn the power in the switch cabinet of the telescope on and off. It defaults to an RS485-relay with address 35. Its state on means that the cabinet is without power.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
static String DEFNAME
          The default parameter name.
private static String DEFSERIAL
          The default serial driver name.
private static String DEFSWITCHOFF
          The default serial command to switch on the light.
private static String DEFSWITCHON
          The default serial command to switch on the light.
 
Fields inherited from class stella.parameter.RS485Switch
KEY_INITOFF, KEY_SERIAL, KEY_SWITCHOFF, KEY_SWITCHON
 
Fields inherited from class stella.parameter.SimpleTrigger
KEY_INITBOOLEAN
 
Fields inherited from class stella.parameter.AbstractParameter
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
CabinetSwitch(Map prop)
          Constructs a new living reference of a cabinet switch.
 
Method Summary
 
Methods inherited from class stella.parameter.RS485Switch
init, off, on, registerDriver, rescanned
 
Methods inherited from class stella.parameter.AbstractSwitch
turnOff, turnOn
 
Methods inherited from class stella.parameter.SimpleTrigger
getLastToggleTime, getTrigger, setTrigger
 
Methods inherited from class stella.parameter.AbstractTrigger
get, getElapsedToggleTime, isTrue, set, toggleTrigger
 
Methods inherited from class stella.parameter.AbstractParameter
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, setName, toString
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, setObject, setProperties, setProperty, stringProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.Reloadable
reload
 
Methods inherited from interface stella.Trigger
getElapsedToggleTime, getLastToggleTime, getTrigger, isTrue, setTrigger, toggleTrigger
 
Methods inherited from interface stella.Parameter
get, getFormatted, getName, getString, set
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 

Field Detail

DEFNAME

public static final String DEFNAME
The default parameter name.

See Also:
Constant Field Values

DEFSERIAL

private static final String DEFSERIAL
The default serial driver name.

See Also:
Constant Field Values

DEFSWITCHON

private static final String DEFSWITCHON
The default serial command to switch on the light.

See Also:
Constant Field Values

DEFSWITCHOFF

private static final String DEFSWITCHOFF
The default serial command to switch on the light.

See Also:
Constant Field Values
Constructor Detail

CabinetSwitch

public CabinetSwitch(Map prop)
Constructs a new living reference of a cabinet switch.