Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends

Mount4Impl Class Reference

#include <acscourseMount4Impl.h>

Inheritance diagram for Mount4Impl:
Inheritance graph
[legend]
Collaboration diagram for Mount4Impl:
Collaboration graph
[legend]

List of all members.

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

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
virtual Mount4Impl::~Mount4Impl (  )  [virtual]

Destructor


Member Function Documentation

virtual 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

virtual 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

virtual 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

virtual 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

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.

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).


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.

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

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.

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).


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


Member Data Documentation

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


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