alma::ACS::impl::CommonROEnumPropertyImpl Class Reference

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

List of all members.

Classes

class  ROEnumProxy

Public Member Functions

Condition[] condition ()
String[] statesDescription ()
Subscription new_subscription_AlarmEnum (Alarmpattern cb, CBDescIn desc)
Monitorpattern create_monitor (CBpattern cb, CBDescIn desc)
Monitor create_postponed_monitor (long start_time, CBpattern cb, CBDescIn desc)
void get_async (CBpattern cb, CBDescIn desc)
Object readPropertyTypeCharacteristic (String name) throws NoSuchCharacteristic
boolean dispatchCallback (int type, Object value, Callback callback, Completion completion, CBDescOut desc)
Object alarm_on ()
Object alarm_off ()
Object allStates ()
Object default_value ()
Object get_sync (CompletionHolder c)

Static Public Member Functions

static Object createEnumProperty (Class operationsIF, Class propertyType, String name, CharacteristicComponentImpl parentComponent) throws PropertyInitializationFailed
static Object createEnumProperty (Class operationsIF, Class propertyType, String name, CharacteristicComponentImpl parentComponent, DataAccess dataAccess) throws PropertyInitializationFailed

Protected Member Functions

void initialize () throws PropertyInitializationFailed
int value (Object value)
Object from_int (int value)

Package Functions

 CommonROEnumPropertyImpl (Class enumClass, String name, CharacteristicComponentImpl parentComponent) throws PropertyInitializationFailed
 CommonROEnumPropertyImpl (Class enumClass, String name, CharacteristicComponentImpl parentComponent, DataAccess dataAccess) throws PropertyInitializationFailed

Private Member Functions

Object getEnumArrayFromCharacteristicModel (String name)

Private Attributes

Method from_int_method
Method value_method

Detailed Description

Base enum class. Contains common methods that does not contain enumClass class in method' signatures. enumClass must has standard Java CORBA generated metods of called fromInt(int) and value().

Author:
msekoranja

Constructor & Destructor Documentation

alma::ACS::impl::CommonROEnumPropertyImpl::CommonROEnumPropertyImpl ( Class  enumClass,
String  name,
CharacteristicComponentImpl  parentComponent 
) throws PropertyInitializationFailed [inline, package]
Parameters:
name 
parentComponent 
Exceptions:
PropertyInitializationFailed 

References initialize(), alma::ACS::impl::PropertyImpl::name(), and alma::ACS::impl::PropertyImpl::parentComponent.

Referenced by createEnumProperty().

alma::ACS::impl::CommonROEnumPropertyImpl::CommonROEnumPropertyImpl ( Class  enumClass,
String  name,
CharacteristicComponentImpl  parentComponent,
DataAccess  dataAccess 
) throws PropertyInitializationFailed [inline, package]
Parameters:
name 
parentComponent 
dataAccess 
Exceptions:
PropertyInitializationFailed 

References alma::ACS::impl::CommonPropertyImpl::dataAccess, initialize(), alma::ACS::impl::PropertyImpl::name(), and alma::ACS::impl::PropertyImpl::parentComponent.


Member Function Documentation

Object alma::ACS::impl::CommonROEnumPropertyImpl::alarm_off (  )  [inline]
Object alma::ACS::impl::CommonROEnumPropertyImpl::alarm_on (  )  [inline]
Object alma::ACS::impl::CommonROEnumPropertyImpl::allStates (  )  [inline]
Condition [] alma::ACS::impl::CommonROEnumPropertyImpl::condition (  )  [inline]
Monitorpattern alma::ACS::impl::CommonROEnumPropertyImpl::create_monitor ( CBpattern  cb,
CBDescIn  desc 
) [inline]
Monitor alma::ACS::impl::CommonROEnumPropertyImpl::create_postponed_monitor ( long  start_time,
CBpattern  cb,
CBDescIn  desc 
) [inline]
static Object alma::ACS::impl::CommonROEnumPropertyImpl::createEnumProperty ( Class  operationsIF,
Class  propertyType,
String  name,
CharacteristicComponentImpl  parentComponent,
DataAccess  dataAccess 
) throws PropertyInitializationFailed [inline, static]

Create RO enum structure. Example: BasicStatesOperations basicStatesEnumImpl = (BasicStatesOperations)CommonROEnumPropertyImpl.createEnumProperty( BasicStatesOperations.class, BasicStates.class, "state", parentComponent, dataAccess);

Parameters:
operationsIF CORBA <enum type>="">Operations class.
propertyType CORBA enum class.
name name of the property.
parentComponent property component.
dataAccess data access to be used.
Returns:
CORBA <enum type>="">Operations instance.
Exceptions:
PropertyInitializationFailed 

Reimplemented in alma::ACS::impl::CommonRWEnumPropertyImpl.

References CommonROEnumPropertyImpl(), alma::ACS::impl::CommonPropertyImpl::dataAccess, alma::ACS::impl::PropertyImpl::name(), alma::ACS::impl::PropertyImpl::parentComponent, and alma::ACS::impl::CommonPropertyImpl::propertyType.

static Object alma::ACS::impl::CommonROEnumPropertyImpl::createEnumProperty ( Class  operationsIF,
Class  propertyType,
String  name,
CharacteristicComponentImpl  parentComponent 
) throws PropertyInitializationFailed [inline, static]
Object alma::ACS::impl::CommonROEnumPropertyImpl::default_value (  )  [inline]
boolean alma::ACS::impl::CommonROEnumPropertyImpl::dispatchCallback ( int  type,
Object  value,
Callback  callback,
Completion  completion,
CBDescOut  desc 
) [inline]

Dispatches a callback.

Parameters:
type type of the callback (not strong typed to be flexible?!).
value value to be delivered.
callback callback.
competion completion.
desc callback out-descriptor.
Returns:
true if callback was successfully delivered, false on failure.

Implements alma::ACS::jbaci::CallbackDispatcher.

References value().

Object alma::ACS::impl::CommonROEnumPropertyImpl::from_int ( int  value  )  [inline, protected]
void alma::ACS::impl::CommonROEnumPropertyImpl::get_async ( CBpattern  cb,
CBDescIn  desc 
) [inline]
Object alma::ACS::impl::CommonROEnumPropertyImpl::get_sync ( CompletionHolder  c  )  [inline]
Object alma::ACS::impl::CommonROEnumPropertyImpl::getEnumArrayFromCharacteristicModel ( String  name  )  [inline, private]
void alma::ACS::impl::CommonROEnumPropertyImpl::initialize (  )  throws PropertyInitializationFailed [inline, protected]
Subscription alma::ACS::impl::CommonROEnumPropertyImpl::new_subscription_AlarmEnum ( Alarmpattern  cb,
CBDescIn  desc 
) [inline]
Object alma::ACS::impl::CommonROEnumPropertyImpl::readPropertyTypeCharacteristic ( String  name  )  throws NoSuchCharacteristic [inline, virtual]
String [] alma::ACS::impl::CommonROEnumPropertyImpl::statesDescription (  )  [inline]
int alma::ACS::impl::CommonROEnumPropertyImpl::value ( Object  value  )  [inline, protected]

References value_method.

Referenced by dispatchCallback().


Member Data Documentation

Referenced by from_int(), and initialize().

Referenced by initialize(), and value().


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

Generated by  doxygen 1.6.2