ALMA Computing Group

Mount4Impl Class Reference

#include <acscourseMount4Impl.h>

List of all members.

Public Member Functions

 Mount4Impl (const ACE_CString &name, maci::ContainerServices *containerServices)
 Constructor.
virtual ~Mount4Impl ()
 Destructor.
virtual baci::ActionRequest invokeAction (int function, baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 Action dispatcher function This function is called whenever an asynchronous request has to be handled.
virtual baci::ActionRequest objfixAction (baci::BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, baci::BACIValue *value_p, Completion &completion, CBDescOut &descOut)
 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.
virtual void objfix (CORBA::Double az, CORBA::Double elev)
 (Pre)sets a new non-moving position for the antenna.
virtual void objfix_async (CORBA::Double az, CORBA::Double elev, ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc)
virtual ACS::ROdouble_ptr cmdAz ()
 Returns a reference to the cmdAz property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr cmdEl ()
 Returns a reference to the cmdEl property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr actAz ()
 Returns a reference to the actAz property Implementation of IDL interface for the property.
virtual ACS::ROdouble_ptr actEl ()
 Returns a reference to the actEl property Implementation of IDL interface for the property.

Protected Member Functions

void operator= (const Mount4Impl &)
 ALMA C++ coding standards state copy operators should be disabled.

Protected Attributes

baci::SmartPropertyPointer<
baci::ROdouble > 
m_cmdAz_sp
 m_cmdAz_p is the antenna's commanded azimuth
baci::SmartPropertyPointer<
baci::ROdouble > 
m_cmdEl_sp
 m_cmdEl_p is the antenna's commanded elevation
baci::SmartPropertyPointer<
baci::ROdouble > 
m_actAz_sp
 m_actAz_p is the antenna's actual azimuth
baci::SmartPropertyPointer<
baci::ROdouble > 
m_actEl_sp
 m_actEl_p is the antenna's actual elevation

Friends

class PositionControlThread
 The PositionControlThread class needs to access the private members of this class, and therefore is given friend status.

Classes

struct  __objfix_action


Detailed Description

Definition at line 102 of file acscourseMount4Impl.h.


Constructor & Destructor Documentation

Mount4Impl::Mount4Impl ( const ACE_CString &  name,
maci::ContainerServices *  containerServices 
)

Constructor.

Parameters:
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

Definition at line 81 of file acscourseMount4Impl.cpp.

References PositionControlThread.

Mount4Impl::~Mount4Impl (  )  [virtual]

Destructor.

Definition at line 99 of file acscourseMount4Impl.cpp.


Member Function Documentation

ACS::ROdouble_ptr Mount4Impl::actAz (  )  [virtual]

Returns a reference to the actAz property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property actAz

Definition at line 245 of file acscourseMount4Impl.cpp.

References m_actAz_sp.

ACS::ROdouble_ptr Mount4Impl::actEl (  )  [virtual]

Returns a reference to the actEl property Implementation of IDL interface for the property.

Returns:
pointer to read-only double property actEl

Definition at line 258 of file acscourseMount4Impl.cpp.

References m_actEl_sp.

ACS::ROdouble_ptr Mount4Impl::cmdAz (  )  [virtual]

Returns a reference to the cmdAz property Implementation of IDL interface for the property.

Returns:
pointer to read-write double property cmdAz

Definition at line 219 of file acscourseMount4Impl.cpp.

References m_cmdAz_sp.

ACS::ROdouble_ptr Mount4Impl::cmdEl (  )  [virtual]

Returns a reference to the cmdEl property Implementation of IDL interface for the property.

Returns:
pointer to read-only write property cmdEl

Definition at line 232 of file acscourseMount4Impl.cpp.

References m_cmdEl_sp.

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.

Parameters:
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.
Returns:
Request to be performed by BACI
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should have been called already by function).


Definition at line 110 of file acscourseMount4Impl.cpp.

References objfixAction().

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.

Parameters:
az position azimuth (degree)
elev position elevation (degree)
Returns:
void

Definition at line 181 of file acscourseMount4Impl.cpp.

References m_cmdAz_sp, and m_cmdEl_sp.

void Mount4Impl::objfix_async ( CORBA::Double  az,
CORBA::Double  elev,
ACS::CBvoid_ptr  cb,
const ACS::CBDescIn &  desc 
) [virtual]

Definition at line 203 of file acscourseMount4Impl.cpp.

References Mount4Impl::__objfix_action::az, and Mount4Impl::__objfix_action::elev.

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.

Parameters:
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.
Returns:
Request to be performed by BACI.
  • reqNone - Do nothing (action will be kept in queue).
  • reqInvokeWorking - Invoke <type>Callback::working.
  • reqInvokeDone - Invoke <type>Callback::done and destroy callback.
  • reqDestroy - Destroy callback (callback should has been called already by function).


Definition at line 135 of file acscourseMount4Impl.cpp.

References Mount4Impl::__objfix_action::az, Mount4Impl::__objfix_action::elev, m_cmdAz_sp, and m_cmdEl_sp.

Referenced by invokeAction().

void Mount4Impl::operator= ( const Mount4Impl  )  [protected]

ALMA C++ coding standards state copy operators should be disabled.


Friends And Related Function Documentation

friend class PositionControlThread [friend]

The PositionControlThread class needs to access the private members of this class, and therefore is given friend status.

Definition at line 288 of file acscourseMount4Impl.h.

Referenced by Mount4Impl().


Member Data Documentation

baci::SmartPropertyPointer<baci::ROdouble> Mount4Impl::m_actAz_sp [protected]

m_actAz_p is the antenna's actual azimuth

Definition at line 271 of file acscourseMount4Impl.h.

Referenced by actAz().

baci::SmartPropertyPointer<baci::ROdouble> Mount4Impl::m_actEl_sp [protected]

m_actEl_p is the antenna's actual elevation

Definition at line 276 of file acscourseMount4Impl.h.

Referenced by actEl().

baci::SmartPropertyPointer<baci::ROdouble> Mount4Impl::m_cmdAz_sp [protected]

m_cmdAz_p is the antenna's commanded azimuth

Definition at line 261 of file acscourseMount4Impl.h.

Referenced by cmdAz(), objfix(), and objfixAction().

baci::SmartPropertyPointer<baci::ROdouble> Mount4Impl::m_cmdEl_sp [protected]

m_cmdEl_p is the antenna's commanded elevation

Definition at line 266 of file acscourseMount4Impl.h.

Referenced by cmdEl(), objfix(), and objfixAction().


The documentation for this class was generated from the following files: