Inherits alma::ACS::CharacteristicModelOperations.
Public Member Functions | |
void | lendContainerServices (ContainerServices c) |
void | setFieldPrefix (String prefix) |
CharacteristicModelImpl (String modelName, DAL dal) | |
Any | get_characteristic_by_name (String name) throws NoSuchCharacteristic |
String[] | find_characteristic (String wildcard) |
PropertySet | get_all_characteristics () |
String | getString (String name) throws NoSuchCharacteristic |
long | getLong (String name) throws NoSuchCharacteristic |
int | getInteger (String name) throws NoSuchCharacteristic |
double | getDouble (String name) throws NoSuchCharacteristic |
float | getFloat (String name) throws NoSuchCharacteristic |
int[] | getIntegerSeq (String name) throws NoSuchCharacteristic |
double[] | getDoubleSeq (String name) throws NoSuchCharacteristic |
float[] | getFloatSeq (String name) throws NoSuchCharacteristic |
int[] | getLongSeq (String name) throws NoSuchCharacteristic |
String[] | getStringSeq (String name) throws NoSuchCharacteristic |
Protected Attributes | |
String | modelName |
DAO | dao |
Implementation of alma.ACS.CharacteristicModel
. TODO temporary implementation - real caching (DAL wide, not per CharacteristicModelImpl instance) has to be implemented TODO what about reconnection then... is persistent DAL server enough?
alma.ACS.impl.CharacteristicModelImpl.CharacteristicModelImpl | ( | String | modelName, | |
DAL | dal | |||
) |
modelName | name of the model (used to determine CDB lookup), non-null . | |
dal | CDB DAL object, non-null . |
References alma.ACS.impl.CharacteristicModelImpl.dao.
String [] alma.ACS.impl.CharacteristicModelImpl.find_characteristic | ( | String | wildcard | ) |
References alma.ACS.impl.CharacteristicModelImpl.dao.
Referenced by alma.ACS.impl.PropertyImpl.find_characteristic(), and alma.ACS.impl.CharacteristicComponentImpl.find_characteristic().
PropertySet alma.ACS.impl.CharacteristicModelImpl.get_all_characteristics | ( | ) |
References alma.ACS.impl.CharacteristicModelImpl.dao, alma.ACS.impl.CharacteristicModelImpl.get_characteristic_by_name(), and alma.acs.container.ContainerServicesBase.getAdvancedContainerServices().
Referenced by alma.ACS.impl.PropertyImpl.get_all_characteristics(), and alma.ACS.impl.CharacteristicComponentImpl.get_all_characteristics().
Any alma.ACS.impl.CharacteristicModelImpl.get_characteristic_by_name | ( | String | name | ) | throws NoSuchCharacteristic |
References alma.ACS.impl.CharacteristicModelImpl.dao, alma.acs.container.ContainerServicesBase.getAdvancedContainerServices(), and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.CharacteristicModelImpl.get_all_characteristics(), alma.ACS.impl.PropertyImpl.get_characteristic_by_name(), and alma.ACS.impl.CharacteristicComponentImpl.get_characteristic_by_name().
double alma.ACS.impl.CharacteristicModelImpl.getDouble | ( | String | name | ) | throws NoSuchCharacteristic |
Read double characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.ROCommonComparablePropertyImpl.readCharacteristics(), alma.ACS.impl.CommonPropertyImpl.readCharacteristics(), alma.ACS.impl.RWfloatImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.RWdoubleImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.ROfloatImpl.readPropertyTypeCharacteristic(), and alma.ACS.impl.ROdoubleImpl.readPropertyTypeCharacteristic().
double [] alma.ACS.impl.CharacteristicModelImpl.getDoubleSeq | ( | String | name | ) | throws NoSuchCharacteristic |
Read sequence double characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.RWdoubleSeqImpl.readPropertyTypeCharacteristic(), and alma.ACS.impl.ROdoubleSeqImpl.readPropertyTypeCharacteristic().
float alma.ACS.impl.CharacteristicModelImpl.getFloat | ( | String | name | ) | throws NoSuchCharacteristic |
Read double characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
float [] alma.ACS.impl.CharacteristicModelImpl.getFloatSeq | ( | String | name | ) | throws NoSuchCharacteristic |
Read sequence double characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.RWfloatSeqImpl.readPropertyTypeCharacteristic(), and alma.ACS.impl.ROfloatSeqImpl.readPropertyTypeCharacteristic().
int alma.ACS.impl.CharacteristicModelImpl.getInteger | ( | String | name | ) | throws NoSuchCharacteristic |
Read int characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.CommonROEnumPropertyImpl.default_value(), alma.ACS.impl.RWpatternImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.RWOnOffSwitchImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.RWlongImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.RWBoolImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.ROpatternImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.ROOnOffSwitchImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.ROlongImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.ROBoolImpl.readPropertyTypeCharacteristic(), and alma.ACS.impl.CommonROEnumPropertyImpl.readPropertyTypeCharacteristic().
int [] alma.ACS.impl.CharacteristicModelImpl.getIntegerSeq | ( | String | name | ) | throws NoSuchCharacteristic |
Read sequence long characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.ROOnOffSwitchImpl.alarm_off(), alma.ACS.impl.ROBoolImpl.alarm_off(), alma.ACS.impl.ROOnOffSwitchImpl.alarm_on(), alma.ACS.impl.ROBoolImpl.alarm_on(), alma.ACS.impl.CommonROEnumPropertyImpl.condition(), alma.ACS.impl.RWlongSeqImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.ROlongSeqImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.RWpatternImpl.whenCleared(), alma.ACS.impl.ROpatternImpl.whenCleared(), alma.ACS.impl.RWpatternImpl.whenSet(), and alma.ACS.impl.ROpatternImpl.whenSet().
long alma.ACS.impl.CharacteristicModelImpl.getLong | ( | String | name | ) | throws NoSuchCharacteristic |
Read long characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.RWpatternImpl.alarm_mask(), alma.ACS.impl.ROpatternImpl.alarm_mask(), alma.ACS.impl.RWpatternImpl.alarm_trigger(), alma.ACS.impl.ROpatternImpl.alarm_trigger(), alma.ACS.impl.TypelessPropertyImpl.readCharacteristics(), alma.ACS.impl.RWuLongLongImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.RWlongLongImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.ROuLongLongImpl.readPropertyTypeCharacteristic(), and alma.ACS.impl.ROlongLongImpl.readPropertyTypeCharacteristic().
int [] alma.ACS.impl.CharacteristicModelImpl.getLongSeq | ( | String | name | ) | throws NoSuchCharacteristic |
Read sequence double characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.RWOnOffSwitchImpl.condition(), alma.ACS.impl.RWBoolImpl.condition(), alma.ACS.impl.ROOnOffSwitchImpl.condition(), and alma.ACS.impl.ROBoolImpl.condition().
String alma.ACS.impl.CharacteristicModelImpl.getString | ( | String | name | ) | throws NoSuchCharacteristic |
Read string characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.TypelessPropertyImpl.readCharacteristics(), alma.ACS.impl.RWstringImpl.readPropertyTypeCharacteristic(), and alma.ACS.impl.ROstringImpl.readPropertyTypeCharacteristic().
String [] alma.ACS.impl.CharacteristicModelImpl.getStringSeq | ( | String | name | ) | throws NoSuchCharacteristic |
Read sequence string characteristic.
name | characteristic name. |
NoSuchCharacteristic | is thrown if characterstic does not exist. |
References alma.ACS.impl.CharacteristicModelImpl.dao, and alma.ACS.impl.CharacteristicModelImpl.modelName.
Referenced by alma.ACS.impl.RWOnOffSwitchImpl.allStates(), alma.ACS.impl.RWBoolImpl.allStates(), alma.ACS.impl.ROOnOffSwitchImpl.allStates(), alma.ACS.impl.ROBoolImpl.allStates(), alma.ACS.impl.RWpatternImpl.bitDescription(), alma.ACS.impl.RWOnOffSwitchImpl.bitDescription(), alma.ACS.impl.ROpatternImpl.bitDescription(), alma.ACS.impl.ROstringSeqImpl.readPropertyTypeCharacteristic(), alma.ACS.impl.RWOnOffSwitchImpl.statesDescription(), alma.ACS.impl.RWBoolImpl.statesDescription(), alma.ACS.impl.ROOnOffSwitchImpl.statesDescription(), alma.ACS.impl.ROBoolImpl.statesDescription(), and alma.ACS.impl.CommonROEnumPropertyImpl.statesDescription().
void alma.ACS.impl.CharacteristicModelImpl.lendContainerServices | ( | ContainerServices | c | ) |
void alma.ACS.impl.CharacteristicModelImpl.setFieldPrefix | ( | String | prefix | ) |
Referenced by alma.ACS.impl.PropertyImpl.PropertyImpl().
DAO alma.ACS.impl.CharacteristicModelImpl.dao [protected] |
CDB DAO.
Referenced by alma.ACS.impl.CharacteristicModelImpl.CharacteristicModelImpl(), alma.ACS.impl.CharacteristicModelImpl.find_characteristic(), alma.ACS.impl.CharacteristicModelImpl.get_all_characteristics(), alma.ACS.impl.CharacteristicModelImpl.get_characteristic_by_name(), alma.ACS.impl.CharacteristicModelImpl.getDouble(), alma.ACS.impl.CharacteristicModelImpl.getDoubleSeq(), alma.ACS.impl.CharacteristicModelImpl.getFloat(), alma.ACS.impl.CharacteristicModelImpl.getFloatSeq(), alma.ACS.impl.CharacteristicModelImpl.getInteger(), alma.ACS.impl.CharacteristicModelImpl.getIntegerSeq(), alma.ACS.impl.CharacteristicModelImpl.getLong(), alma.ACS.impl.CharacteristicModelImpl.getLongSeq(), alma.ACS.impl.CharacteristicModelImpl.getString(), and alma.ACS.impl.CharacteristicModelImpl.getStringSeq().
String alma.ACS.impl.CharacteristicModelImpl.modelName [protected] |
Model name (used to determine CDB lookup).
Referenced by alma.ACS.impl.CharacteristicModelImpl.get_characteristic_by_name(), alma.ACS.impl.CharacteristicModelImpl.getDouble(), alma.ACS.impl.CharacteristicModelImpl.getDoubleSeq(), alma.ACS.impl.CharacteristicModelImpl.getFloat(), alma.ACS.impl.CharacteristicModelImpl.getFloatSeq(), alma.ACS.impl.CharacteristicModelImpl.getInteger(), alma.ACS.impl.CharacteristicModelImpl.getIntegerSeq(), alma.ACS.impl.CharacteristicModelImpl.getLong(), alma.ACS.impl.CharacteristicModelImpl.getLongSeq(), alma.ACS.impl.CharacteristicModelImpl.getString(), and alma.ACS.impl.CharacteristicModelImpl.getStringSeq().