Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Mount4Impl Class Reference

#include <acscourseMount4Impl.h>

Inheritance diagram for Mount4Impl:

Inheritance graph
[legend]
Collaboration diagram for Mount4Impl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Mount4Impl (const ACE_CString &name, maci::ContainerServices *containerServices)
virtual ~Mount4Impl ()
virtual ActionRequest invokeAction (int function, BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, BACIValue *value_p, Completion &completion, CBDescOut &descOut)
virtual ActionRequest objfixAction (BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, BACIValue *value_p, Completion &completion, CBDescOut &descOut)
virtual void objfix (CORBA::Double az, CORBA::Double elev) throw (CORBA::SystemException)
virtual void objfix_async (CORBA::Double az, CORBA::Double elev, ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc) throw (CORBA::SystemException)
virtual ACS::ROdouble_ptr cmdAz () throw (CORBA::SystemException)
virtual ACS::ROdouble_ptr cmdEl () throw (CORBA::SystemException)
virtual ACS::ROdouble_ptr actAz () throw (CORBA::SystemException)
virtual ACS::ROdouble_ptr actEl () throw (CORBA::SystemException)

Protected Member Functions

void operator= (const Mount4Impl &)

Protected Attributes

SmartPropertyPointer< ROdoublem_cmdAz_sp
SmartPropertyPointer< ROdoublem_cmdEl_sp
SmartPropertyPointer< ROdoublem_actAz_sp
SmartPropertyPointer< ROdoublem_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  )  throw (CORBA::SystemException) [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  )  throw (CORBA::SystemException) [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  )  throw (CORBA::SystemException) [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  )  throw (CORBA::SystemException) [virtual]
 

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

Returns:
pointer to read-only write property cmdEl *

*

virtual ActionRequest Mount4Impl::invokeAction int  function,
BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn descIn,
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 Callback::working.
  • reqInvokeDone - Invoke 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
throw (CORBA::SystemException) [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
throw (CORBA::SystemException) [virtual]
 

virtual ActionRequest Mount4Impl::objfixAction BACIComponent *  cob_p,
const int &  callbackID,
const CBDescIn descIn,
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 Callback::working.
  • reqInvokeDone - Invoke 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

SmartPropertyPointer<ROdouble> Mount4Impl::m_actAz_sp [protected]
 

m_actAz_p is the antenna's actual azimuth

SmartPropertyPointer<ROdouble> Mount4Impl::m_actEl_sp [protected]
 

m_actEl_p is the antenna's actual elevation

SmartPropertyPointer<ROdouble> Mount4Impl::m_cmdAz_sp [protected]
 

m_cmdAz_p is the antenna's commanded azimuth

SmartPropertyPointer<ROdouble> Mount4Impl::m_cmdEl_sp [protected]
 

m_cmdEl_p is the antenna's commanded elevation


The documentation for this class was generated from the following file:
Generated on Sun Oct 29 02:31:09 2006 for ACS C++ API by doxygen 1.3.6