Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Package Functions

alma.ACS.impl.CommonROEnumPropertyImpl Class Reference

Inheritance diagram for alma.ACS.impl.CommonROEnumPropertyImpl:
alma.ACS.impl.ROCommonPropertyImpl alma.ACS.impl.CommonPropertyImpl alma.ACS.impl.TypelessPropertyImpl alma.ACS.jbaci.CallbackDispatcher alma.ACS.impl.PropertyImpl alma.ACS.impl.CommonRWEnumPropertyImpl

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

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 [package]
alma.ACS.impl.CommonROEnumPropertyImpl.CommonROEnumPropertyImpl ( Class  enumClass,
String  name,
CharacteristicComponentImpl  parentComponent,
DataAccess  dataAccess 
) throws PropertyInitializationFailed [package]
Parameters:
name 
parentComponent 
dataAccess 
Exceptions:
PropertyInitializationFailed 

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


Member Function Documentation

Object alma.ACS.impl.CommonROEnumPropertyImpl.alarm_off (  ) 
Object alma.ACS.impl.CommonROEnumPropertyImpl.alarm_on (  ) 
Object alma.ACS.impl.CommonROEnumPropertyImpl.allStates (  ) 
Condition [] alma.ACS.impl.CommonROEnumPropertyImpl.condition (  ) 
Monitorpattern alma.ACS.impl.CommonROEnumPropertyImpl.create_monitor ( CBpattern  cb,
CBDescIn  desc 
)
Monitor alma.ACS.impl.CommonROEnumPropertyImpl.create_postponed_monitor ( long  start_time,
CBpattern  cb,
CBDescIn  desc 
)
static Object alma.ACS.impl.CommonROEnumPropertyImpl.createEnumProperty ( Class  operationsIF,
Class  propertyType,
String  name,
CharacteristicComponentImpl  parentComponent 
) throws PropertyInitializationFailed [static]
static Object alma.ACS.impl.CommonROEnumPropertyImpl.createEnumProperty ( Class  operationsIF,
Class  propertyType,
String  name,
CharacteristicComponentImpl  parentComponent,
DataAccess  dataAccess 
) throws PropertyInitializationFailed [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 alma.ACS.impl.CommonROEnumPropertyImpl.CommonROEnumPropertyImpl(), alma.ACS.impl.CommonPropertyImpl.dataAccess, alma.ACS.impl.PropertyImpl.parentComponent, and alma.ACS.impl.CommonPropertyImpl.propertyType.

boolean alma.ACS.impl.CommonROEnumPropertyImpl.dispatchCallback ( int  type,
Object  value,
Callback  callback,
Completion  completion,
CBDescOut  desc 
)

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 alma.ACS.impl.CommonROEnumPropertyImpl.value().

void alma.ACS.impl.CommonROEnumPropertyImpl.get_async ( CBpattern  cb,
CBDescIn  desc 
)
Object alma.ACS.impl.CommonROEnumPropertyImpl.get_sync ( CompletionHolder  c  ) 
Subscription alma.ACS.impl.CommonROEnumPropertyImpl.new_subscription_AlarmEnum ( Alarmpattern  cb,
CBDescIn  desc 
)
Object alma.ACS.impl.CommonROEnumPropertyImpl.readPropertyTypeCharacteristic ( String  name  )  throws NoSuchCharacteristic [virtual]

Read property type characteristic.

Exceptions:
NoSuchCharacteristic is thrown if characterstic does not exist.

Implements alma.ACS.impl.CommonPropertyImpl.

References alma.ACS.impl.PropertyImpl.characteristicModelImpl, alma.ACS.impl.CommonROEnumPropertyImpl.from_int(), alma.ACS.impl.CharacteristicModelImpl.getInteger(), and alma.ACS.impl.PropertyImpl.name().

String [] alma.ACS.impl.CommonROEnumPropertyImpl.statesDescription (  ) 
int alma.ACS.impl.CommonROEnumPropertyImpl.value ( Object  value  )  [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties