public abstract class AbstractPilarDriver extends AbstractDriver implements PilarDriver
| Modifier and Type | Field and Description |
|---|---|
private IntegerId |
commandid
The command id counter.
|
private static double |
DEFAVERAGEPRESS
The overall pressure in Tenerife, hPa.
|
private static double |
DEFAVERAGETEMP
The overall temperature in Tenerife, Celcius.
|
static String |
DEFDRIVERNAME
Default name of the driver.
|
private static String |
DEFPRESSURE
The default name of the pressure value.
|
private static String |
DEFTEMPERATURE
The default name of the temperature value.
|
static String |
KEY_AVERAGEPRESS
The overall temperature in Tenerife.
|
static String |
KEY_AVERAGETEMP
The overall temperature in Tenerife.
|
static String |
KEY_COMMANDID
The name of the ID value, may be null (=use any).
|
static String |
KEY_PRESSURE
The name of the pressure value.
|
static String |
KEY_TEMPERATURE
The name of the temperature value.
|
private boolean |
pressnull
Gets true as soon as we have reported an invalid temperature.
|
private Value |
pressure
The ambient pressure.
|
private Value |
temperature
The ambient temperature.
|
private boolean |
tempnull
Gets true as soon as we have reported an invalid temperature.
|
KEY_DRIVERNAMEKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPilarDriver(Map<String,String> prop)
Constructs a new abstract pilar3 driver.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getNextId()
If we have no command id, we construct a default one, otherwise we use
the preserved state.
|
protected double |
getPressure()
Returns the ambient pressure or the default value, if the pressure
parameter cannot be queried.
|
protected double |
getTemperature()
Returns the ambient temperature or the default value, if the temperature
parameter cannot be queried.
|
void |
registerParameter(Parameter env)
Registers the parameters temperature and pressure to the pilar driver.
|
createDriver, equals, getDriverName, hashCodeaugment, augment, augment, augment, augment, clone, 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, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcommenceClear, commenceSetCovers, commenceUsePort, getErrors, getValue, rebuild, setValue, waitForValuecommenceAbort, commenceInit, commenceParkclose, getDriverName, isOpen, openinitcommenceDerotator, commenceDerotatorOffsetcommenceFocus, commenceFocusOffsetcommenceAbsoluteOffset, commenceAbsoluteOffset, commenceGuiding, commenceRelativeOffset, commenceRelativeOffsetcommenceMove, commenceMove, commenceMoveAzAlt, commenceTrackingpublic static final String KEY_TEMPERATURE
public static final String KEY_PRESSURE
public static final String KEY_COMMANDID
public static final String KEY_AVERAGETEMP
public static final String KEY_AVERAGEPRESS
public static final String DEFDRIVERNAME
private static final String DEFTEMPERATURE
private static final String DEFPRESSURE
private static final double DEFAVERAGETEMP
private static final double DEFAVERAGEPRESS
private Value temperature
private boolean tempnull
private Value pressure
private boolean pressnull
private IntegerId commandid
public void registerParameter(Parameter env)
registerParameter in interface ParameterDependingprotected double getTemperature()
protected double getPressure()
protected int getNextId()