#include <acsexmplPowerSupplyImpl.h>
Inheritance diagram for PowerSupply:
Public Member Functions | |
PowerSupply (const ACE_CString &name, maci::ContainerServices *containerServices) | |
virtual | ~PowerSupply () |
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 | onAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut) |
virtual baci::ActionRequest | offAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut) |
virtual baci::ActionRequest | resetAction (baci::BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut) |
virtual void | on (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc) |
virtual void | off (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc) |
virtual void | reset (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc) |
virtual ACS::RWdouble_ptr | current () |
virtual ACS::ROdouble_ptr | readback () |
virtual ACS::ROpattern_ptr | status () |
virtual void | execute () |
Protected Attributes | |
baci::SmartPropertyPointer< baci::ROpattern > | m_status_sp |
Private Member Functions | |
void | operator= (const PowerSupply &) |
Private Attributes | |
baci::SmartPropertyPointer< baci::ROdouble > | m_readback_sp |
baci::SmartPropertyPointer< PowerSupplyCurrent > | m_current_sp |
|
Constructor
|
|
Destructor |
|
Returns a reference to the current_p property (commanded current). Implementation of IDL interface for the property.
|
|
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).
Reimplemented from acscomponent::ACSComponentImpl.
|
|
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.
Implements baci::ActionImplementator.
Reimplemented in RampedPowerSupply.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
ALMA C++ coding standards state copy operators should be disabled. |
|
Returns a reference to the readback_p property (actual current). Implementation of IDL interface for the property.
|
|
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.
|
|
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.
|
|
Returns a reference to the status_p property (see acsexmplPowerSupplyImpl.cpp). Implementation of IDL interface for the property.
|
|
m_current_sp is the commanded current. |
|
m_readback_sp is the actual value of PowerSupply's current. |
|
m_status_sp is the PowerSupply's state (values are in CDB). |