

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 |
Private Attributes | |
| ContainerServices | m_container |
| String | prefix = "" |
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 | |||
| ) | [inline] |
| modelName | name of the model (used to determine CDB lookup), non-null. | |
| dal | CDB DAL object, non-null. |
References dao, and com::cosylab::CDB::DALOperations::get_DAO_Servant().
| String [] alma::ACS::impl::CharacteristicModelImpl::find_characteristic | ( | String | wildcard | ) | [inline] |
References dao, com::cosylab::CDB::DAOOperations::get_string_seq(), prefix, and alma::ACS::jbaci::UtilsWildcards::wildcardFit().
Referenced by alma::ACS::impl::PropertyImpl::find_characteristic(), and alma::ACS::impl::CharacteristicComponentImpl::find_characteristic().
| PropertySet alma::ACS::impl::CharacteristicModelImpl::get_all_characteristics | ( | ) | [inline] |
Implements alma::ACS::CharacteristicModelOperations.
References dao, get_characteristic_by_name(), com::cosylab::CDB::DAOOperations::get_string_seq(), alma::acs::container::ContainerServicesBase::getAdvancedContainerServices(), m_container, and prefix.
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 [inline] |
References alma::ACS::NoSuchCharacteristic::characteristic_name, alma::ACS::NoSuchCharacteristic::component_name, dao, com::cosylab::CDB::DAOOperations::get_string(), alma::acs::container::ContainerServicesBase::getAdvancedContainerServices(), m_container, modelName, and prefix.
Referenced by 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 [inline] |
Read double characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_double(), modelName, and prefix.
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 [inline] |
Read sequence double characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_double_seq(), modelName, and prefix.
Referenced by alma::ACS::impl::RWdoubleSeqImpl::readPropertyTypeCharacteristic(), and alma::ACS::impl::ROdoubleSeqImpl::readPropertyTypeCharacteristic().
| float alma::ACS::impl::CharacteristicModelImpl::getFloat | ( | String | name | ) | throws NoSuchCharacteristic [inline] |
Read double characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_double(), modelName, and prefix.
| float [] alma::ACS::impl::CharacteristicModelImpl::getFloatSeq | ( | String | name | ) | throws NoSuchCharacteristic [inline] |
Read sequence double characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_double_seq(), modelName, and prefix.
Referenced by alma::ACS::impl::RWfloatSeqImpl::readPropertyTypeCharacteristic(), and alma::ACS::impl::ROfloatSeqImpl::readPropertyTypeCharacteristic().
| int alma::ACS::impl::CharacteristicModelImpl::getInteger | ( | String | name | ) | throws NoSuchCharacteristic [inline] |
Read int characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_long(), modelName, and prefix.
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 [inline] |
Read sequence long characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_long_seq(), modelName, and prefix.
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::CommonROEnumPropertyImpl::getEnumArrayFromCharacteristicModel(), 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 [inline] |
Read long characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_long(), modelName, and prefix.
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 [inline] |
Read sequence double characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_long_seq(), modelName, and prefix.
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 [inline] |
Read string characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_string(), modelName, and prefix.
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 [inline] |
Read sequence string characteristic.
| name | characteristic name. |
| NoSuchCharacteristic | is thrown if characterstic does not exist. |
References dao, com::cosylab::CDB::DAOOperations::get_string_seq(), modelName, and prefix.
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 | ) | [inline] |
References m_container.
Referenced by alma::ACS::impl::PropertyImpl::get_all_characteristics(), alma::ACS::impl::CharacteristicComponentImpl::get_all_characteristics(), alma::ACS::impl::PropertyImpl::get_characteristic_by_name(), and alma::ACS::impl::CharacteristicComponentImpl::get_characteristic_by_name().
| void alma::ACS::impl::CharacteristicModelImpl::setFieldPrefix | ( | String | prefix | ) | [inline] |
Referenced by alma::ACS::impl::PropertyImpl::PropertyImpl().
DAO alma::ACS::impl::CharacteristicModelImpl::dao [protected] |
Referenced by get_all_characteristics(), get_characteristic_by_name(), and lendContainerServices().
String alma::ACS::impl::CharacteristicModelImpl::modelName [protected] |
Model name (used to determine CDB lookup).
Referenced by get_characteristic_by_name(), getDouble(), getDoubleSeq(), getFloat(), getFloatSeq(), getInteger(), getIntegerSeq(), getLong(), getLongSeq(), getString(), and getStringSeq().
String alma::ACS::impl::CharacteristicModelImpl::prefix = "" [private] |
1.6.2