Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes

RampedPowerSupply Class Reference
[ACS Components Examples]

#include <acsexmplRampedPowerSupplyImpl.h>

Inheritance diagram for RampedPowerSupply:
Inheritance graph
[legend]
Collaboration diagram for RampedPowerSupply:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RampedPowerSupply (const ACE_CString &name, maci::ContainerServices *containerServices)
 ~RampedPowerSupply ()
virtual baci::ActionRequest invokeAction (int function, baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
virtual baci::ActionRequest startRampingAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
virtual baci::ActionRequest stopRampingAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
virtual void startRamping (CORBA::Long rampingSteps, ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
virtual void stopRamping (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
virtual ACS::RWstring_ptr rampingStatus ()
virtual ACS::ROlong_ptr rampingStep ()

Static Public Attributes

static const int START_RAMPING = 3
static const int STOP_RAMPING = 4

Private Member Functions

void operator= (const RampedPowerSupply &)

Private Attributes

baci::SmartPropertyPointer
< baci::ROlong
m_rampingStep_sp
DevIO< CORBA::Long > * m_rampingStep_devio_p
baci::SmartPropertyPointer
< baci::RWstring
m_rampingStatus_sp

Detailed Description

Simulates the behavior of a ramped power supply by inheriting from Power Supply's IDL interface and C++ implementation. The class RampedPowerSupply simulates the behaviour of a ramped power supply and is derived from the PowerSupply IDL interface. This class shows how to utilize inheritance in both the C++ and IDL class/interface.

Asynchronous calls are implemented using the ...... pattern and the ..... support classes. For each xxx action defined in the IDL interface two methods are provided:

Class RampedPowerSupply also provides the properties rampingStatus and rampingSteps in addition to anything inherited from PowerSupply.

Author:
Matej Sekoranja, Jozef Stefan Institute, Slovenia
Version:
"@(#) $Id: acsexmplRampedPowerSupplyImpl.h,v 1.101 2008/10/01 04:30:47 cparedes Exp $"

Constructor & Destructor Documentation

RampedPowerSupply::RampedPowerSupply ( const ACE_CString &  name,
maci::ContainerServices containerServices 
)

Constructor

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

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