ALMA Computing Group

alma::demo::LampCallbackImpl::LampCallbackImpl Class Reference

Collaboration diagram for alma::demo::LampCallbackImpl::LampCallbackImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void cleanUp ()
double monitorLampBrightness () throws LampUnavailable
 Attaches a monitor to the brightness object of the lamp component.
void stopMonitor () throws LampUnavailable
 Stops the monitor upon request.
void exceptionMethod () throws LampUnavailable
 Throws a plain CORBA exception, that is, one that does not collaborate with the ACS error system.
void acsExceptionMethodVoid () throws ACSException
double acsExceptionMethodDouble () throws ACSException
Lamp getLamp () throws LampUnavailable
 Getts the lamp component LAMP1.
RWdouble getLampBrightnessObject () throws LampUnavailable
 Gets the lamp component's brightness CORBA object as RWdouble.

Private Member Functions

void acsJExceptionMethod () throws AcsJException

Private Attributes

Lamp m_lamp
RWdouble m_brightness
CBdoubleLampCallback m_cb
CBDescIn m_desc
Monitordouble m_monitor

Static Private Attributes

final String m_lampCurl = "LAMP1"

Detailed Description

Author:
rgeorgie

Definition at line 44 of file LampCallbackImpl.java.


Member Function Documentation

double alma::demo::LampCallbackImpl::LampCallbackImpl::acsExceptionMethodDouble  )  throws ACSException [inline]
 

Definition at line 192 of file LampCallbackImpl.java.

References acsExceptionMethodVoid().

void alma::demo::LampCallbackImpl::LampCallbackImpl::acsExceptionMethodVoid  )  throws ACSException [inline]
 

Definition at line 176 of file LampCallbackImpl.java.

References acsJExceptionMethod().

Referenced by acsExceptionMethodDouble().

void alma::demo::LampCallbackImpl::LampCallbackImpl::acsJExceptionMethod  )  throws AcsJException [inline, private]
 

Definition at line 202 of file LampCallbackImpl.java.

Referenced by acsExceptionMethodVoid().

void alma::demo::LampCallbackImpl::LampCallbackImpl::cleanUp  )  [inline]
 

Definition at line 62 of file LampCallbackImpl.java.

References m_lampCurl.

void alma::demo::LampCallbackImpl::LampCallbackImpl::exceptionMethod  )  throws LampUnavailable [inline]
 

Throws a plain CORBA exception, that is, one that does not collaborate with the ACS error system.

See also:
alma.demo.LampCallbackOperations#exceptionMethod()
Definition at line 169 of file LampCallbackImpl.java.

Lamp alma::demo::LampCallbackImpl::LampCallbackImpl::getLamp  )  throws LampUnavailable [inline]
 

Getts the lamp component LAMP1.

Returns:
Lamp
Exceptions:
java.lang.Exception 
Definition at line 228 of file LampCallbackImpl.java.

References m_lamp, and m_lampCurl.

Referenced by getLampBrightnessObject().

RWdouble alma::demo::LampCallbackImpl::LampCallbackImpl::getLampBrightnessObject  )  throws LampUnavailable [inline]
 

Gets the lamp component's brightness CORBA object as RWdouble.

Returns:
RWdouble
Exceptions:
java.lang.Exception 
Definition at line 252 of file LampCallbackImpl.java.

References getLamp(), m_brightness, and m_lamp.

Referenced by monitorLampBrightness().

double alma::demo::LampCallbackImpl::LampCallbackImpl::monitorLampBrightness  )  throws LampUnavailable [inline]
 

Attaches a monitor to the brightness object of the lamp component.

The component uses a callback when the interval set to the timer expires.

Returns:
double
See also:
LampCallbackOperations#monitorLampBrightness()
Exceptions:
alma.demo.LampUnavailable 
Definition at line 79 of file LampCallbackImpl.java.

References getLampBrightnessObject(), m_brightness, m_cb, m_desc, and m_monitor.

void alma::demo::LampCallbackImpl::LampCallbackImpl::stopMonitor  )  throws LampUnavailable [inline]
 

Stops the monitor upon request.

See also:
alma.demo.LampCallbackOperations#stopMonitor()
Exceptions:
alma.demo.LampUnavailable 
Definition at line 142 of file LampCallbackImpl.java.

References m_cb, and m_monitor.


Member Data Documentation

RWdouble alma::demo::LampCallbackImpl::LampCallbackImpl::m_brightness [private]
 

Definition at line 48 of file LampCallbackImpl.java.

Referenced by getLampBrightnessObject(), and monitorLampBrightness().

CBdoubleLampCallback alma::demo::LampCallbackImpl::LampCallbackImpl::m_cb [private]
 

Definition at line 50 of file LampCallbackImpl.java.

Referenced by monitorLampBrightness(), and stopMonitor().

CBDescIn alma::demo::LampCallbackImpl::LampCallbackImpl::m_desc [private]
 

Definition at line 51 of file LampCallbackImpl.java.

Referenced by monitorLampBrightness().

Lamp alma::demo::LampCallbackImpl::LampCallbackImpl::m_lamp [private]
 

Definition at line 46 of file LampCallbackImpl.java.

Referenced by getLamp(), and getLampBrightnessObject().

final String alma::demo::LampCallbackImpl::LampCallbackImpl::m_lampCurl = "LAMP1" [static, private]
 

Definition at line 55 of file LampCallbackImpl.java.

Referenced by cleanUp(), and getLamp().

Monitordouble alma::demo::LampCallbackImpl::LampCallbackImpl::m_monitor [private]
 

Definition at line 53 of file LampCallbackImpl.java.

Referenced by monitorLampBrightness(), and stopMonitor().


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