PowerSupply − |
#include <acsexmplPowerSupplyImpl.h> Inherits baci::CharacteristicComponentImpl, and baci::ActionImplementator. Inherited by RampedPowerSupply. |
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 |
Simulates the behavior of a power supply and overwrites an ACS property. The class PowerSupply simulates the behaviour of a power supply. It provides three methods: on, off and reset. It also provides the properties current, readback and status. 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 PowerSupply::invokeAction method is called by the asynchronous dispatcher whenever there is an xxx pending action and it calls the xxxAction corresponding method. |
Author: |
Matej Sekoranja, Jozef Stefan Institute, Slovenia |
Version: |
PowerSupply::PowerSupply (const ACE_CString & name, maci::ContainerServices * containerServices) Constructor |
Parameters: |
name component name |
Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code. |