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 |
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()
.
alma.ACS.impl.CommonROEnumPropertyImpl.CommonROEnumPropertyImpl | ( | Class | enumClass, | |
String | name, | |||
CharacteristicComponentImpl | parentComponent | |||
) | throws PropertyInitializationFailed [package] |
name | ||
parentComponent |
PropertyInitializationFailed |
References alma.ACS.impl.CommonROEnumPropertyImpl.initialize(), alma.ACS.impl.PropertyImpl.name(), and alma.ACS.impl.PropertyImpl.parentComponent.
Referenced by alma.ACS.impl.CommonROEnumPropertyImpl.createEnumProperty().
alma.ACS.impl.CommonROEnumPropertyImpl.CommonROEnumPropertyImpl | ( | Class | enumClass, | |
String | name, | |||
CharacteristicComponentImpl | parentComponent, | |||
DataAccess | dataAccess | |||
) | throws PropertyInitializationFailed [package] |
name | ||
parentComponent | ||
dataAccess |
PropertyInitializationFailed |
References alma.ACS.impl.CommonPropertyImpl.dataAccess, alma.ACS.impl.CommonROEnumPropertyImpl.initialize(), alma.ACS.impl.PropertyImpl.name(), and alma.ACS.impl.PropertyImpl.parentComponent.
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 | |||
) |
References alma.ACS.impl.CommonPropertyImpl.registerMonitor().
Referenced by alma.ACS.impl.CommonROEnumPropertyImpl.create_monitor().
static Object alma.ACS.impl.CommonROEnumPropertyImpl.createEnumProperty | ( | Class | operationsIF, | |
Class | propertyType, | |||
String | name, | |||
CharacteristicComponentImpl | parentComponent | |||
) | throws PropertyInitializationFailed [static] |
Create default in-memory RO enum structure.
References 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, | |||
DataAccess | dataAccess | |||
) | throws PropertyInitializationFailed [static] |
Create RO enum structure. Example: BasicStatesOperations basicStatesEnumImpl = (BasicStatesOperations)CommonROEnumPropertyImpl.createEnumProperty( BasicStatesOperations.class, BasicStates.class, "state", parentComponent, dataAccess);
operationsIF | CORBA <enum type>="">Operations class. | |
propertyType | CORBA enum class. | |
name | name of the property. | |
parentComponent | property component. | |
dataAccess | data access to be used. |
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.
Object alma.ACS.impl.CommonROEnumPropertyImpl.default_value | ( | ) |
boolean alma.ACS.impl.CommonROEnumPropertyImpl.dispatchCallback | ( | int | type, | |
Object | value, | |||
Callback | callback, | |||
Completion | completion, | |||
CBDescOut | desc | |||
) |
Dispatches a callback.
type | type of the callback (not strong typed to be flexible?!). | |
value | value to be delivered. | |
callback | callback. | |
competion | completion. | |
desc | callback out-descriptor. |
true
if callback was successfully delivered, false
on failure. Implements alma.ACS.jbaci.CallbackDispatcher.
References alma.ACS.impl.CommonROEnumPropertyImpl.value().
Object alma.ACS.impl.CommonROEnumPropertyImpl.from_int | ( | int | value | ) | [protected] |
void alma.ACS.impl.CommonROEnumPropertyImpl.get_async | ( | CBpattern | cb, | |
CBDescIn | desc | |||
) |
References alma.ACS.impl.CommonPropertyImpl.getAsync().
Object alma.ACS.impl.CommonROEnumPropertyImpl.get_sync | ( | CompletionHolder | c | ) |
void alma.ACS.impl.CommonROEnumPropertyImpl.initialize | ( | ) | throws PropertyInitializationFailed [protected] |
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.
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] |
Referenced by alma.ACS.impl.CommonROEnumPropertyImpl.dispatchCallback().