alma::ACS::impl::CharacteristicModelImpl Class Reference

Inheritance diagram for alma::ACS::impl::CharacteristicModelImpl:
Inheritance graph
[legend]
Collaboration diagram for alma::ACS::impl::CharacteristicModelImpl:
Collaboration graph
[legend]

List of all members.

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 = ""

Detailed Description

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?

Author:
Matej Sekoranja
Camilo Menay
Cristian Maureira
Version:
$id$

Constructor & Destructor Documentation

alma::ACS::impl::CharacteristicModelImpl::CharacteristicModelImpl ( String  modelName,
DAL  dal 
) [inline]
Parameters:
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().


Member Function Documentation

String [] alma::ACS::impl::CharacteristicModelImpl::find_characteristic ( String  wildcard  )  [inline]
PropertySet alma::ACS::impl::CharacteristicModelImpl::get_all_characteristics (  )  [inline]
Any alma::ACS::impl::CharacteristicModelImpl::get_characteristic_by_name ( String  name  )  throws NoSuchCharacteristic [inline]
double alma::ACS::impl::CharacteristicModelImpl::getDouble ( String  name  )  throws NoSuchCharacteristic [inline]
double [] alma::ACS::impl::CharacteristicModelImpl::getDoubleSeq ( String  name  )  throws NoSuchCharacteristic [inline]

Read sequence double characteristic.

Parameters:
name characteristic name.
Exceptions:
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.

Parameters:
name characteristic name.
Exceptions:
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.

Parameters:
name characteristic name.
Exceptions:
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]
int [] alma::ACS::impl::CharacteristicModelImpl::getIntegerSeq ( String  name  )  throws NoSuchCharacteristic [inline]
long alma::ACS::impl::CharacteristicModelImpl::getLong ( String  name  )  throws NoSuchCharacteristic [inline]
int [] alma::ACS::impl::CharacteristicModelImpl::getLongSeq ( String  name  )  throws NoSuchCharacteristic [inline]

Read sequence double characteristic.

Parameters:
name characteristic name.
Exceptions:
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]
String [] alma::ACS::impl::CharacteristicModelImpl::getStringSeq ( String  name  )  throws NoSuchCharacteristic [inline]
void alma::ACS::impl::CharacteristicModelImpl::lendContainerServices ( ContainerServices  c  )  [inline]
void alma::ACS::impl::CharacteristicModelImpl::setFieldPrefix ( String  prefix  )  [inline]

Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2