#include <acsexmplPowerSupplyImpl.h>
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:
PowerSupply::PowerSupply | ( | const ACE_CString & | name, | |
maci::ContainerServices * | containerServices | |||
) |
Constructor
name | component name | |
containerService | A pointer to the container services |