ALMA Computing Group
Classes | Modules | Typedefs | Functions | Variables

ACS Components Examples
[ACS C++ Examples Documentation]

More...

Collaboration diagram for ACS Components Examples:

Classes

class  AmsTestSeq
 Antenna Mount System Pointing Model. More...
class  Building
 Implements an hierarchical device using Door Door. More...
class  Calendar
 Simulates the behavior of a calendar using enums and pattern properties. More...
class  ConstrErrorHelloWorld
 This class shows how to make an ACS Hello World component. More...
class  Door
 Door is a simple component that utilizes just about every ACS API. More...
class  ErrorComponent
 This class shows how to deal with errors in components. More...
class  FilterWheel
 The class FilterWheel class simulates the behavior of a very simple filter wheel. More...
class  FridgeThread
 The class FridgeThread is a thread used by the FridgeControl class to update the fridge's temperature. More...
class  FridgeControl
 FridgeControl shows BACI threads as well as a notification channel supplier. More...
class  HelloWorld
 This class shows how to make an ACS Hello World component. More...
class  InitErrorHelloWorld
 This class shows how to make an ACS Hello World component. More...
class  Lamp
 Simple component with asynchronous methods. More...
class  LampWheel
 The class LampWheel class simulates the behavior of a very simple lamp wheel using an asynchronous method to rotate it. More...
class  Mount
 Simulates the behavior of an antenna interface. More...
class  PowerSupply
 Simulates the behavior of a power supply and overwrites an ACS property. More...
class  RampedPowerSupply
 Simulates the behavior of a ramped power supply by inheriting from Power Supply's IDL interface and C++ implementation. More...
class  SlowMount
 Similar to Mount, but simulate the movements of the antenna in a 30 secs time interval. More...

Modules

 Antenna Mount System Sequence
 

Description

AmsTestSeq can be considered to be a "real-world" distributed object for antenna systems.  This component exists between two sections of the antenna mount system.  The high-level section executes at the array central control area in the Array Control Computer (ACC), while the low-level section executes at each antenna in the Antenna Bus Master (ABM) computer.  AmsTestSeq provides one synchronous method, setCoeff(...), and two properties used for the coefficient of an individual pointing model term.  Essentially this device is used to manipulate pointing models.

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • overriding component lifecycle methods (see execute).
  • read-only and read-write property sequence usage.
  • creating instances of CORBA sequences and manipulating them using the automatically generated _var type(s).
  • writing values to read-only BACI properties by using the property's underlying DevIO instance.
  • standard ACS logging macros.
  • limited CORBA error handling.


Links




 Building
 

Description

The purpose of Building is to show the implementation of hierarchical devices.  Building provides two synchronous methods, openFrontDoor() and closeFrontDoor().  These methods use the container to activate a Door object and then perform actions on that object.  Building also has one property, version, which is just the version of the C++ Building implementation currently used.

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • overriding component lifecycle methods (see execute).
  • the knowledge of how to create heirarchial devices.
  • how to use the container services to activate other components.
  • writing values to read-only BACI properties by using the property's underlying DevIO instance.
  • standard ACS logging macros.
  • limited CORBA error handling.
  • limited CORBA exception handling.
  • ,li>how to use the SmartPropertyPointer for a property


Links



 Calendar
 

Description

Calendar shows the proper usage of enumerated and pattern properties.  It provides two read-write enums, one read-only enum, and a read-write pattern.  There are no methods so this component should only be used through objexp (e.g., a graphical user interface designed specifically for manipulating components).

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • usage of enums properties via the ACS enum template.
  • usage of RW pattern properties.


Links


 Construction Error Hello World
 

Description

This simple Hello World component within the acsexmpl module provides an example component which is throwing an exception during its construction. This component can be used to test the behaviour of the maciContainer when a a component throws an exception in the constructor.

What can I gain from this example?

  • an example derived from the ACS::ACSComponent IDL interface.
  • an introduction to the ACS API.
  • limited ACS logging macros.
  • throwing exceptions.
  • Usage of ACS errors.


Links


 Door
 

Description

Door, as defined by the IDL interface, is another simple example of a component like Lamp except that it also contains one synchronous method, move(...).  The two asynchronous methods are open() and close() respectively.  This example has four properties and uses an ACS thread.

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • overriding component lifecycle methods (see execute).
  • asynchronous method implementation accomplished by inheriting methods from the ActionImplementator class.
  • read-only and read-write property usage.
  • writing values to read-only BACI properties by using the property's underlying DevIO instance.
  • limited exception handling.
  • extensive CORBA error handling.
  • thread management using ACS.
  • standard ACS logging macros.
  • very simple example of a state machine (i.e., the Door's positions).


Links


 Error Component
 

Description

Simple Component that throws few exceptions and completions to show the use. It shows how to the members can be set, when the exception/completion has one. Also shows the use of the wrappers of exception/completions and how transform them to corba structures to be catch by the client.

What can I gain from this example?

  • an example derived from the ACS::ACSComponent IDL interface.
  • use of ACS Exceptions
  • use of ACS Completions
  • raising CORBA exceptions.


Links


 Filter Wheel
 

Description

The class FilterWheel is a very simple example of a component that simulates the behavior of a generic filter wheel.  
The description of the wheel is on the CDB using the format dictated by the schema definition. It has one asynchronous method: moveFilterInBeam(...) that rotates the wheel to put selected filter in the beam. The adjust method moves the whell of the amount of steps passed as parameter. The adjust is used to calibrate the position of the filters and the slots. It also has three read-only properties: position, desc, slots.

What can I gain from this example?

  • the example shows how to read and write specific informations from the CDB using DAO, DAL and WDAL


Links


 Fridge
 

Description

FridgeControl is designed to simulate the behavior of a fridge. This example is fairly complex because it deals with the ACS event channel API, ACS threads, and enumerated properties.  There are a total of four methods and four properties (two of which are enums).

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • thread management using ACS.
  • writing values to read-only BACI properties by using the property's underlying DevIO instance.
  • usage of enum properties via the ACS enum template.
  • standard ACS logging macros.
  • limited CORBA error handling.
  • the implementation and use of an event channel supplier.


Links


 Lamp
 

Description

The class Lamp is a very simple example of a component that simulates the behavior of a lamp.  
It has two asynchronous methods: on(...) and off(...).  It also has one read-write double property: brightness.

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • an understanding of simple asynchronous method implementation accomplished by inheriting methods from the ActionImplementator class.


Links


 Mount
 

Description

The class Mount simulates the behaviour of an antenna interface.  It provides only two asynchronous methods: objstar(...) and objfix(...).  Both of these methods only write data into virtual read-only double properties: actAz, actEl, cmdAz, and cmdEl.

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • understanding of asynchronous method implementation accomplished by inheriting methods from the baci::ActionImplementator class.
  • asynchronous methods which take in (multiple) parameters.
  • clean implementation of the invokeAction method using an array of function pointers.
  • a "real-world" example dealing with radio astronomy.
  • writing values to read-only BACI properties by using the property's underlying DevIO instance.
  • standard ACS logging macros.
  • ACS asynchronous error handling.


Links


 Power Supply
 

Description

The class PowerSupply simulates the behavior of a power supply.  PowerSupply implements three asynchrounous methods (on, off, and reset) and has three RO/RW properties.  One noteworthy item is that some extra functionality has been given to the m_current_p property (a RWdouble).  This property is set to be the PowerSupplyCurrent object (dervied from RWdouble) which overrides the setValue method.  This allows m_current_p to set the value of itself AND m_readback_p (the power supply's actual current) at the same time.

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • overriding component lifecycle methods (see execute).
  • an understanding of simple asynchronous method implementation accomplished by inheriting methods from the ActionImplementator class.
  • read-only and read-write property usage.
  • writing values to read-only baci::BACI properties by using the property's underlying DevIO instance.
  • standard ACS logging macros.
  • limited CORBA error handling.
  • asynchronous error handling.
  • classes derived from baci::BACI properties and overriding of baci::BACI property methods.
  • use of smart pointers for properties


Links


 Ramped Power Supply
 

Description

RampedPowerSupply simulates the behavior of a ramped power supply.  All of this class's methods are asynchronous.  What makes RampedPowerSupply special is that it's IDL interface inherits from PowerSupply and the C++ implementation is derived from PowerSupply's C++ implementation. Another interesting aspect of this example is PowerSupply and RampedPowerSupply are defined in two separate IDLs.

What can I gain from this example?

  • the implementation of a component derived from another C++ component implementation.
  • an understanding of simple asynchronous method implementation accomplished by inheriting methods from the ActionImplementator class.
  • read-only and read-write property usage.
  • writing values to read-only BACI properties by using the property's underlying DevIO instance.
  • standard ACS logging macros.
  • limited CORBA error handling.
  • asynchronous error handling.


Links


 Slow Mount
 

Description

The class Mount simulates the behaviour of an antenna interface.  It provides only two asynchronous methods: objstar(...) and objfix(...).  Both of these methods only write data into virtual read-only double properties: actAz, actEl, cmdAz, and cmdEl.

What can I gain from this example?

  • an example derived from the ACS::CharacteristicComponent IDL interface.
  • understanding of asynchronous method implementation accomplished by inheriting methods from the ActionImplementator class.
  • asynchronous methods which take in (multiple) parameters.
  • clean implementation of the invokeAction method using an array of function pointers.
  • a "real-world" example dealing with radio astronomy.
  • writing values to read-only BACI properties by using the property's underlying DevIO instance.
  • standard ACS logging macros.
  • ACS asynchronous error handling.


Links


Typedefs

typedef baci::ActionRequest(Mount::* Mount::ActionFunction )(baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Definition of ActionFunction (member function of Mount class) ActionFunction is used to run the asynchronous methods from within invokeAction(...) without actually having to specify calls to each ...Action(...) method.
typedef baci::ActionRequest(SlowMount::* SlowMount::ActionFunction )(baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Definition of ActionFunction (member function of Mount class) ActionFunction is used to run the asynchronous methods from within invokeAction(...) without actually having to specify calls to each ...Action(...) method.

Functions

virtual AmsTestSeq::~AmsTestSeq ()
 Destructor.
virtual void AmsTestSeq::setCoeff ()
 Sets the coefficients of the pointing model.
virtual ACS::RWdoubleSeq_ptr AmsTestSeq::RWdoubleSeqPM ()
 Returns a reference to the RWdoubleSeqPM property Implementation of IDL interface for the property.
virtual ACS::ROdoubleSeq_ptr AmsTestSeq::ROdoubleSeqPM ()
 Returns a reference to the ROdoubleSeqPM property Implementation of IDL interface for the property.
virtual void AmsTestSeq::execute ()
 Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.
void AmsTestSeq::operator= (const AmsTestSeq &)
 ALMA C++ coding standards state copy operators should be disabled.
virtual Building::~Building ()
 Destructor.
virtual void Building::openFrontDoor ()
 Opens the FRONTDOOR Implementation of the IDL openFrontDoor() interface.
virtual void Building::closeFrontDoor ()
 Closes the FRONTDOOR Implementation of the IDL closeFrontDoor() interface.
virtual ACS::ROstring_ptr Building::version ()
 Returns a reference to the version property Implementation of IDL interface for the property.
virtual void Building::execute ()
 Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.
virtual void Building::cleanUp ()
 Called after the last functional call to the component has finished.
void Building::operator= (const Building &)
 ALMA C++ coding standards state copy operators should be disabled.
virtual Calendar::~Calendar ()
 Destructor.
virtual
::acsexmplCalendar::RWDaysEnum_ptr 
Calendar::day ()
 Returns a reference to the day property Implementation of IDL interface for the property.
virtual
::acsexmplCalendar::RWMonthEnum_ptr 
Calendar::month ()
 Returns a reference to the month property Implementation of IDL interface for the property.
virtual ::ACS::RWpattern_ptr Calendar::yearAttributes ()
 Returns a reference to the yearAttributes property Implementation of IDL interface for the property.
virtual
::acsexmplCalendar::ROStateEnum_ptr 
Calendar::state ()
 Returns a reference to the state property Implementation of IDL interface for the property.
void Calendar::operator= (const Calendar &)
 ALMA C++ coding standards state copy operators should be disabled.
virtual ConstrErrorHelloWorld::~ConstrErrorHelloWorld ()
 Destructor.
virtual void ConstrErrorHelloWorld::displayMessage ()
 Displays "Hello World" to the console.
virtual void ConstrErrorHelloWorld::badMethod ()
 Simple method raises a remote exception within the calling client.
 DoorThread::~DoorThread ()
virtual void DoorThread::onStart ()
virtual void DoorThread::runLoop ()
virtual void DoorThread::onStop ()
 Door::Door (const ACE_CString &name, maci::ContainerServices *containerServices)
 Constructor.
virtual Door::~Door ()
 Destructor.
virtual baci::ActionRequest Door::invokeAction (int function, baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest Door::openAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynch.
virtual baci::ActionRequest Door::closeAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynch.
virtual void Door::open (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Opens the door Implementation of IDL open() interface.
virtual void Door::close (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Closes the door Implementation of IDL close() interface.
virtual void Door::move (CORBA::Double pos)
 Moves the door to the given position Implementation of the IDL move(...) interface.
virtual ACS::ROdouble_ptr Door::position ()
 Property for readback m_position_p Implementation of IDL interface for the property.
virtual ACS::RWdouble_ptr Door::ref_position ()
 Property for reference position Implementation of IDL interface for the property.
virtual ACS::ROlong_ptr Door::substate ()
 Property for substate Implementation of IDL interface for the property.
virtual ACS::ROstring_ptr Door::version ()
 Property for version Implementation of IDL interface for the property.
virtual void Door::execute ()
 Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.
virtual void Door::checkSubstate (CompletionImpl *&error_p)
 Checks substate Checks for the device's substate.
void Door::operator= (const Door &)
 ALMA C++ coding standards state copy operators should be disabled.
virtual ErrorComponent::~ErrorComponent ()
 Destructor.
virtual void ErrorComponent::displayMessage ()
 Displays "Hello World" to the console.
virtual void ErrorComponent::badMethod (CORBA::Short depth)
 Simple method raises a remote exception within the calling client.
virtual void ErrorComponent::exceptionFromCompletion (CORBA::Short depth)
 Simple method raises a remote exception within the calling client.
virtual void ErrorComponent::typeException (CORBA::Short depth)
 This method throws a REMOTE (CORBA) type exception if depth>0.
virtual void ErrorComponent::corbaSystemException ()
 Method that throws a CORBA::BAD_PARAM system exception to show how to handle CORBA System Exceptions.
virtual ACSErr::Completion * ErrorComponent::completionFromException (CORBA::Short depth)
 Simple method that returns an ACSErr::Completion, where an error trace is added from an exception.
virtual ACSErr::Completion * ErrorComponent::completionFromCompletion (CORBA::Short depth)
 Simple method that returns a REMOTE (CORBA) completion (ACSErr::Completion), where an error trace is added from a completion.
ACSErr::Completion * ErrorComponent::completionOnStack (CORBA::Short depth)
 This method is similar than completionFromCompletion, but it allocated C++ completion on the stack instead on the heap.
void ErrorComponent::outCompletion (ACSErr::Completion_out comp)
 Simple method that returns an ACSErr::Completion as an out parameter.
void ErrorComponent::generateSIGFPE (CORBA::Short way)
 A method wich will generate the SIGFPE signal This can be used to test what happens when there is a floating point exception in a component.
void ErrorComponent::generateSIGSEGV (CORBA::Short way)
 A method wich will generate the SIGSEGV signal This can be used to test what happens when there is a segmentation fault in a component.
void ErrorComponent::sleepingCmd (CORBA::Short nb_seconds)
 A method that will sleep during nb_seconds seconds before to return This method could be used to test the behavior of components taking a long time before to reply.
virtual ACSErr::CompletionImpl * ErrorComponent::createCompletion (unsigned short depth)
 This method return a LOCAL (C++) completion which contains an error trace if depth > 0, otherwise it returns non error completion (ACSErrOKCompletion), i.e.
virtual void ErrorComponent::buildErrorTrace (unsigned short depth)
 The aim of this method is to build an error trace.
virtual FilterWheel::~FilterWheel ()
 Destructor.
virtual void FilterWheel::initialize ()
 Called to give the component time to initialize itself.
virtual void FilterWheel::execute ()
 Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.
virtual void FilterWheel::cleanUp ()
 Called after the last functional call to the component has finished.
virtual void FilterWheel::aboutToAbort ()
 Called when due to some error condition the component is about to be forcefully removed some unknown amount of time later (usually not very much...).
virtual baci::ActionRequest FilterWheel::invokeAction (int function, baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest FilterWheel::moveFilterAction (baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchrnous moveFilterInBeam method This is the function that actually rotate the wheel to the slot of the selected filter (it also take in account the per-filter adjustament represented by the delta filed in the description of the filter in the CDB) When completed, invokes the callback installed by the client when it requested the action.
virtual baci::ActionRequest FilterWheel::moveSlotAction (baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchrnous moveSlotInBeam method This is the function that actually rotate the wheel to the selected slot When completed, invokes the callback installed by the client when it requested the action.
virtual baci::ActionRequest FilterWheel::adjustAction (baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchrnous adjust() method This is the function that moves the wheel of some steps and, when completed, invokes the callback installed by the client when it requested the action.
virtual void FilterWheel::moveFilterInBeam (const char *, ACS::CBvoid_ptr, const ACS::CBDescIn &)
 Move the filter wheel to a specification slot.
virtual void FilterWheel::moveSlotInBeam (int, ACS::CBvoid_ptr, const ACS::CBDescIn &)
 Move the filter wheel to a specific slot.
virtual void FilterWheel::adjust (int, ACS::CBvoid_ptr, const ACS::CBDescIn &)
 Move the wheel of the specified number of step.
virtual CORBA::Long FilterWheel::calibrateFilter (const char *name)
 Calibrate the delta of the filter by reading the actual position and the step of the slot where the filter is mounted (it also updates the value in the CDB).
virtual CORBA::Long FilterWheel::calibrateWheel (int slot)
 Calibrate the step for the slot by reading the actual position (it also updates the value in the CDB).
virtual ACS::ROdouble_ptr FilterWheel::position ()
 Returns a reference to the position property Implementation of IDL interface for the property.
virtual ACS::ROstring_ptr FilterWheel::desc ()
 Returns a reference to the desc property Implementation of IDL interface for the property.
virtual ACS::ROlong_ptr FilterWheel::slots ()
 Returns a reference to the descavailableSlots property Implementation of IDL interface for the property.
void FilterWheel::readConfiguration (Descriptor *descr)
 Read the CDB to build the actual configuration of the wheel.
void FilterWheel::updateFilter (ACE_CString name, int delta)
 Permanently write the new delta for the given filter in the CDB.
void FilterWheel::updateWheel (int slot, int step)
 Permanently write the new position for the given slot in the CDB.
void FilterWheel::operator= (const FilterWheel &)
 ALMA C++ coding standards state copy operators should be disabled.
 FridgeThread::~FridgeThread ()
virtual void FridgeThread::runLoop ()
virtual FridgeControl::~FridgeControl ()
 Destructor.
virtual void FridgeControl::cleanUp ()
 Called after the last functional call to the component has finished.
void FridgeControl::updateTemperature ()
 Updates the temperature from the physical device.
virtual void FridgeControl::on ()
 Turn on the fridge.
virtual void FridgeControl::off ()
 Turn off the fridge.
virtual void FridgeControl::open ()
 Open the door.
virtual void FridgeControl::close ()
 Close the door.
virtual ACS::RWdouble_ptr FridgeControl::refTemperature ()
 Property refTemperature is like a thermostat for the fridge.
virtual FRIDGE::ROOnOffStates_ptr FridgeControl::powerStatus ()
 Property powerStatus shows whether the power is on or off.
virtual FRIDGE::ROOpClStates_ptr FridgeControl::doorStatus ()
 Property doorStatus shows the position of the door.
virtual ACS::ROdouble_ptr FridgeControl::currTemperature ()
 Property currTemperature shows the fridge's actual temperature.
virtual void FridgeControl::loadData ()
 Converts this devices useful data into a temperatureDataBlockEvent structure and then publishes that onto an event channel.
void FridgeControl::operator= (const FridgeControl &)
 ALMA C++ coding standards state copy operators should be disabled.
virtual HelloWorld::~HelloWorld ()
 Destructor.
virtual void HelloWorld::displayMessage ()
 Displays "Hello World" to the console.
virtual void HelloWorld::badMethod ()
 Simple method raises a remote exception within the calling client.
virtual InitErrorHelloWorld::~InitErrorHelloWorld ()
 Destructor.
virtual void InitErrorHelloWorld::displayMessage ()
 Displays "Hello World" to the console.
virtual void InitErrorHelloWorld::badMethod ()
 Simple method raises a remote exception within the calling client.
virtual void InitErrorHelloWorld::initialize ()
 This method in the example will throw an exception.
virtual Lamp::~Lamp ()
 Destructor.
virtual baci::ActionRequest Lamp::invokeAction (int function, baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest Lamp::onAction (baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchronous acsexmplLamp::Lamp::on() method This is the function that actually switches on the Lamp and, when completed, invokes the callback installed by the client when it requested the action.
virtual baci::ActionRequest Lamp::offAction (baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchrnous acsexmplLamp::Lamp::off() method This is the function that actually switches off the Lamp and, when completed, invokes the callback installed by the client when it requested the action.
virtual void Lamp::on (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Switches on the lamp.
virtual void Lamp::off (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Switches off the lamp.
virtual ACS::RWdouble_ptr Lamp::brightness ()
 Returns a reference to the Brightness property Implementation of IDL interface for the property.
void Lamp::operator= (const Lamp &)
 ALMA C++ coding standards state copy operators should be disabled.
virtual LampWheel::~LampWheel ()
 Destructor.
virtual void LampWheel::initialize ()
 Called to give the component time to initialize itself.
virtual void LampWheel::execute ()
 Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.
virtual void LampWheel::cleanUp ()
 Called after the last functional call to the component has finished.
virtual void LampWheel::aboutToAbort ()
 Called when due to some error condition the component is about to be forcefully removed some unknown amount of time later (usually not very much...).
virtual baci::ActionRequest LampWheel::invokeAction (int function, baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest LampWheel::moveAction (baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchrnous acsexmplLamp::Lamp::off() method This is the function that actually switches off the Lamp and, when completed, invokes the callback installed by the client when it requested the action.
virtual void LampWheel::move (CORBA::Short, ACS::CBvoid_ptr, const ACS::CBDescIn &)
 Move the lamp wheel to a specification slot.
virtual ACS::ROdouble_ptr LampWheel::position ()
 Returns a reference to the position property Implementation of IDL interface for the property.
virtual ACS::ROstring_ptr LampWheel::desc ()
 Returns a reference to the desc property Implementation of IDL interface for the property.
virtual ACS::ROlong_ptr LampWheel::slots ()
 Returns a reference to the descavailableSlots property Implementation of IDL interface for the property.
void LampWheel::operator= (const LampWheel &)
 ALMA C++ coding standards state copy operators should be disabled.
int LampWheel::retrieveConfigurationFromCDB (std::list< SlotDescriptor > &config)
 Read the CDB and fill the list with the actual configuration of each slot.
static void LampWheel::start_hndl (void *data, const XML_Char *el, const XML_Char **attr)
 The handler for the start element.
static void LampWheel::end_hndl (void *data, const XML_Char *el)
 The handler for the end element.
static void LampWheel::char_hndl (void *data, const XML_Char *s, int len)
 The handler for the char element.
virtual Mount::~Mount ()
 Destructor.
virtual baci::ActionRequest Mount::invokeAction (int function, baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest Mount::obstarAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchronous MOUNT_ACS::Mount::obstar() method This is the function that actually runs obstar(...) and, when completed, invokes the callback installed by the client when it requested the action.
virtual baci::ActionRequest Mount::objfixAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchronous MOUNT_ACS::Mount::objfix() method This is the function that actually runs objfix(...) and, when completed, invokes the callback installed by the client when it requested the action.
virtual void Mount::obstar (CORBA::Double ra, CORBA::Double dec, CORBA::Double pmRa, CORBA::Double pmDec, CORBA::Double radVel, CORBA::Double par, MOUNT_ACS::Mount::coordType type, ACS::CBvoid_ptr callBack, const ACS::CBDescIn &desc)
 (Pre)sets a new equatorial source for the antenna to track.
virtual void Mount::objfix (CORBA::Double az, CORBA::Double elev, ACS::CBvoid_ptr callBack, const ACS::CBDescIn &desc)
 (Pre)sets a new non-moving position for the antenna.
virtual ACS::ROdouble_ptr Mount::cmdAz ()
 Returns a reference to the cmdAz property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr Mount::cmdEl ()
 Returns a reference to the cmdEl property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr Mount::actAz ()
 Returns a reference to the actAz property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr Mount::actEl ()
 Returns a reference to the actEl property Implementation of IDL interface for the property.
void Mount::operator= (const Mount &)
 ALMA C++ coding standards state copy operators should be disabled.
virtual PowerSupply::~PowerSupply ()
 Destructor.
virtual baci::ActionRequest PowerSupply::invokeAction (int function, baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest PowerSupply::onAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of async.
virtual baci::ActionRequest PowerSupply::offAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of async.
virtual baci::ActionRequest PowerSupply::resetAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of async.
virtual void PowerSupply::on (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Switches on the power supply.
virtual void PowerSupply::off (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Switches off the power supply.
virtual void PowerSupply::reset (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Resets the power supply.
virtual ACS::RWdouble_ptr PowerSupply::current ()
 Returns a reference to the current_p property (commanded current).
virtual ACS::ROdouble_ptr PowerSupply::readback ()
 Returns a reference to the readback_p property (actual current).
virtual ACS::ROpattern_ptr PowerSupply::status ()
 Returns a reference to the status_p property (see acsexmplPowerSupplyImpl.cpp).
virtual void PowerSupply::execute ()
 Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.
void PowerSupply::operator= (const PowerSupply &)
 ALMA C++ coding standards state copy operators should be disabled.
 RampedPowerSupply::~RampedPowerSupply ()
 Destructor.
virtual baci::ActionRequest RampedPowerSupply::invokeAction (int function, baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest RampedPowerSupply::startRampingAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of async.
virtual baci::ActionRequest RampedPowerSupply::stopRampingAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of async.
virtual void RampedPowerSupply::startRamping (CORBA::Long rampingSteps, ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Starts ramping the power supply.
virtual void RampedPowerSupply::stopRamping (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
 Stops ramping the power supply.
virtual ACS::RWstring_ptr RampedPowerSupply::rampingStatus ()
 Returns a reference to the rampingStatus property (status).
virtual ACS::ROlong_ptr RampedPowerSupply::rampingStep ()
 Returns a reference to the rampingStep property.
void RampedPowerSupply::operator= (const RampedPowerSupply &)
 ALMA C++ coding standards state copy operators should be disabled.
virtual SlowMount::~SlowMount ()
 Destructor.
virtual baci::ActionRequest SlowMount::invokeAction (int function, baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest SlowMount::obstarAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchronous MOUNT_ACS::Mount::obstar() method This is the function that actually runs obstar(...) and, when completed, invokes the callback installed by the client when it requested the action.
virtual baci::ActionRequest SlowMount::objfixAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Implementation of asynchronous MOUNT_ACS::Mount::objfix() method This is the function that actually runs objfix(...) and, when completed, invokes the callback installed by the client when it requested the action.
virtual void SlowMount::obstar (CORBA::Double ra, CORBA::Double dec, CORBA::Double pmRa, CORBA::Double pmDec, CORBA::Double radVel, CORBA::Double par, MOUNT_ACS::Mount::coordType type, ACS::CBvoid_ptr callBack, const ACS::CBDescIn &desc)
 (Pre)sets a new equatorial source for the antenna to track.
virtual void SlowMount::objfix (CORBA::Double az, CORBA::Double elev, ACS::CBvoid_ptr callBack, const ACS::CBDescIn &desc)
 (Pre)sets a new non-moving position for the antenna.
virtual ACS::ROdouble_ptr SlowMount::cmdAz ()
 Returns a reference to the cmdAz property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr SlowMount::cmdEl ()
 Returns a reference to the cmdEl property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr SlowMount::actAz ()
 Returns a reference to the actAz property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr SlowMount::actEl ()
 Returns a reference to the actEl property Implementation of IDL interface for the property.
void SlowMount::operator= (const SlowMount &)
 ALMA C++ coding standards state copy operators should be disabled.

Variables

baci::RWdoubleSeq * AmsTestSeq::m_RWdoubleSeqPM_p
 m_ROdoubleSeqPM_p is all the coefficients currently set.
baci::ROdoubleSeq * AmsTestSeq::m_ROdoubleSeqPM_p
 m_RWdoubleSeq_p is all the coefficients that the client can set.
baci::SmartPropertyPointer
< baci::ROstring > 
Building::m_version_sp
 m_version_sp is a string which shows the version of class Building being used.
acsexmplBuilding::Door_var Building::m_door_p
 The door that belongs to this building.
baci::SmartPropertyPointer
< baci::RWpattern > 
Calendar::m_yearAttributes_sp
 m_yearAttributes_sp is the calendar's year "attribute"
baci::SmartPropertyPointer
< RWEnumImpl< ACS_ENUM_T(acsexmplCalendar::DaysEnum),
POA_acsexmplCalendar::RWDaysEnum > > 
Calendar::m_day_sp
 m_day_sp represents the day of the year.
baci::SmartPropertyPointer
< RWEnumImpl< ACS_ENUM_T(acsexmplCalendar::MonthEnum),
POA_acsexmplCalendar::RWMonthEnum > > 
Calendar::m_month_sp
 m_month_sp represents the month of the year.
baci::SmartPropertyPointer
< ROEnumImpl< ACS_ENUM_T(acsexmplCalendar::StateEnum),
POA_acsexmplCalendar::ROStateEnum > > 
Calendar::m_state_sp
 m_state_sp represents how good are we with the plan this year...
DoorDoorThread::door_p
baci::SmartPropertyPointer
< baci::RWdouble > 
Door::m_ref_position_sp
 m_ref_position_sp is the position the Door should be in
baci::SmartPropertyPointer
< baci::ROdouble > 
Door::m_position_sp
 m_position_sp is the Door's actual position
baci::SmartPropertyPointer
< baci::ROlong > 
Door::m_substate_sp
 m_substate_sp is the state the door is currently in
baci::SmartPropertyPointer
< baci::ROstring > 
Door::m_version_sp
 m_version_sp is the Door's current version
DoorThreadDoor::m_doorThread_p
char Descriptor::filterName [128]
int Descriptor::delta
ACE_CString FilterWheel::m_fullName
baci::SmartPropertyPointer
< baci::ROdouble > 
FilterWheel::m_position_sp
 m_position_sp is the position of the wheel.
baci::SmartPropertyPointer
< baci::ROstring > 
FilterWheel::m_desc_sp
 m_desc_sp is the description of the wheel.
baci::SmartPropertyPointer
< baci::ROlong > 
FilterWheel::m_slots_sp
 m_slots_sp is the number of available slots in the wheel
DescriptorFilterWheel::m_wheelConfiguration
 The array describing the actual configuration of the wheel: It is built by reading the CDB The number of item in the array is given by the number of available slots defined in the CDB.
int FridgeThread::loopCounter_m
FridgeControlFridgeThread::fridgeControl_p
baci::SmartPropertyPointer
< baci::RWdouble > 
FridgeControl::m_refTemperature_sp
 m_refTemperature_sp is the temperature we want the fridge to be.
baci::SmartPropertyPointer
< ROEnumImpl< ACS_ENUM_T(FRIDGE::OnOffStates),
POA_FRIDGE::ROOnOffStates > > 
FridgeControl::m_powerStatus_sp
 The fridge can be either turned on or off.
baci::SmartPropertyPointer
< ROEnumImpl< ACS_ENUM_T(FRIDGE::OpClStates),
POA_FRIDGE::ROOpClStates > > 
FridgeControl::m_doorStatus_sp
 The fridge's door can be either opened or closed.
baci::SmartPropertyPointer
< baci::ROdouble > 
FridgeControl::m_currTemperature_sp
 m_currTemperature_p is the temperature the fridge actually is.
FridgeThreadFridgeControl::m_controlLoop_p
 m_controlLoop_p is only started once the fridge has been turned on().
nc::SimpleSupplier * FridgeControl::m_FridgeSupplier_p
 This is the Supplier derived class used to publish data to the event channel.
baci::SmartPropertyPointer
< baci::RWdouble > 
Lamp::m_brightness_sp
 m_brightness_sp is the lamp's setable brightness.
char SlotDescriptor::lampName [128]
unsigned int SlotDescriptor::warmUpTime
unsigned int SlotDescriptor::watt
unsigned int SlotDescriptor::pos
ACE_CString LampWheel::m_fullName
baci::SmartPropertyPointer
< baci::ROdouble > 
LampWheel::m_position_sp
 m_position_sp is the position of the wheel.
baci::SmartPropertyPointer
< baci::ROstring > 
LampWheel::m_desc_sp
 m_desc_sp is the description of the wheel.
baci::SmartPropertyPointer
< baci::ROlong > 
LampWheel::m_slots_sp
 m_slots_sp is the number of available slots in the wheel
std::list< SlotDescriptorLampWheel::m_lampWheelConfiguration
 The list of descriptions of each slot of the wheel: it is the configuration of the lampWheel It is built reading the CDB.
ActionFunction Mount::m_actions [2]
 Please see ActionFunction.
baci::SmartPropertyPointer
< baci::ROdouble > 
Mount::m_cmdAz_sp
 m_cmdAz_sp is the antenna's commanded azimuth
baci::SmartPropertyPointer
< baci::ROdouble > 
Mount::m_cmdEl_sp
 m_cmdEl_sp is the antenna's commanded elevation
baci::SmartPropertyPointer
< baci::ROdouble > 
Mount::m_actAz_sp
 m_actAz_sp is the antenna's actual azimuth
baci::SmartPropertyPointer
< baci::ROdouble > 
Mount::m_actEl_sp
 m_actEl_sp is the antenna's actual elevation
baci::SmartPropertyPointer
< baci::ROpattern > 
PowerSupply::m_status_sp
 m_status_sp is the PowerSupply's state (values are in CDB).
baci::SmartPropertyPointer
< baci::ROdouble > 
PowerSupply::m_readback_sp
 m_readback_sp is the actual value of PowerSupply's current.
baci::SmartPropertyPointer
< PowerSupplyCurrent
PowerSupply::m_current_sp
 m_current_sp is the commanded current.
static const int RampedPowerSupply::START_RAMPING = 3
 One of these function IDs will be passed to invokeAction().
static const int RampedPowerSupply::STOP_RAMPING = 4
baci::SmartPropertyPointer
< baci::ROlong > 
RampedPowerSupply::m_rampingStep_sp
 m_rampingStep_p is the RampedPowerSupply's present step in the ramping process.
DevIO< CORBA::Long > * RampedPowerSupply::m_rampingStep_devio_p
 m_rampingStep_devio_p is the DevIO subclass passed to the RampingStep property when it is created.
baci::SmartPropertyPointer
< baci::RWstring > 
RampedPowerSupply::m_rampingStatus_sp
 m_rampingStatus_p is the RampedPowerSupply's status in the ramping process.
ActionFunction SlowMount::m_actions [2]
 Please see ActionFunction.
baci::SmartPropertyPointer
< baci::ROdouble > 
SlowMount::m_cmdAz_sp
 m_cmdAz_sp is the antenna's commanded azimuth
baci::SmartPropertyPointer
< baci::ROdouble > 
SlowMount::m_cmdEl_sp
 m_cmdEl_sp is the antenna's commanded elevation
baci::SmartPropertyPointer
< baci::ROdouble > 
SlowMount::m_actAz_sp
 m_actAz_sp is the antenna's actual azimuth
baci::SmartPropertyPointer
< baci::ROdouble > 
SlowMount::m_actEl_sp
 m_actEl_sp is the antenna's actual elevation

Detailed Description


Typedef Documentation

typedef baci::ActionRequest(Mount::* Mount::ActionFunction)(baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut) [private, inherited]

Definition of ActionFunction (member function of Mount class) ActionFunction is used to run the asynchronous methods from within invokeAction(...) without actually having to specify calls to each ...Action(...) method.

This is easily accomplished since all ...Action(...) methods return an baci::ActionRequest.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


Definition at line 364 of file acsexmplMountImpl.h.

typedef baci::ActionRequest(SlowMount::* SlowMount::ActionFunction)(baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut) [private, inherited]

Definition of ActionFunction (member function of Mount class) ActionFunction is used to run the asynchronous methods from within invokeAction(...) without actually having to specify calls to each ...Action(...) method.

This is easily accomplished since all ...Action(...) methods return an baci::ActionRequest.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


Definition at line 349 of file acsexmplSlowMountImpl.h.


Function Documentation

void FilterWheel::aboutToAbort (  )  [virtual, inherited]

Called when due to some error condition the component is about to be forcefully removed some unknown amount of time later (usually not very much...).

The component should make an effort to die as neatly as possible. Because of its urgency, this method will be called asynchronously to the execution of any other method of the component. If this method is overwritten in a chain of subclasses, the developer might need to make sure that all activities performed by the implementation of the base class take place. Check the documentation of direct parent class to know if this is necessary (and do not forget to document each class for the need to chain lifecycle methods in subclasses). The best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a constructor chain. In this class the default implementation only sets the state of the component to acscomponent::ACS::ACS::COMPSTATE_ABORTING

Returns:
void

Definition at line 316 of file acsexmplFilterWheelImpl.cpp.

void LampWheel::aboutToAbort (  )  [virtual, inherited]

Called when due to some error condition the component is about to be forcefully removed some unknown amount of time later (usually not very much...).

The component should make an effort to die as neatly as possible. Because of its urgency, this method will be called asynchronously to the execution of any other method of the component. If this method is overwritten in a chain of subclasses, the developer might need to make sure that all activities performed by the implementation of the base class take place. Check the documentation of direct parent class to know if this is necessary (and do not forget to document each class for the need to chain lifecycle methods in subclasses). The best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a constructor chain. In this class the default implementation only sets the state of the component to acscomponent::ACS::ACS::COMPSTATE_ABORTING

Returns:
void

Definition at line 361 of file acsexmplLampWheelImpl.cpp.

ACS::ROdouble_ptr Mount::actAz (  )  [virtual, inherited]

Returns a reference to the actAz property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property actAz

Definition at line 267 of file acsexmplMountImpl.cpp.

References Mount::m_actAz_sp.

ACS::ROdouble_ptr SlowMount::actAz (  )  [virtual, inherited]

Returns a reference to the actAz property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property actAz

Definition at line 304 of file acsexmplSlowMountImpl.cpp.

References SlowMount::m_actAz_sp.

ACS::ROdouble_ptr Mount::actEl (  )  [virtual, inherited]

Returns a reference to the actEl property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property actEl

Definition at line 279 of file acsexmplMountImpl.cpp.

References Mount::m_actEl_sp.

ACS::ROdouble_ptr SlowMount::actEl (  )  [virtual, inherited]

Returns a reference to the actEl property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property actEl

Definition at line 317 of file acsexmplSlowMountImpl.cpp.

References SlowMount::m_actEl_sp.

void FilterWheel::adjust ( int  step,
ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Move the wheel of the specified number of step.

Parameters:
the step to move the wheel

Definition at line 512 of file acsexmplFilterWheelImpl.cpp.

References ADJUST_ACTION.

virtual baci::ActionRequest FilterWheel::adjustAction ( baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchrnous adjust() method This is the function that moves the wheel of some steps and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


void ErrorComponent::badMethod ( CORBA::Short  depth  )  [virtual, inherited]

Simple method raises a remote exception within the calling client.

Implementation of IDL badMethod().

Parameters:
depth depth of the error trace
Exceptions:
ACSErrTypeCommon::GenericErrorEx 
ACSErrTypeCommon::UnexpectedExceptionEx 

Definition at line 65 of file acsexmplErrorComponentImpl.cpp.

References ErrorComponent::buildErrorTrace().

void HelloWorld::badMethod (  )  [virtual, inherited]

Simple method raises a remote exception within the calling client.

Implementation of IDL badMethod().

Exceptions:
ACSErrTypeCommon::UnknownEx 

Definition at line 62 of file acsexmplHelloWorldImpl.cpp.

void InitErrorHelloWorld::badMethod (  )  [virtual, inherited]

Simple method raises a remote exception within the calling client.

Implementation of IDL badMethod().

Exceptions:
ACSErrTypeCommon::UnknownEx 

Definition at line 62 of file acsexmplInitErrorHelloWorld.cpp.

void ConstrErrorHelloWorld::badMethod (  )  [virtual, inherited]

Simple method raises a remote exception within the calling client.

Implementation of IDL badMethod().

Exceptions:
ACSErrTypeCommon::UnknownEx 

Definition at line 64 of file acsexmplConstrErrorHelloWorld.cpp.

ACS::RWdouble_ptr Lamp::brightness (  )  [virtual, inherited]

Returns a reference to the Brightness property Implementation of IDL interface for the property.



Definition at line 170 of file acsexmplLampImpl.cpp.

References Lamp::brightness(), and Lamp::m_brightness_sp.

Referenced by Lamp::brightness().

void ErrorComponent::buildErrorTrace ( unsigned short  depth  )  [private, virtual, inherited]

The aim of this method is to build an error trace.

It builds the error trace using exception, but the same could be done using Completion. It simply throw an exception containing an error trace with the requested depth, if > 0 Otherwise just returns.

Notice that this method throws a LOCAL exception xxxExImpl and not a remote exception xxx

Parameters:
depth depth of the error trace
Exceptions:
ACSErrTypeCommon::GenericErrorExImpl 

Definition at line 331 of file acsexmplErrorComponentImpl.cpp.

Referenced by ErrorComponent::badMethod(), ErrorComponent::createCompletion(), and ErrorComponent::typeException().

CORBA::Long FilterWheel::calibrateFilter ( const char *  name  )  [virtual, inherited]

Calibrate the delta of the filter by reading the actual position and the step of the slot where the filter is mounted (it also updates the value in the CDB).

Parameters:
name The name of the filter to calibrate
Returns:
The new delta for the filter

Definition at line 535 of file acsexmplFilterWheelImpl.cpp.

References Descriptor::delta, FilterWheel::m_position_sp, FilterWheel::m_slots_sp, FilterWheel::m_wheelConfiguration, Descriptor::step, and FilterWheel::updateFilter().

CORBA::Long FilterWheel::calibrateWheel ( int  slot  )  [virtual, inherited]

Calibrate the step for the slot by reading the actual position (it also updates the value in the CDB).

Parameters:
slot The number of the slot to calibrate
Returns:
The new step for the slot

Definition at line 518 of file acsexmplFilterWheelImpl.cpp.

References FilterWheel::m_position_sp, FilterWheel::m_slots_sp, FilterWheel::m_wheelConfiguration, Descriptor::step, and FilterWheel::updateWheel().

void LampWheel::char_hndl ( void *  data,
const XML_Char *  s,
int  len 
) [static, private, inherited]

The handler for the char element.

See also:
libexpat documentation for further info

Definition at line 256 of file acsexmplLampWheelImpl.cpp.

References ParserStruct::actualTag, SlotDescriptor::pos, POS_TAG, ParserStruct::slotDescr, SlotDescriptor::warmUpTime, SlotDescriptor::watt, WATT_TAG, and WUT_TAG.

Referenced by LampWheel::retrieveConfigurationFromCDB().

void Door::checkSubstate ( CompletionImpl *&  error_p  )  [private, virtual, inherited]

Checks substate Checks for the device's substate.

If the device is busy it returns an error. The purpose of this function is to show how to handle local error information.

Parameters:
error completion return variable
Returns:
void

Definition at line 208 of file acsexmplDoorImpl.cpp.

References DOOR_CLOSING, DOOR_OPENING, Door::m_substate_sp, and Door::substate().

Referenced by Door::move().

void FridgeControl::cleanUp (  )  [virtual, inherited]

Called after the last functional call to the component has finished.

The component should then orderly release resources etc.

As required by the CharacteristicComponentImpl class, I call explicitly the cleanUp() of the parent class. This makes sure that all threads are stopped and the Component's state set. Depending on what resources are used by a class implementing a Component and by the implementation of the parent class (if it does not inherit directly from acscomponent::ACSComponentImpl or baci:: CharacteristicComponentImpl) it might be necessary to call the cleanuUp() method of the base class AFTER having released resources allocated by the current class. This is demonstrated in this example where we want to make sure that the powerStatus is FRIDGE::OFF before letting the cleanUp() of the base class stopping all the threads, including the one that regulates the temperature. For an example where the cleanUp() of the parent class is called before any other step, see the Building class. Always check the documentation of the parent class and consider what resources are allocated by this class to extablish the requirements for the execution of lifecycle chained methods.

Returns:
void

Definition at line 136 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_controlLoop_p, FridgeControl::m_FridgeSupplier_p, FridgeControl::off(), FRIDGE::OFF, and FridgeControl::powerStatus().

void Building::cleanUp (  )  [virtual, inherited]

Called after the last functional call to the component has finished.

The component should then orderly release resources etc.

As required by the CharacteristicComponentImpl class, I call first explicitly the cleanUp() of the parent class. This makes sure that all threads are stopped and the Component's state set. Depending on what resources are used by a class implementing a Component and by the implementation of the parent class (if it does not inherit directly from acscomponent::ACSComponentImpl or baci:: CharacteristicComponentImpl) it might be necessary to call the cleanuUp() method of the base class AFTER having released resources allocated by the current class. For an example, see the FridgeControl class Always check the documentation of the parent class and consider what resources are allocated by this class to extablish the requirements for the execution of lifecycle chained methods.

Returns:
void

Definition at line 105 of file acsexmplBuildingImpl.cpp.

References Building::m_door_p.

void LampWheel::cleanUp (  )  [virtual, inherited]

Called after the last functional call to the component has finished.

The component should then orderly release resources etc. If this method is overwritten in a subclass, the developer has to make sure that all cleanup performed by the implementation of the base class take place. The best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a destructor chain. If this method is overwritten in a chain of subclasses, the developer might need to make sure that all activities performed by the implementation of the base class take place. Check the documentation of direct parent class to know if this is necessary (and do not forget to document each class for the need to chain lifecycle methods in subclasses). The best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a destructor chain. In this class the default implementation only sets the state of the component to acscomponent::ACS::COMPSTATE_DESTROYING

Returns:
void

Definition at line 354 of file acsexmplLampWheelImpl.cpp.

References LampWheel::m_lampWheelConfiguration.

void FilterWheel::cleanUp (  )  [virtual, inherited]

Called after the last functional call to the component has finished.

The component should then orderly release resources etc. If this method is overwritten in a subclass, the developer has to make sure that all cleanup performed by the implementation of the base class take place. The best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a destructor chain. If this method is overwritten in a chain of subclasses, the developer might need to make sure that all activities performed by the implementation of the base class take place. Check the documentation of direct parent class to know if this is necessary (and do not forget to document each class for the need to chain lifecycle methods in subclasses). The best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a destructor chain. In this class the default implementation only sets the state of the component to acscomponent::ACS::COMPSTATE_DESTROYING

Returns:
void

Definition at line 309 of file acsexmplFilterWheelImpl.cpp.

References FilterWheel::m_wheelConfiguration.

void Door::close ( ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Closes the door Implementation of IDL close() interface.

This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling Door::closeAction The given callback is used to inform the caller when the action is performed.

Parameters:
cb callback when action has finished
desc callback used for holding information on timeout periods
Returns:
void

Definition at line 377 of file acsexmplDoorImpl.cpp.

References CLOSE_ACTION.

void FridgeControl::close (  )  [virtual, inherited]

Close the door.

Returns:
void

Definition at line 265 of file acsexmplFridgeImpl.cpp.

References FRIDGE::CLOSE, and FridgeControl::m_doorStatus_sp.

virtual baci::ActionRequest Door::closeAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynch.

close() method This is the function that actually closes the Door and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p owner of the action
callbackID id of the callback to be notified
descIn callback descriptor (passed by client)
value action data (e.g., parameters to the original CORBA method)
completion error handing structure
descOut callback descriptor which will be passed to client
Returns:
request to be performed by BACI
  • reqNone - do nothing (action will be kept in queue)
  • reqInvokeWorking - invoke <type>Callback::working
  • reqInvokeDone - invoke <type>Callback::done and destroy callback
  • reqDestroy - destroy callback (callback should has been called already by function)


void Building::closeFrontDoor (  )  [virtual, inherited]

Closes the FRONTDOOR Implementation of the IDL closeFrontDoor() interface.

Returns:
void

Definition at line 162 of file acsexmplBuildingImpl.cpp.

References Building::m_door_p.

ACS::ROdouble_ptr Mount::cmdAz (  )  [virtual, inherited]

Returns a reference to the cmdAz property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property cmdAz

Definition at line 243 of file acsexmplMountImpl.cpp.

References Mount::m_cmdAz_sp.

ACS::ROdouble_ptr SlowMount::cmdAz (  )  [virtual, inherited]

Returns a reference to the cmdAz property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property cmdAz

Definition at line 278 of file acsexmplSlowMountImpl.cpp.

References SlowMount::m_cmdAz_sp.

ACS::ROdouble_ptr Mount::cmdEl (  )  [virtual, inherited]

Returns a reference to the cmdEl property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property cmdEl

Definition at line 255 of file acsexmplMountImpl.cpp.

References Mount::m_cmdEl_sp.

ACS::ROdouble_ptr SlowMount::cmdEl (  )  [virtual, inherited]

Returns a reference to the cmdEl property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property cmdEl

Definition at line 291 of file acsexmplSlowMountImpl.cpp.

References SlowMount::m_cmdEl_sp.

ACSErr::Completion * ErrorComponent::completionFromCompletion ( CORBA::Short  depth  )  [virtual, inherited]

Simple method that returns a REMOTE (CORBA) completion (ACSErr::Completion), where an error trace is added from a completion.

Parameters:
depth depth of the error trace, if <=0, returns OK completion
Returns:
ACSErr::Completion

Definition at line 235 of file acsexmplErrorComponentImpl.cpp.

References ErrorComponent::createCompletion().

ACSErr::Completion * ErrorComponent::completionFromException ( CORBA::Short  depth  )  [virtual, inherited]

Simple method that returns an ACSErr::Completion, where an error trace is added from an exception.

Parameters:
depth depth of the error trace, if <=0, returns OK completion
Returns:
ACSErr::Completion

Definition at line 143 of file acsexmplErrorComponentImpl.cpp.

References ErrorComponent::createCompletion().

ACSErr::Completion * ErrorComponent::completionOnStack ( CORBA::Short  depth  )  [inherited]

This method is similar than completionFromCompletion, but it allocated C++ completion on the stack instead on the heap.

Parameters:
depth depth of the error trace, if <=0, returns OK completion
Returns:
ACSErr::Completion

Definition at line 157 of file acsexmplErrorComponentImpl.cpp.

References ErrorComponent::createCompletion().

void ErrorComponent::corbaSystemException (  )  [virtual, inherited]

Method that throws a CORBA::BAD_PARAM system exception to show how to handle CORBA System Exceptions.

Definition at line 137 of file acsexmplErrorComponentImpl.cpp.

CompletionImpl * ErrorComponent::createCompletion ( unsigned short  depth  )  [private, virtual, inherited]

This method return a LOCAL (C++) completion which contains an error trace if depth > 0, otherwise it returns non error completion (ACSErrOKCompletion), i.e.

completion w/o ane error trace

Parameters:
depth depth of the error trace

Definition at line 279 of file acsexmplErrorComponentImpl.cpp.

References ErrorComponent::buildErrorTrace().

Referenced by ErrorComponent::completionFromCompletion(), ErrorComponent::completionFromException(), ErrorComponent::completionOnStack(), and ErrorComponent::exceptionFromCompletion().

ACS::RWdouble_ptr PowerSupply::current (  )  [virtual, inherited]

Returns a reference to the current_p property (commanded current).

Implementation of IDL interface for the property.

Returns:
a pointer to the property

Definition at line 261 of file acsexmplPowerSupplyImpl.cpp.

References PowerSupply::m_current_sp.

ACS::ROdouble_ptr FridgeControl::currTemperature (  )  [virtual, inherited]

Property currTemperature shows the fridge's actual temperature.

Returns:
Reference to the BACI property

Definition at line 311 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_currTemperature_sp.

Referenced by FridgeControl::loadData().

acsexmplCalendar::RWDaysEnum_ptr Calendar::day (  )  [inherited]

Returns a reference to the day property Implementation of IDL interface for the property.



Definition at line 59 of file acsexmplCalendarImpl.cpp.

References Calendar::m_day_sp.

ACS::ROstring_ptr FilterWheel::desc (  )  [virtual, inherited]

Returns a reference to the desc property Implementation of IDL interface for the property.



Definition at line 581 of file acsexmplFilterWheelImpl.cpp.

References FilterWheel::m_desc_sp.

ACS::ROstring_ptr LampWheel::desc (  )  [virtual, inherited]

Returns a reference to the desc property Implementation of IDL interface for the property.



Definition at line 475 of file acsexmplLampWheelImpl.cpp.

References LampWheel::m_desc_sp.

void ConstrErrorHelloWorld::displayMessage (  )  [virtual, inherited]

Displays "Hello World" to the console.

Implementation of IDL displayMessage().


Definition at line 58 of file acsexmplConstrErrorHelloWorld.cpp.

void ErrorComponent::displayMessage (  )  [virtual, inherited]

Displays "Hello World" to the console.

Implementation of IDL displayMessage().


Definition at line 57 of file acsexmplErrorComponentImpl.cpp.

void HelloWorld::displayMessage (  )  [virtual, inherited]

Displays "Hello World" to the console.

Implementation of IDL displayMessage().


Definition at line 56 of file acsexmplHelloWorldImpl.cpp.

void InitErrorHelloWorld::displayMessage (  )  [virtual, inherited]

Displays "Hello World" to the console.

Implementation of IDL displayMessage().


Definition at line 56 of file acsexmplInitErrorHelloWorld.cpp.

Door::Door ( const ACE_CString &  name,
maci::ContainerServices *  containerServices 
) [inherited]

Constructor.

Parameters:
poa poa which will activate this and also all other components
name component name

Definition at line 150 of file acsexmplDoorImpl.cpp.

FRIDGE::ROOpClStates_ptr FridgeControl::doorStatus (  )  [virtual, inherited]

Property doorStatus shows the position of the door.

Returns:
Reference to the BACI property

Definition at line 299 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_doorStatus_sp.

void LampWheel::end_hndl ( void *  data,
const XML_Char *  el 
) [static, private, inherited]

The handler for the end element.

See also:
libexpat documentation for further info

Definition at line 235 of file acsexmplLampWheelImpl.cpp.

References ParserStruct::actualTag, ParserStruct::slotDescr, and ParserStruct::wheelDescriptor.

Referenced by LampWheel::retrieveConfigurationFromCDB().

void ErrorComponent::exceptionFromCompletion ( CORBA::Short  depth  )  [virtual, inherited]

Simple method raises a remote exception within the calling client.

The error trace in the exception is added from a completion. Implementation of IDL method.

Parameters:
depth depth of the error trace
Exceptions:
ACSErrTypeCommon::GenericErrorEx 

Definition at line 196 of file acsexmplErrorComponentImpl.cpp.

References ErrorComponent::createCompletion().

void Door::execute (  )  [virtual, inherited]

Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.

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

Exceptions:
ACSErr::ACSbaseExImpl 
Returns:
void

Definition at line 162 of file acsexmplDoorImpl.cpp.

References DOOR_UNDEFINED, Door::m_doorThread_p, Door::m_substate_sp, and Door::m_version_sp.

void PowerSupply::execute (  )  [virtual, inherited]

Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.

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

Returns:
void
Exceptions:
ACSErr::ACSbaseExImpl 

Definition at line 74 of file acsexmplPowerSupplyImpl.cpp.

References PowerSupply::m_status_sp.

void Building::execute (  )  [virtual, inherited]

Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.

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

Exceptions:
ACSErr::ACSbaseExImpl 
Returns:
void

Definition at line 70 of file acsexmplBuildingImpl.cpp.

References Building::m_door_p, and Building::m_version_sp.

void AmsTestSeq::execute (  )  [virtual, inherited]

Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.

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

Exceptions:
ACSErr::ACSbaseExImpl 
Returns:
void

Definition at line 64 of file acsexmplAmsSeqImpl.cpp.

References AmsTestSeq::m_ROdoubleSeqPM_p, and AmsTestSeq::m_RWdoubleSeqPM_p.

void LampWheel::execute (  )  [virtual, inherited]

Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.

Must be implemented as a synchronous (blocking) call (can spawn threads though). If this method is overwritten in a chain of subclasses, the developer might need to make sure that all activities performed by the implementation of the base class take place. Check the documentation of direct parent class to know if this is necessary (and do not forget to document each class for the need to chain lifecycle methods in subclasses). The best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a constructor chain. In this class the default implementation only sets the state of the component to acscomponent::ACS::COMPSTATE_OPERATIONAL

Returns:
void
Exceptions:
ACSErr::ACSbaseExImpl 

Definition at line 342 of file acsexmplLampWheelImpl.cpp.

References LampWheel::m_lampWheelConfiguration, and LampWheel::retrieveConfigurationFromCDB().

void FilterWheel::execute (  )  [virtual, inherited]

Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.

Must be implemented as a synchronous (blocking) call (can spawn threads though). If this method is overwritten in a chain of subclasses, the developer might need to make sure that all activities performed by the implementation of the base class take place. Check the documentation of direct parent class to know if this is necessary (and do not forget to document each class for the need to chain lifecycle methods in subclasses). The best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a constructor chain. In this class the default implementation only sets the state of the component to acscomponent::ACS::COMPSTATE_OPERATIONAL

Exceptions:
ACSErr::ACSbaseExImpl 
Returns:
void

Definition at line 301 of file acsexmplFilterWheelImpl.cpp.

References FilterWheel::m_wheelConfiguration, and FilterWheel::readConfiguration().

void ErrorComponent::generateSIGFPE ( CORBA::Short  way  )  [inherited]

A method wich will generate the SIGFPE signal This can be used to test what happens when there is a floating point exception in a component.

Parameters:
way parameter used to specify the way to generate the SIGFPE way == 0: Send SIGFPE signal with the kill() function363 way == 1: Generate a floating point exception by dividing by 0

Definition at line 385 of file acsexmplErrorComponentImpl.cpp.

void ErrorComponent::generateSIGSEGV ( CORBA::Short  way  )  [inherited]

A method wich will generate the SIGSEGV signal This can be used to test what happens when there is a segmentation fault in a component.

Parameters:
way parameter used to specify the way to generate the SIGSEGV way == 0: Send SIGSEGV signal with the kill() function way == 1: Generate a segmentation fault by accessing to a null pointer

Definition at line 410 of file acsexmplErrorComponentImpl.cpp.

void InitErrorHelloWorld::initialize (  )  [virtual, inherited]

This method in the example will throw an exception.

The goal here is to be able to test the behaviour of ACS when a component throw an exception during the initialization.

Returns:
void
Exceptions:
ACSErr::ACSbaseExImpl 

Definition at line 69 of file acsexmplInitErrorHelloWorld.cpp.

void LampWheel::initialize (  )  [virtual, inherited]

Called to give the component time to initialize itself.

For instance, the component could retrieve connections, read in configuration files/parameters, build up in-memory tables, ... Called before execute. In fact, this method might be called quite some time before functional requests can be sent to the component. Must be implemented as a synchronous (blocking) call. If this method is overwritten in a chain of subclasses, the developer has to make sure that all initialisations performed by the implementation of the base class take place. Check the documentation of direct parent class to know if this is necessary (and do not forget to document each class for the need to chain lifecycle methods in subclasses). If necessary, the best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a constructor chain. In this class the default implementation only sets the state of the component first to acscomponent::ACS::COMPSTATE_INITIALIZING and then to acscomponent::ACS::COMPSTATE_INITIALIZED.

Returns:
void
Exceptions:
ACSErr::ACSbaseExImpl 

Definition at line 277 of file acsexmplLampWheelImpl.cpp.

References LampWheel::m_desc_sp, LampWheel::m_fullName, LampWheel::m_position_sp, and LampWheel::m_slots_sp.

void FilterWheel::initialize (  )  [virtual, inherited]

Called to give the component time to initialize itself.

For instance, the component could retrieve connections, read in configuration files/parameters, build up in-memory tables, ... Called before execute. In fact, this method might be called quite some time before functional requests can be sent to the component. Must be implemented as a synchronous (blocking) call. If this method is overwritten in a chain of subclasses, the developer has to make sure that all initialisations performed by the implementation of the base class take place. Check the documentation of direct parent class to know if this is necessary (and do not forget to document each class for the need to chain lifecycle methods in subclasses). If necessary, the best way to do this is to call the implementation of the base itself explicitly, as would be done implicitly in a constructor chain. In this class the default implementation only sets the state of the component first to acscomponent::ACS::COMPSTATE_INITIALIZING and then to acscomponent::ACS::COMPSTATE_INITIALIZED.

Parameters:
containerServices pointer to services provided by the container
Exceptions:
ACSErr::ACSbaseExImpl 
Returns:
void

Definition at line 214 of file acsexmplFilterWheelImpl.cpp.

References Descriptor::delta, Descriptor::filterName, FilterWheel::m_desc_sp, FilterWheel::m_fullName, FilterWheel::m_position_sp, FilterWheel::m_slots_sp, FilterWheel::m_wheelConfiguration, and Descriptor::step.

virtual baci::ActionRequest PowerSupply::invokeAction ( int  function,
baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Action dispatcher function This function is called whenever an asynchronous request has to be handled.

It receives (as parameters) the description of the function and selects the proper implementation to call.

Parameters:
function action funtion to be invoked
component_p owner of the action
callbackID id of the callback to be notified
descIn callback descriptor (passed by client)
value_p action data (e.g. value to be set)
completion error handing structure
descOut callback descriptor which will be passed to client
Returns:
request to be performed by baci::BACI
  • reqNone - do nothing (action will be kept in queue)
  • reqInvokeWorking - invoke <type>Callback::working
  • reqInvokeDone - invoke <type>Callback::done and destroy callback
  • reqDestroy - destroy callback (callback should has been called already by function)

Reimplemented in RampedPowerSupply.

virtual baci::ActionRequest RampedPowerSupply::invokeAction ( int  function,
baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Action dispatcher function This function is called whenever an asynchronous request has to be handled.

It receives (as parameters) the description of the function and selects the proper implementation to call.

Parameters:
function action funtion to be invoked
component_p owner of the action
callbackID id of the callback to be notified
descIn callback descriptor (passed by client)
value_p action data (e.g. value to be set)
completion error handing structure
descOut callback descriptor which will be passed to client
Returns:
request to be performed by BACI
  • reqNone - do nothing (action will be kept in queue)
  • reqInvokeWorking - invoke <type>Callback::working
  • reqInvokeDone - invoke <type>Callback::done and destroy callback
  • reqDestroy - destroy callback (callback should has been called already by function)

Reimplemented from PowerSupply.

virtual baci::ActionRequest SlowMount::invokeAction ( int  function,
baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Action dispatcher function This function is called whenever an asynchronous request has to be handled.

It receives (as parameters) the description of the function and selects the proper implementation to call.

Parameters:
function Action funtion to be invoked.
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should have been called already by function).


virtual baci::ActionRequest Lamp::invokeAction ( int  function,
baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Action dispatcher function This function is called whenever an asynchronous request has to be handled.

It receives (as parameters) the description of the function and selects the proper implementation to call.

Parameters:
function Action funtion to be invoked.
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should have been called already by function).


virtual baci::ActionRequest Door::invokeAction ( int  function,
baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Action dispatcher function This function is called whenever an asynchronous request has to be handled.

It receives (as parameters) the description of the function and selects the proper implementation to call.

Parameters:
function action funtion to be invoked
component_p owner of the action
callbackID id of the callback to be notified
descIn callback descriptor (passed by client)
value_p action data (e.g., parameters to the original CORBA method)
completion error handing structure
descOut callback descriptor which will be passed to client
Returns:
request to be performed by BACI
  • reqNone - do nothing (action will be kept in queue)
  • reqInvokeWorking - invoke <type>Callback::working
  • reqInvokeDone - invoke <type>Callback::done and destroy callback
  • reqDestroy - destroy callback (callback should has been called already by function)


virtual baci::ActionRequest LampWheel::invokeAction ( int  function,
baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Action dispatcher function This function is called whenever an asynchronous request has to be handled.

It receives (as parameters) the description of the function and selects the proper implementation to call.

Parameters:
function Action funtion to be invoked.
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should have been called already by function).


virtual baci::ActionRequest FilterWheel::invokeAction ( int  function,
baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Action dispatcher function This function is called whenever an asynchronous request has to be handled.

It receives (as parameters) the description of the function and selects the proper implementation to call.

Parameters:
function Action funtion to be invoked.
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should have been called already by function).


virtual baci::ActionRequest Mount::invokeAction ( int  function,
baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Action dispatcher function This function is called whenever an asynchronous request has to be handled.

It receives (as parameters) the description of the function and selects the proper implementation to call.

Parameters:
function Action funtion to be invoked.
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should have been called already by function).


void FridgeControl::loadData (  )  [private, virtual, inherited]

Converts this devices useful data into a temperatureDataBlockEvent structure and then publishes that onto an event channel.

Returns:
void

Definition at line 344 of file acsexmplFridgeImpl.cpp.

References FRIDGE::temperatureDataBlockEvent::absoluteDiff, FridgeControl::currTemperature(), FridgeControl::m_FridgeSupplier_p, FridgeControl::refTemperature(), and FRIDGE::temperatureDataBlockEvent::status.

Referenced by FridgeControl::updateTemperature().

acsexmplCalendar::RWMonthEnum_ptr Calendar::month (  )  [inherited]

Returns a reference to the month property Implementation of IDL interface for the property.



Definition at line 71 of file acsexmplCalendarImpl.cpp.

References Calendar::m_month_sp.

void Door::move ( CORBA::Double  pos  )  [virtual, inherited]

Moves the door to the given position Implementation of the IDL move(...) interface.

This method, while synchronous, only changes the reference position (i.e., m_ref_position_p) while DoorThread actually handles the change in the door position via an ACS thread.

Parameters:
pos requested position - must be between 0 and a 100.
Returns:
void

Definition at line 384 of file acsexmplDoorImpl.cpp.

References Door::checkSubstate(), and Door::m_ref_position_sp.

void LampWheel::move ( CORBA::Short  slot,
ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Move the lamp wheel to a specification slot.

The position of the slot is read from the database Implementation of IDL move(...) interface. The actual action will be invoked asyncronously by the asynchonous call manager by calling LampWhell::moveAction The given callback is used to inform the caller when the action is performed.

Parameters:
n The number of the slot to move to
callBack Callback when action has finished.
desc Callback used for holding information on timeout periods.

Definition at line 453 of file acsexmplLampWheelImpl.cpp.

References MOVE_ACTION.

virtual baci::ActionRequest LampWheel::moveAction ( baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchrnous acsexmplLamp::Lamp::off() method This is the function that actually switches off the Lamp and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


virtual baci::ActionRequest FilterWheel::moveFilterAction ( baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchrnous moveFilterInBeam method This is the function that actually rotate the wheel to the slot of the selected filter (it also take in account the per-filter adjustament represented by the delta filed in the description of the filter in the CDB) When completed, invokes the callback installed by the client when it requested the action.

Parameters:
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


void FilterWheel::moveFilterInBeam ( const char *  name,
ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Move the filter wheel to a specification slot.

Implementation of IDL moveFilterInBeam(...) interface. The actual action will be invoked asyncronously by the asynchonous call manager by calling LampWhell::moveAction The given callback is used to inform the caller when the action is performed.

Definition at line 498 of file acsexmplFilterWheelImpl.cpp.

References MOVEFILTER_ACTION.

virtual baci::ActionRequest FilterWheel::moveSlotAction ( baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchrnous moveSlotInBeam method This is the function that actually rotate the wheel to the selected slot When completed, invokes the callback installed by the client when it requested the action.

Parameters:
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


void FilterWheel::moveSlotInBeam ( int  slot,
ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Move the filter wheel to a specific slot.

Implementation of IDL moveSlotInBeam(...) interface. The actual action will be invoked asyncronously by the asynchonous call manager by calling LampWhell::moveAction The given callback is used to inform the caller when the action is performed.

Definition at line 506 of file acsexmplFilterWheelImpl.cpp.

References MOVESLOT_ACTION.

void Mount::objfix ( CORBA::Double  az,
CORBA::Double  elev,
ACS::CBvoid_ptr  callBack,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

(Pre)sets a new non-moving position for the antenna.

The position coordinates are given in azimuth and elevation. The actual az and elev values are written to the properties cmdAz, cmdEl, actAz and actEl.

This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling Mount::objfixAction(...). The given callback is used to inform the caller when the action is performed.

Parameters:
az position azimuth (degree)
elev position elevation (degree)
callBack Callback when action has finished.
desc Callback used for holding information on timeout periods
Returns:
void

Definition at line 317 of file acsexmplMountImpl.cpp.

References __objfix_action::az, and __objfix_action::elev.

void SlowMount::objfix ( CORBA::Double  az,
CORBA::Double  elev,
ACS::CBvoid_ptr  callBack,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

(Pre)sets a new non-moving position for the antenna.

The position coordinates are given in azimuth and elevation. The actual az and elev values are written to the properties cmdAz, cmdEl, actAz and actEl.

This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling Mount::objfixAction(...). The given callback is used to inform the caller when the action is performed.

Parameters:
az position azimuth (degree)
elev position elevation (degree)
callBack Callback when action has finished.
desc Callback used for holding information on timeout periods
Returns:
void

Definition at line 357 of file acsexmplSlowMountImpl.cpp.

References __objfix_action::az, and __objfix_action::elev.

virtual baci::ActionRequest SlowMount::objfixAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchronous MOUNT_ACS::Mount::objfix() method This is the function that actually runs objfix(...) and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


virtual baci::ActionRequest Mount::objfixAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchronous MOUNT_ACS::Mount::objfix() method This is the function that actually runs objfix(...) and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


void SlowMount::obstar ( CORBA::Double  ra,
CORBA::Double  dec,
CORBA::Double  pmRa,
CORBA::Double  pmDec,
CORBA::Double  radVel,
CORBA::Double  par,
MOUNT_ACS::Mount::coordType  type,
ACS::CBvoid_ptr  callBack,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

(Pre)sets a new equatorial source for the antenna to track.

The source position is given in geocentric equatorial J2000 coordinates. The actual ra and dec coordinates are written to the properties cmdAz, cmdEl, actAz and actEl.

This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling Mount::obstarAction(...). The given callback is used to inform the caller when the action is performed.

Parameters:
ra source right ascension (hour)
dec source declination (hour)
pmRa source sky proper motion in right ascension (arc-sec/year)
pmDec source sky proper motion in declination (arc-sec/year)
radVel source radial velocity (kilometer/sec)
par source parallax correction (arc-sec)
type Apparent or Mean
callBack Callback when action has finished.
desc Callback used for holding information on timeout periods
Returns:
void

Definition at line 330 of file acsexmplSlowMountImpl.cpp.

References __obstar_action::dec, __obstar_action::par, __obstar_action::pmDec, __obstar_action::pmRa, __obstar_action::ra, __obstar_action::radVel, and __obstar_action::type.

void Mount::obstar ( CORBA::Double  ra,
CORBA::Double  dec,
CORBA::Double  pmRa,
CORBA::Double  pmDec,
CORBA::Double  radVel,
CORBA::Double  par,
MOUNT_ACS::Mount::coordType  type,
ACS::CBvoid_ptr  callBack,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

(Pre)sets a new equatorial source for the antenna to track.

The source position is given in geocentric equatorial J2000 coordinates. The actual ra and dec coordinates are written to the properties cmdAz, cmdEl, actAz and actEl.

This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling Mount::obstarAction(...). The given callback is used to inform the caller when the action is performed.

Parameters:
ra source right ascension (hour)
dec source declination (hour)
pmRa source sky proper motion in right ascension (arc-sec/year)
pmDec source sky proper motion in declination (arc-sec/year)
radVel source radial velocity (kilometer/sec)
par source parallax correction (arc-sec)
type Apparent or Mean
callBack Callback when action has finished.
desc Callback used for holding information on timeout periods
Returns:
void

Definition at line 291 of file acsexmplMountImpl.cpp.

References __obstar_action::dec, __obstar_action::par, __obstar_action::pmDec, __obstar_action::pmRa, __obstar_action::ra, __obstar_action::radVel, and __obstar_action::type.

virtual baci::ActionRequest SlowMount::obstarAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchronous MOUNT_ACS::Mount::obstar() method This is the function that actually runs obstar(...) and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


virtual baci::ActionRequest Mount::obstarAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchronous MOUNT_ACS::Mount::obstar() method This is the function that actually runs obstar(...) and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


void PowerSupply::off ( ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Switches off the power supply.

Implementation of IDL off() interface. This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling PowerSupply::offAction The given callback is used to inform the caller when the action is performed.

Parameters:
cb Callback when action has finished.
desc Callback used for holding information on timeout periods

Definition at line 243 of file acsexmplPowerSupplyImpl.cpp.

References OFF_ACTION.

void FridgeControl::off (  )  [virtual, inherited]

Turn off the fridge.

Returns:
void

Definition at line 240 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_controlLoop_p, FridgeControl::m_powerStatus_sp, and FRIDGE::OFF.

Referenced by FridgeControl::cleanUp().

void Lamp::off ( ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Switches off the lamp.

Implementation of IDL off() interface. This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling Lamp::offAction The given callback is used to inform the caller when the action is performed.

Parameters:
callBack Callback when action has finished.
desc Callback used for holding information on timeout periods.

Definition at line 161 of file acsexmplLampImpl.cpp.

References Lamp::off(), and OFF_ACTION.

Referenced by Lamp::off().

virtual baci::ActionRequest PowerSupply::offAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of async.

off() method This is the function that actually switches off the PowerSupply and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by baci::BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


virtual baci::ActionRequest Lamp::offAction ( baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchrnous acsexmplLamp::Lamp::off() method This is the function that actually switches off the Lamp and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


void PowerSupply::on ( ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Switches on the power supply.

Implementation of IDL on() interface. This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling PowerSupply::onAction The given callback is used to inform the caller when the action is performed.

Parameters:
cb Callback when action has finished.
desc Callback used for holding information on timeout periods

Definition at line 234 of file acsexmplPowerSupplyImpl.cpp.

References ON_ACTION.

void FridgeControl::on (  )  [virtual, inherited]

Turn on the fridge.

Returns:
void

Definition at line 217 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_controlLoop_p, FridgeControl::m_powerStatus_sp, and FRIDGE::ON.

void Lamp::on ( ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Switches on the lamp.

Implementation of IDL on() interface. This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling Lamp::onAction The given callback is used to inform the caller when the action is performed.

Parameters:
callBack Callback when action has finished.
desc Callback used for holding information on timeout periods

Definition at line 152 of file acsexmplLampImpl.cpp.

References Lamp::on(), and ON_ACTION.

Referenced by Lamp::on().

virtual baci::ActionRequest PowerSupply::onAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of async.

on() method This is the function that actually switches on the PowerSupply and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by baci::BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


virtual baci::ActionRequest Lamp::onAction ( baci::BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynchronous acsexmplLamp::Lamp::on() method This is the function that actually switches on the Lamp and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
cob Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


void DoorThread::onStart (  )  [virtual, inherited]

Definition at line 72 of file acsexmplDoorImpl.cpp.

void DoorThread::onStop (  )  [virtual, inherited]

Definition at line 142 of file acsexmplDoorImpl.cpp.

void Door::open ( ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Opens the door Implementation of IDL open() interface.

This method just registers the request in the asyncronous queue together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling Door::openAction The given callback is used to inform the caller when the action is performed.

Parameters:
cb callback when action has finished
desc callback used for holding information on timeout periods
Returns:
void

Definition at line 370 of file acsexmplDoorImpl.cpp.

References OPEN_ACTION.

void FridgeControl::open (  )  [virtual, inherited]

Open the door.

Returns:
void

Definition at line 255 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_doorStatus_sp, and FRIDGE::OPEN.

virtual baci::ActionRequest Door::openAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of asynch.

open() method This is the function that actually opens the Door and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p owner of the action
callbackID id of the callback to be notified
descIn callback descriptor (passed by client)
value_p action data (e.g., parameters to the original CORBA method)
completion error handing structure
descOut callback descriptor which will be passed to client
Returns:
request to be performed by BACI
  • reqNone - do nothing (action will be kept in queue)
  • reqInvokeWorking - invoke <type>Callback::working
  • reqInvokeDone - invoke <type>Callback::done and destroy callback
  • reqDestroy - destroy callback (callback should has been called already by function)


void Building::openFrontDoor (  )  [virtual, inherited]

Opens the FRONTDOOR Implementation of the IDL openFrontDoor() interface.

Returns:
void

Definition at line 140 of file acsexmplBuildingImpl.cpp.

References Building::m_door_p.

void PowerSupply::operator= ( const PowerSupply  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void FilterWheel::operator= ( const FilterWheel  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void Calendar::operator= ( const Calendar  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void Door::operator= ( const Door  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void Lamp::operator= ( const Lamp  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void FridgeControl::operator= ( const FridgeControl  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void AmsTestSeq::operator= ( const AmsTestSeq  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void Building::operator= ( const Building  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void RampedPowerSupply::operator= ( const RampedPowerSupply  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void SlowMount::operator= ( const SlowMount  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void Mount::operator= ( const Mount  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void LampWheel::operator= ( const LampWheel  )  [private, inherited]

ALMA C++ coding standards state copy operators should be disabled.

void ErrorComponent::outCompletion ( ACSErr::Completion_out  comp  )  [inherited]

Simple method that returns an ACSErr::Completion as an out parameter.

Parameters:
comp Completion as out parameter

Definition at line 269 of file acsexmplErrorComponentImpl.cpp.

ACS::ROdouble_ptr FilterWheel::position (  )  [virtual, inherited]

Returns a reference to the position property Implementation of IDL interface for the property.



Definition at line 569 of file acsexmplFilterWheelImpl.cpp.

References FilterWheel::m_position_sp.

ACS::ROdouble_ptr Door::position (  )  [virtual, inherited]

Property for readback m_position_p Implementation of IDL interface for the property.

Returns:
Read-only double pointer to the door's current position

Definition at line 435 of file acsexmplDoorImpl.cpp.

References Door::m_position_sp.

ACS::ROdouble_ptr LampWheel::position (  )  [virtual, inherited]

Returns a reference to the position property Implementation of IDL interface for the property.



Definition at line 463 of file acsexmplLampWheelImpl.cpp.

References LampWheel::m_position_sp.

FRIDGE::ROOnOffStates_ptr FridgeControl::powerStatus (  )  [virtual, inherited]

Property powerStatus shows whether the power is on or off.

Returns:
Reference to the BACI property

Definition at line 287 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_powerStatus_sp.

Referenced by FridgeControl::cleanUp().

ACS::RWstring_ptr RampedPowerSupply::rampingStatus (  )  [virtual, inherited]

Returns a reference to the rampingStatus property (status).

Implementation of IDL interface for the property.

Returns:
a pointer to the BACI property

Definition at line 218 of file acsexmplRampedPowerSupplyImpl.cpp.

References RampedPowerSupply::m_rampingStatus_sp, and PowerSupply::m_status_sp.

ACS::ROlong_ptr RampedPowerSupply::rampingStep (  )  [virtual, inherited]

Returns a reference to the rampingStep property.

Implementation of IDL interface for the property.

Returns:
a pointer to the BACI property

Definition at line 230 of file acsexmplRampedPowerSupplyImpl.cpp.

References RampedPowerSupply::m_rampingStep_sp.

ACS::ROdouble_ptr PowerSupply::readback (  )  [virtual, inherited]

Returns a reference to the readback_p property (actual current).

Implementation of IDL interface for the property.

Returns:
a pointer to the property

Definition at line 273 of file acsexmplPowerSupplyImpl.cpp.

References PowerSupply::m_readback_sp.

void FilterWheel::readConfiguration ( Descriptor descr  )  [private, inherited]

Read the CDB to build the actual configuration of the wheel.

Parameters:
descr The list of descriptor describing the actual configuration of the wheel

Definition at line 72 of file acsexmplFilterWheelImpl.cpp.

References Descriptor::delta, Descriptor::filterName, FilterWheel::m_fullName, FilterWheel::m_slots_sp, and Descriptor::step.

Referenced by FilterWheel::execute().

ACS::RWdouble_ptr Door::ref_position (  )  [virtual, inherited]

Property for reference position Implementation of IDL interface for the property.

Returns:
Read/write double pointer to where the door should be physically located

Definition at line 423 of file acsexmplDoorImpl.cpp.

References Door::m_ref_position_sp.

ACS::RWdouble_ptr FridgeControl::refTemperature (  )  [virtual, inherited]

Property refTemperature is like a thermostat for the fridge.

Returns:
Reference to the BACI property

Definition at line 275 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_refTemperature_sp.

Referenced by FridgeControl::loadData().

void PowerSupply::reset ( ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Resets the power supply.

Implementation of IDL reset() interface. This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling PowerSupply::resetAction The given callback is used to inform the caller when the action is performed.

Parameters:
cb Callback when action has finished.
desc Callback used for holding information on timeout periods

Definition at line 252 of file acsexmplPowerSupplyImpl.cpp.

References RESET_ACTION.

virtual baci::ActionRequest PowerSupply::resetAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of async.

reset() method This is the function that actually resets the PowerSupply and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


int LampWheel::retrieveConfigurationFromCDB ( std::list< SlotDescriptor > &  config  )  [private, inherited]

Read the CDB and fill the list with the actual configuration of each slot.

Read the configuration from the CDB parsing the xml file of the component It uses expat to parse the file.

Parameters:
config The list describing the configuration
Returns:
The number of slots found in the CDB

ACS library allows to read all the fields of each defined component property but it is not a xml parser i.e. we need to parse the file by ourself. If something went wrong while parsing the file, or setting up the parser the method exits after logging a message. It is not a real wheel of course so I did not take care of all the possible errors like for example inconsistency, duplicate slots definition in the CDB and so on...

Parameters:
config is the list to store the slots into
Returns:
the number of slots inserted into the list

Definition at line 113 of file acsexmplLampWheelImpl.cpp.

References LampWheel::char_hndl(), LampWheel::end_hndl(), LampWheel::m_fullName, LampWheel::start_hndl(), and ParserStruct::wheelDescriptor.

Referenced by LampWheel::execute().

ACS::ROdoubleSeq_ptr AmsTestSeq::ROdoubleSeqPM (  )  [virtual, inherited]

Returns a reference to the ROdoubleSeqPM property Implementation of IDL interface for the property.



Definition at line 158 of file acsexmplAmsSeqImpl.cpp.

References AmsTestSeq::m_ROdoubleSeqPM_p.

void DoorThread::runLoop (  )  [virtual, inherited]
void FridgeThread::runLoop (  )  [virtual, inherited]

Definition at line 79 of file acsexmplFridgeImpl.cpp.

References LOCAL_LOGGING_LEVEL.

ACS::RWdoubleSeq_ptr AmsTestSeq::RWdoubleSeqPM (  )  [virtual, inherited]

Returns a reference to the RWdoubleSeqPM property Implementation of IDL interface for the property.



Definition at line 146 of file acsexmplAmsSeqImpl.cpp.

References AmsTestSeq::m_RWdoubleSeqPM_p.

void AmsTestSeq::setCoeff (  )  [virtual, inherited]

Sets the coefficients of the pointing model.

Returns:
void

Here m_RWdoubleSeqPM_p is actually set into m_ROdoubleSeqPM_p.

Definition at line 114 of file acsexmplAmsSeqImpl.cpp.

References AmsTestSeq::m_ROdoubleSeqPM_p, and AmsTestSeq::m_RWdoubleSeqPM_p.

void ErrorComponent::sleepingCmd ( CORBA::Short  nb_seconds  )  [inherited]

A method that will sleep during nb_seconds seconds before to return This method could be used to test the behavior of components taking a long time before to reply.

Parameters:
nb_seconds the number of seconds to sleep before to return

Definition at line 434 of file acsexmplErrorComponentImpl.cpp.

ACS::ROlong_ptr FilterWheel::slots (  )  [virtual, inherited]

Returns a reference to the descavailableSlots property Implementation of IDL interface for the property.



Definition at line 593 of file acsexmplFilterWheelImpl.cpp.

References FilterWheel::m_slots_sp.

ACS::ROlong_ptr LampWheel::slots (  )  [virtual, inherited]

Returns a reference to the descavailableSlots property Implementation of IDL interface for the property.



Definition at line 487 of file acsexmplLampWheelImpl.cpp.

References LampWheel::m_slots_sp.

void LampWheel::start_hndl ( void *  data,
const XML_Char *  el,
const XML_Char **  attr 
) [static, private, inherited]
void RampedPowerSupply::startRamping ( CORBA::Long  rampingSteps,
ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Starts ramping the power supply.

Implementation of IDL startRamping() interface. This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling RampedPowerSupply::startRampingAction The given callback is used to inform the caller when the action is performed.

Parameters:
cb Callback when action has finished.
desc Callback used for holding information on timeout periods

Definition at line 201 of file acsexmplRampedPowerSupplyImpl.cpp.

References RampedPowerSupply::START_RAMPING.

virtual baci::ActionRequest RampedPowerSupply::startRampingAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of async.

startRamping() method This is the function that actually starts ramping and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


acsexmplCalendar::ROStateEnum_ptr Calendar::state (  )  [inherited]

Returns a reference to the state property Implementation of IDL interface for the property.



Definition at line 95 of file acsexmplCalendarImpl.cpp.

References Calendar::m_state_sp.

ACS::ROpattern_ptr PowerSupply::status (  )  [virtual, inherited]

Returns a reference to the status_p property (see acsexmplPowerSupplyImpl.cpp).

Implementation of IDL interface for the property.

Returns:
a pointer to the property

Definition at line 286 of file acsexmplPowerSupplyImpl.cpp.

References PowerSupply::m_status_sp.

void RampedPowerSupply::stopRamping ( ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual, inherited]

Stops ramping the power supply.

Implementation of IDL stopRamping() interface. This method just registers the request in the asyncronous queue, together with the associated callback and returns control immediatly. The actual action will be invoked asyncronously by the asynchonous call manager by calling RampedPowerSupply::stopAction The given callback is used to inform the caller when the action is performed.

Parameters:
cb Callback when action has finished.
desc Callback used for holding information on timeout periods

Definition at line 210 of file acsexmplRampedPowerSupplyImpl.cpp.

References RampedPowerSupply::STOP_RAMPING.

virtual baci::ActionRequest RampedPowerSupply::stopRampingAction ( baci::BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn &  descIn,
baci::BACIValue *  value_p,
Completion &  completion,
CBDescOut &  descOut 
) [virtual, inherited]

Implementation of async.

stopRamping() method This is the function that actually stops ramping and, when completed, invokes the callback installed by the client when it requested the action.

Parameters:
component_p Owner of the action.
callbackID ID of the callback to be notified.
descIn Callback descriptor (passed by client).
value_p Action data (e.g. value to be set).
completion Error handing structure.
descOut Callback descriptor which will be passed to client.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


ACS::ROlong_ptr Door::substate (  )  [virtual, inherited]

Property for substate Implementation of IDL interface for the property.

Returns:
Read-only long integer pointer to the door's present state

Definition at line 447 of file acsexmplDoorImpl.cpp.

References Door::m_substate_sp.

Referenced by Door::checkSubstate().

void ErrorComponent::typeException ( CORBA::Short  depth  )  [virtual, inherited]

This method throws a REMOTE (CORBA) type exception if depth>0.

If we want to throw a type exception we have to specfy this in the method signature. In this example the method can throw: ACSErrTypeCommon::GenericErrorEx or ACSErrTypeCommon::ACSErrTypeCommonEx exceptions. Although GenericErrorEx derives from ACSErrTypeCommonEx we have to specfy both in the method signature because IDL does not support hierarchy of exceptions.

Parameters:
depth depth of the error trace
Exceptions:
ACSErrTypeCommon::GenericErrorEx 
ACSErrTypeCommon::ACSErrTypeCommonEx 

Definition at line 101 of file acsexmplErrorComponentImpl.cpp.

References ErrorComponent::buildErrorTrace().

void FilterWheel::updateFilter ( ACE_CString  name,
int  delta 
) [private, inherited]

Permanently write the new delta for the given filter in the CDB.

Parameters:
name The name of the filter
delta The new offset for the filter

Definition at line 153 of file acsexmplFilterWheelImpl.cpp.

References FilterWheel::m_fullName.

Referenced by FilterWheel::calibrateFilter().

void FridgeControl::updateTemperature (  )  [inherited]

Updates the temperature from the physical device.

Returns:
void

Definition at line 181 of file acsexmplFridgeImpl.cpp.

References FridgeControl::loadData(), LOCAL_LOGGING_LEVEL, FridgeControl::m_currTemperature_sp, and FridgeControl::m_refTemperature_sp.

void FilterWheel::updateWheel ( int  slot,
int  step 
) [private, inherited]

Permanently write the new position for the given slot in the CDB.

Parameters:
slot,: The number of the slot to update
step,: the new position of the slot

Definition at line 175 of file acsexmplFilterWheelImpl.cpp.

References FilterWheel::m_fullName.

Referenced by FilterWheel::calibrateWheel().

ACS::ROstring_ptr Building::version (  )  [virtual, inherited]

Returns a reference to the version property Implementation of IDL interface for the property.

Returns:
A pointer to the string containing the version number

Definition at line 183 of file acsexmplBuildingImpl.cpp.

References Building::m_version_sp.

ACS::ROstring_ptr Door::version (  )  [virtual, inherited]

Property for version Implementation of IDL interface for the property.

Returns:
Read-only string pointer to the door implementation's version

Definition at line 459 of file acsexmplDoorImpl.cpp.

References Door::m_version_sp.

ACS::RWpattern_ptr Calendar::yearAttributes (  )  [inherited]

Returns a reference to the yearAttributes property Implementation of IDL interface for the property.



Definition at line 83 of file acsexmplCalendarImpl.cpp.

References Calendar::m_yearAttributes_sp.

AmsTestSeq::~AmsTestSeq (  )  [virtual, inherited]

Destructor.

Definition at line 83 of file acsexmplAmsSeqImpl.cpp.

References AmsTestSeq::m_ROdoubleSeqPM_p, and AmsTestSeq::m_RWdoubleSeqPM_p.

Building::~Building (  )  [virtual, inherited]

Destructor.

Definition at line 127 of file acsexmplBuildingImpl.cpp.

Calendar::~Calendar (  )  [virtual, inherited]

Destructor.

Definition at line 52 of file acsexmplCalendarImpl.cpp.

ConstrErrorHelloWorld::~ConstrErrorHelloWorld (  )  [virtual, inherited]

Destructor.

Definition at line 50 of file acsexmplConstrErrorHelloWorld.cpp.

Door::~Door (  )  [virtual, inherited]

Destructor.

Definition at line 193 of file acsexmplDoorImpl.cpp.

References Door::m_doorThread_p.

DoorThread::~DoorThread (  )  [inline, inherited]

Definition at line 79 of file acsexmplDoorImpl.h.

ErrorComponent::~ErrorComponent (  )  [virtual, inherited]

Destructor.

Definition at line 49 of file acsexmplErrorComponentImpl.cpp.

FilterWheel::~FilterWheel (  )  [virtual, inherited]

Destructor.

Definition at line 67 of file acsexmplFilterWheelImpl.cpp.

FridgeControl::~FridgeControl (  )  [virtual, inherited]

Destructor.

Definition at line 122 of file acsexmplFridgeImpl.cpp.

References FridgeControl::m_controlLoop_p.

FridgeThread::~FridgeThread (  )  [inline, inherited]

Definition at line 132 of file acsexmplFridgeImpl.h.

HelloWorld::~HelloWorld (  )  [virtual, inherited]

Destructor.

Definition at line 48 of file acsexmplHelloWorldImpl.cpp.

InitErrorHelloWorld::~InitErrorHelloWorld (  )  [virtual, inherited]

Destructor.

Definition at line 48 of file acsexmplInitErrorHelloWorld.cpp.

Lamp::~Lamp (  )  [virtual, inherited]

Destructor.

Definition at line 68 of file acsexmplLampImpl.cpp.

References Lamp::~Lamp().

Referenced by Lamp::~Lamp().

LampWheel::~LampWheel (  )  [virtual, inherited]

Destructor.

Definition at line 64 of file acsexmplLampWheelImpl.cpp.

Mount::~Mount (  )  [virtual, inherited]

Destructor.

Definition at line 90 of file acsexmplMountImpl.cpp.

PowerSupply::~PowerSupply (  )  [virtual, inherited]

Destructor.

Definition at line 86 of file acsexmplPowerSupplyImpl.cpp.

RampedPowerSupply::~RampedPowerSupply (  )  [inherited]

Destructor.

Definition at line 64 of file acsexmplRampedPowerSupplyImpl.cpp.

References RampedPowerSupply::m_rampingStep_devio_p.

SlowMount::~SlowMount (  )  [virtual, inherited]

Destructor.

Definition at line 81 of file acsexmplSlowMountImpl.cpp.


Variable Documentation

int Descriptor::delta [inherited]
Door* DoorThread::door_p [private, inherited]

Definition at line 91 of file acsexmplDoorImpl.h.

Referenced by DoorThread::DoorThread(), and DoorThread::runLoop().

char Descriptor::filterName[128] [inherited]

Definition at line 138 of file acsexmplFridgeImpl.h.

Referenced by FridgeThread::FridgeThread().

char SlotDescriptor::lampName[128] [inherited]

Definition at line 51 of file acsexmplLampWheelImpl.h.

Referenced by LampWheel::start_hndl().

int FridgeThread::loopCounter_m [protected, inherited]

Definition at line 137 of file acsexmplFridgeImpl.h.

Referenced by FridgeThread::FridgeThread().

baci::SmartPropertyPointer<baci::ROdouble> Mount::m_actAz_sp [private, inherited]

m_actAz_sp is the antenna's actual azimuth

Definition at line 391 of file acsexmplMountImpl.h.

Referenced by Mount::actAz().

baci::SmartPropertyPointer<baci::ROdouble> SlowMount::m_actAz_sp [private, inherited]

m_actAz_sp is the antenna's actual azimuth

Definition at line 376 of file acsexmplSlowMountImpl.h.

Referenced by SlowMount::actAz().

baci::SmartPropertyPointer<baci::ROdouble> Mount::m_actEl_sp [private, inherited]

m_actEl_sp is the antenna's actual elevation

Definition at line 396 of file acsexmplMountImpl.h.

Referenced by Mount::actEl().

baci::SmartPropertyPointer<baci::ROdouble> SlowMount::m_actEl_sp [private, inherited]

m_actEl_sp is the antenna's actual elevation

Definition at line 381 of file acsexmplSlowMountImpl.h.

Referenced by SlowMount::actEl().

ActionFunction Mount::m_actions[2] [private, inherited]

Please see ActionFunction.

m_actions[0] = obstarAction(...) m_actions[1] = objfixAction(...)

Definition at line 376 of file acsexmplMountImpl.h.

Referenced by Mount::Mount().

ActionFunction SlowMount::m_actions[2] [private, inherited]

Please see ActionFunction.

m_actions[0] = obstarAction(...) m_actions[1] = objfixAction(...)

Definition at line 361 of file acsexmplSlowMountImpl.h.

Referenced by SlowMount::SlowMount().

baci::SmartPropertyPointer<baci::RWdouble> Lamp::m_brightness_sp [private, inherited]

m_brightness_sp is the lamp's setable brightness.

Definition at line 277 of file acsexmplLampImpl.h.

Referenced by Lamp::brightness().

baci::SmartPropertyPointer<baci::ROdouble> Mount::m_cmdAz_sp [private, inherited]

m_cmdAz_sp is the antenna's commanded azimuth

Definition at line 381 of file acsexmplMountImpl.h.

Referenced by Mount::cmdAz().

baci::SmartPropertyPointer<baci::ROdouble> SlowMount::m_cmdAz_sp [private, inherited]

m_cmdAz_sp is the antenna's commanded azimuth

Definition at line 366 of file acsexmplSlowMountImpl.h.

Referenced by SlowMount::cmdAz().

baci::SmartPropertyPointer<baci::ROdouble> Mount::m_cmdEl_sp [private, inherited]

m_cmdEl_sp is the antenna's commanded elevation

Definition at line 386 of file acsexmplMountImpl.h.

Referenced by Mount::cmdEl().

baci::SmartPropertyPointer<baci::ROdouble> SlowMount::m_cmdEl_sp [private, inherited]

m_cmdEl_sp is the antenna's commanded elevation

Definition at line 371 of file acsexmplSlowMountImpl.h.

Referenced by SlowMount::cmdEl().

m_controlLoop_p is only started once the fridge has been turned on().

This thread is used to simulate the fridge's temperature trying to reach equillibrium with the reference temperature. Once the fridge has been turned off(), this thread is suspended.

Definition at line 337 of file acsexmplFridgeImpl.h.

Referenced by FridgeControl::cleanUp(), FridgeControl::off(), FridgeControl::on(), and FridgeControl::~FridgeControl().

baci::SmartPropertyPointer<PowerSupplyCurrent> PowerSupply::m_current_sp [private, inherited]

m_current_sp is the commanded current.

Definition at line 395 of file acsexmplPowerSupplyImpl.h.

Referenced by PowerSupply::current().

baci::SmartPropertyPointer<baci::ROdouble> FridgeControl::m_currTemperature_sp [private, inherited]

m_currTemperature_p is the temperature the fridge actually is.

Definition at line 329 of file acsexmplFridgeImpl.h.

Referenced by FridgeControl::currTemperature(), and FridgeControl::updateTemperature().

baci::SmartPropertyPointer< RWEnumImpl<ACS_ENUM_T(acsexmplCalendar::DaysEnum), POA_acsexmplCalendar::RWDaysEnum> > Calendar::m_day_sp [private, inherited]

m_day_sp represents the day of the year.

Definition at line 174 of file acsexmplCalendarImpl.h.

Referenced by Calendar::day().

baci::SmartPropertyPointer<baci::ROstring> FilterWheel::m_desc_sp [private, inherited]

m_desc_sp is the description of the wheel.

Definition at line 479 of file acsexmplFilterWheelImpl.h.

Referenced by FilterWheel::desc(), and FilterWheel::initialize().

baci::SmartPropertyPointer<baci::ROstring> LampWheel::m_desc_sp [private, inherited]

m_desc_sp is the description of the wheel.

Definition at line 370 of file acsexmplLampWheelImpl.h.

Referenced by LampWheel::desc(), and LampWheel::initialize().

acsexmplBuilding::Door_var Building::m_door_p [private, inherited]

The door that belongs to this building.

Definition at line 225 of file acsexmplBuildingImpl.h.

Referenced by Building::cleanUp(), Building::closeFrontDoor(), Building::execute(), and Building::openFrontDoor().

baci::SmartPropertyPointer< ROEnumImpl<ACS_ENUM_T(FRIDGE::OpClStates), POA_FRIDGE::ROOpClStates> > FridgeControl::m_doorStatus_sp [private, inherited]

The fridge's door can be either opened or closed.

Definition at line 324 of file acsexmplFridgeImpl.h.

Referenced by FridgeControl::close(), FridgeControl::doorStatus(), and FridgeControl::open().

DoorThread* Door::m_doorThread_p [private, inherited]

Definition at line 422 of file acsexmplDoorImpl.h.

Referenced by Door::execute(), and Door::~Door().

nc::SimpleSupplier* FridgeControl::m_FridgeSupplier_p [private, inherited]

This is the Supplier derived class used to publish data to the event channel.

Definition at line 342 of file acsexmplFridgeImpl.h.

Referenced by FridgeControl::cleanUp(), FridgeControl::FridgeControl(), and FridgeControl::loadData().

ACE_CString FilterWheel::m_fullName [private, inherited]
ACE_CString LampWheel::m_fullName [private, inherited]
std::list<SlotDescriptor> LampWheel::m_lampWheelConfiguration [private, inherited]

The list of descriptions of each slot of the wheel: it is the configuration of the lampWheel It is built reading the CDB.

Definition at line 383 of file acsexmplLampWheelImpl.h.

Referenced by LampWheel::cleanUp(), and LampWheel::execute().

baci::SmartPropertyPointer< RWEnumImpl<ACS_ENUM_T(acsexmplCalendar::MonthEnum), POA_acsexmplCalendar::RWMonthEnum> > Calendar::m_month_sp [private, inherited]

m_month_sp represents the month of the year.

Definition at line 181 of file acsexmplCalendarImpl.h.

Referenced by Calendar::month().

baci::SmartPropertyPointer<baci::ROdouble> LampWheel::m_position_sp [private, inherited]

m_position_sp is the position of the wheel.

Definition at line 365 of file acsexmplLampWheelImpl.h.

Referenced by LampWheel::initialize(), and LampWheel::position().

baci::SmartPropertyPointer<baci::ROdouble> FilterWheel::m_position_sp [private, inherited]

m_position_sp is the position of the wheel.

Definition at line 474 of file acsexmplFilterWheelImpl.h.

Referenced by FilterWheel::calibrateFilter(), FilterWheel::calibrateWheel(), FilterWheel::initialize(), and FilterWheel::position().

baci::SmartPropertyPointer<baci::ROdouble> Door::m_position_sp [private, inherited]

m_position_sp is the Door's actual position

Definition at line 406 of file acsexmplDoorImpl.h.

Referenced by Door::position(), and DoorThread::runLoop().

baci::SmartPropertyPointer<ROEnumImpl< ACS_ENUM_T(FRIDGE::OnOffStates), POA_FRIDGE::ROOnOffStates> > FridgeControl::m_powerStatus_sp [private, inherited]

The fridge can be either turned on or off.

Definition at line 317 of file acsexmplFridgeImpl.h.

Referenced by FridgeControl::off(), FridgeControl::on(), and FridgeControl::powerStatus().

baci::SmartPropertyPointer<baci::RWstring> RampedPowerSupply::m_rampingStatus_sp [private, inherited]

m_rampingStatus_p is the RampedPowerSupply's status in the ramping process.

Definition at line 317 of file acsexmplRampedPowerSupplyImpl.h.

Referenced by RampedPowerSupply::rampingStatus().

DevIO<CORBA::Long>* RampedPowerSupply::m_rampingStep_devio_p [private, inherited]

m_rampingStep_devio_p is the DevIO subclass passed to the RampingStep property when it is created.

Essentially the DevIO is used to interact with hardware directly without tying ACS to any specific hardware drivers resulting in added flexibility. Please see acsexmplLongDevIO.h to understand exactly how this is accomplished.

Definition at line 312 of file acsexmplRampedPowerSupplyImpl.h.

Referenced by RampedPowerSupply::~RampedPowerSupply().

baci::SmartPropertyPointer<baci::ROlong> RampedPowerSupply::m_rampingStep_sp [private, inherited]

m_rampingStep_p is the RampedPowerSupply's present step in the ramping process.

Definition at line 304 of file acsexmplRampedPowerSupplyImpl.h.

Referenced by RampedPowerSupply::rampingStep().

baci::SmartPropertyPointer<baci::ROdouble> PowerSupply::m_readback_sp [private, inherited]

m_readback_sp is the actual value of PowerSupply's current.

Definition at line 390 of file acsexmplPowerSupplyImpl.h.

Referenced by PowerSupply::readback().

baci::SmartPropertyPointer<baci::RWdouble> Door::m_ref_position_sp [private, inherited]

m_ref_position_sp is the position the Door should be in

Definition at line 401 of file acsexmplDoorImpl.h.

Referenced by Door::move(), Door::ref_position(), and DoorThread::runLoop().

baci::SmartPropertyPointer<baci::RWdouble> FridgeControl::m_refTemperature_sp [private, inherited]

m_refTemperature_sp is the temperature we want the fridge to be.

Definition at line 310 of file acsexmplFridgeImpl.h.

Referenced by FridgeControl::refTemperature(), and FridgeControl::updateTemperature().

baci::ROdoubleSeq* AmsTestSeq::m_ROdoubleSeqPM_p [private, inherited]

m_RWdoubleSeq_p is all the coefficients that the client can set.

Definition at line 196 of file acsexmplAmsSeqImpl.h.

Referenced by AmsTestSeq::execute(), AmsTestSeq::ROdoubleSeqPM(), AmsTestSeq::setCoeff(), and AmsTestSeq::~AmsTestSeq().

baci::RWdoubleSeq* AmsTestSeq::m_RWdoubleSeqPM_p [private, inherited]

m_ROdoubleSeqPM_p is all the coefficients currently set.

Definition at line 191 of file acsexmplAmsSeqImpl.h.

Referenced by AmsTestSeq::execute(), AmsTestSeq::RWdoubleSeqPM(), AmsTestSeq::setCoeff(), and AmsTestSeq::~AmsTestSeq().

baci::SmartPropertyPointer<baci::ROlong> LampWheel::m_slots_sp [private, inherited]

m_slots_sp is the number of available slots in the wheel

Definition at line 376 of file acsexmplLampWheelImpl.h.

Referenced by LampWheel::initialize(), and LampWheel::slots().

baci::SmartPropertyPointer<baci::ROlong> FilterWheel::m_slots_sp [private, inherited]

m_slots_sp is the number of available slots in the wheel

Definition at line 485 of file acsexmplFilterWheelImpl.h.

Referenced by FilterWheel::calibrateFilter(), FilterWheel::calibrateWheel(), FilterWheel::initialize(), FilterWheel::readConfiguration(), and FilterWheel::slots().

baci::SmartPropertyPointer< ROEnumImpl<ACS_ENUM_T(acsexmplCalendar::StateEnum), POA_acsexmplCalendar::ROStateEnum> > Calendar::m_state_sp [private, inherited]

m_state_sp represents how good are we with the plan this year...

Definition at line 188 of file acsexmplCalendarImpl.h.

Referenced by Calendar::state().

baci::SmartPropertyPointer<baci::ROpattern> PowerSupply::m_status_sp [protected, inherited]

m_status_sp is the PowerSupply's state (values are in CDB).

Definition at line 383 of file acsexmplPowerSupplyImpl.h.

Referenced by PowerSupply::execute(), RampedPowerSupply::rampingStatus(), and PowerSupply::status().

baci::SmartPropertyPointer<baci::ROlong> Door::m_substate_sp [private, inherited]

m_substate_sp is the state the door is currently in

See also:
acsexmplDoorImpl.cpp

Definition at line 412 of file acsexmplDoorImpl.h.

Referenced by Door::checkSubstate(), Door::execute(), DoorThread::runLoop(), and Door::substate().

baci::SmartPropertyPointer<baci::ROstring> Door::m_version_sp [private, inherited]

m_version_sp is the Door's current version

Definition at line 417 of file acsexmplDoorImpl.h.

Referenced by Door::execute(), and Door::version().

baci::SmartPropertyPointer<baci::ROstring> Building::m_version_sp [private, inherited]

m_version_sp is a string which shows the version of class Building being used.

Definition at line 220 of file acsexmplBuildingImpl.h.

Referenced by Building::execute(), and Building::version().

The array describing the actual configuration of the wheel: It is built by reading the CDB The number of item in the array is given by the number of available slots defined in the CDB.

Definition at line 493 of file acsexmplFilterWheelImpl.h.

Referenced by FilterWheel::calibrateFilter(), FilterWheel::calibrateWheel(), FilterWheel::cleanUp(), FilterWheel::execute(), and FilterWheel::initialize().

baci::SmartPropertyPointer<baci::RWpattern> Calendar::m_yearAttributes_sp [private, inherited]

m_yearAttributes_sp is the calendar's year "attribute"

Definition at line 167 of file acsexmplCalendarImpl.h.

Referenced by Calendar::yearAttributes().

unsigned int SlotDescriptor::pos [inherited]

Definition at line 54 of file acsexmplLampWheelImpl.h.

Referenced by LampWheel::char_hndl(), and LampWheel::start_hndl().

const int RampedPowerSupply::START_RAMPING = 3 [static, inherited]

One of these function IDs will be passed to invokeAction().

Definition at line 150 of file acsexmplRampedPowerSupplyImpl.h.

Referenced by RampedPowerSupply::startRamping().

const int RampedPowerSupply::STOP_RAMPING = 4 [static, inherited]

Definition at line 151 of file acsexmplRampedPowerSupplyImpl.h.

Referenced by RampedPowerSupply::stopRamping().

unsigned int SlotDescriptor::warmUpTime [inherited]

Definition at line 52 of file acsexmplLampWheelImpl.h.

Referenced by LampWheel::char_hndl(), and LampWheel::start_hndl().

unsigned int SlotDescriptor::watt [inherited]

Definition at line 53 of file acsexmplLampWheelImpl.h.

Referenced by LampWheel::char_hndl(), and LampWheel::start_hndl().