RampedPowerSupply

NAME
SYNOPSIS
Detailed Description
Constructor & Destructor Documentation
Author

NAME

RampedPowerSupply −

SYNOPSIS

#include <acsexmplRampedPowerSupplyImpl.h>

Inherits PowerSupply.

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:

xxx() just registers the action and installs the callback

xxxAction() performs (asyncronously) the action and invokes the callback when finished. The RampedPowerSupply::invokeAction method is called by the asynchronous dispatcher whenever there is an xxx pending action and it calls the xxxAction corresponding method.

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

Author:

Matej Sekoranja, Jozef Stefan Institute, Slovenia

Version:

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

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.