#include <acscourseMount4Impl.h>
Classes | |
struct | __objfix_action |
Public Member Functions | |
Mount4Impl (const ACE_CString &name, maci::ContainerServices *containerServices) | |
virtual | ~Mount4Impl () |
virtual baci::ActionRequest | invokeAction (int function, baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut) |
virtual baci::ActionRequest | objfixAction (baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut) |
virtual void | objfix (CORBA::Double az, CORBA::Double elev) |
virtual void | objfix_async (CORBA::Double az, CORBA::Double elev, ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc) |
virtual ACS::ROdouble_ptr | cmdAz () |
virtual ACS::ROdouble_ptr | cmdEl () |
virtual ACS::ROdouble_ptr | actAz () |
virtual ACS::ROdouble_ptr | actEl () |
Protected Member Functions | |
void | operator= (const Mount4Impl &) |
Protected Attributes | |
baci::SmartPropertyPointer < baci::ROdouble > | m_cmdAz_sp |
baci::SmartPropertyPointer < baci::ROdouble > | m_cmdEl_sp |
baci::SmartPropertyPointer < baci::ROdouble > | m_actAz_sp |
baci::SmartPropertyPointer < baci::ROdouble > | m_actEl_sp |
Friends | |
class | PositionControlThread |
Mount4Impl::Mount4Impl | ( | const ACE_CString & | name, | |
maci::ContainerServices * | containerServices | |||
) |
Constructor
poa | Poa which will activate this and also all other components. | |
name | component's name. This is also the name that will be used to find the | |
containerServices | the container services object for this component |
virtual Mount4Impl::~Mount4Impl | ( | ) | [virtual] |
Destructor
virtual ACS::ROdouble_ptr Mount4Impl::actAz | ( | ) | [virtual] |
Returns a reference to the actAz property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr Mount4Impl::actEl | ( | ) | [virtual] |
Returns a reference to the actEl property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr Mount4Impl::cmdAz | ( | ) | [virtual] |
Returns a reference to the cmdAz property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr Mount4Impl::cmdEl | ( | ) | [virtual] |
Returns a reference to the cmdEl property Implementation of IDL interface for the property.
virtual baci::ActionRequest Mount4Impl::invokeAction | ( | int | function, | |
baci::BACIComponent * | cob_p, | |||
const int & | callbackID, | |||
const CBDescIn & | descIn, | |||
baci::BACIValue * | value_p, | |||
Completion & | completion, | |||
CBDescOut & | descOut | |||
) | [virtual] |
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.
function | Action funtion to be invoked. | |
cob | Owner of the action. | |
callbackID | ID of the callback to be notified. | |
descIn | Callback descriptor (passed by client). | |
value | Action data (e.g. value to be set). | |
completion | Error handing structure. | |
descOut | Callback descriptor which will be passed to client. |
Implements baci::ActionImplementator.
virtual void Mount4Impl::objfix | ( | CORBA::Double | az, | |
CORBA::Double | elev | |||
) | [virtual] |
(Pre)sets a new non-moving position for the antenna. The position coordinates are given in azimuth and elevation. The actual az and elev values are written to the properties cmdAz, cmdEl, actAz and actEl.
az | position azimuth (degree) | |
elev | position elevation (degree) |
virtual void Mount4Impl::objfix_async | ( | CORBA::Double | az, | |
CORBA::Double | elev, | |||
ACS::CBvoid_ptr | cb, | |||
const ACS::CBDescIn & | desc | |||
) | [virtual] |
virtual baci::ActionRequest Mount4Impl::objfixAction | ( | baci::BACIComponent * | cob_p, | |
const int & | callbackID, | |||
const CBDescIn & | descIn, | |||
baci::BACIValue * | value_p, | |||
Completion & | completion, | |||
CBDescOut & | descOut | |||
) | [virtual] |
Implementation of asynchronous objfix() method This is the function that actually switches on the Lamp and, when completed, invokes the callback installed by the client when it requested the action.
cob | Owner of the action. | |
callbackID | ID of the callback to be notified. | |
descIn | Callback descriptor (passed by client). | |
value | Action data (e.g. value to be set). | |
completion | Error handing structure. | |
descOut | Callback descriptor which will be passed to client. |
void Mount4Impl::operator= | ( | const Mount4Impl & | ) | [protected] |
ALMA C++ coding standards state copy operators should be disabled.
friend class PositionControlThread [friend] |
The PositionControlThread class needs to access the private members of this class, and therefore is given friend status
m_actAz_p is the antenna's actual azimuth
m_actEl_p is the antenna's actual elevation
m_cmdAz_p is the antenna's commanded azimuth
m_cmdEl_p is the antenna's commanded elevation