alma::demo::test::AbstractNC::NCReceiverImpl Class Reference

Inheritance diagram for alma::demo::test::AbstractNC::NCReceiverImpl:
Inheritance graph
[legend]
Collaboration diagram for alma::demo::test::AbstractNC::NCReceiverImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NCReceiverImpl ()
void initialize (ContainerServices containerServices) throws alma.acs.component.ComponentLifecycleException
void execute ()
void cleanUp ()
void receive (EventDescription e)

Private Attributes

Receiver receiver
Logger logger

Detailed Description

This is an example of a receiver class for the Simulated classes. The only method that is required is the receive method. This is how Receiver.java knows that this is a valid receiver class.

Author:
sroberts Dec 3, '03

Constructor & Destructor Documentation

alma::demo::test::AbstractNC::NCReceiverImpl::NCReceiverImpl (  )  [inline]

Member Function Documentation

void alma::demo::test::AbstractNC::NCReceiverImpl::cleanUp (  )  [inline]

Called after the last functional call to the component has finished. The component should then orderly release resources etc.

Reimplemented from alma::acs::component::ComponentImplBase.

References alma::acs::nc::CorbaReceiver::disconnect(), and receiver.

void alma::demo::test::AbstractNC::NCReceiverImpl::execute (  )  [inline]

Called after ComponentLifecycle#initialize(ContainerServices) to tell the component that it has to be ready to accept incoming functional calls any time.

Examples:

  • last-minute initializations for which initialize seemed too early
  • component could start actions which aren't triggered by any functional call, e.g. the Scheduler could start to rank SBs in a separate thread.

Must be implemented as a synchronous (blocking) call (can spawn threads though).

Reimplemented from alma::acs::component::ComponentImplBase.

References alma::acs::nc::Receiver::attach(), alma::acs::nc::Receiver::begin(), logger, and receiver.

void alma::demo::test::AbstractNC::NCReceiverImpl::initialize ( ContainerServices  containerServices  )  throws alma.acs.component.ComponentLifecycleException [inline]

Subclass must call super.initialize(containerServices) unless it overrides as well all other methods which access the member vars of this class.

See also:
alma.acs.component.ComponentLifecycle::initialize(ContainerServices)

Reimplemented from alma::acs::component::ComponentImplBase.

References logger, alma::acs::component::ComponentImplBase::m_containerServices, and receiver.

void alma::demo::test::AbstractNC::NCReceiverImpl::receive ( EventDescription  e  )  [inline]

Member Data Documentation

Referenced by execute(), initialize(), and receive().

Referenced by cleanUp(), execute(), and initialize().


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

Generated by  doxygen 1.6.2