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

BaciTestClassImpl Class Reference

#include <baciTestClassImpl.h>

Inheritance diagram for BaciTestClassImpl:

Inheritance graph
[legend]
Collaboration diagram for BaciTestClassImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BaciTestClassImpl (const ACE_CString &name, maci::ContainerServices *, bool monitoring=true)
virtual ~BaciTestClassImpl ()
virtual ActionRequest invokeAction (int function, BACIComponent *component_p, const int &callbackID, const CBDescIn &descIn, BACIValue *value, Completion &completion, CBDescOut &descOut)
virtual ActionRequest onAction (BACIComponent *component_p, int callbackID, const CBDescIn &descIn, BACIValue *value, Completion &completion, CBDescOut &descOut)
virtual ActionRequest offAction (BACIComponent *component_p, int callbackID, const CBDescIn &descIn, BACIValue *value, Completion &completion, CBDescOut &descOut)
virtual ActionRequest resetAction (BACIComponent *component_p, int callbackID, const CBDescIn &descIn, BACIValue *value, Completion &completion, CBDescOut &descOut)
virtual void shutdown () throw ( CORBA::SystemException )
virtual void on (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc) throw (CORBA::SystemException)
virtual void off (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc) throw (CORBA::SystemException)
virtual void reset (ACS::CBvoid_ptr cb, const ACS::CBDescIn &desc) throw (CORBA::SystemException)
virtual void turnOnMonitoring () throw (CORBA::SystemException)
virtual void turnOffMonitoring () throw (CORBA::SystemException)
virtual CORBA::Boolean isPropertiesMonitoringActive () throw (CORBA::SystemException)
virtual ACS::RWdouble_ptr RWdoubleWithDevIOProp () throw (CORBA::SystemException)
virtual ACS::RWdouble_ptr RWdoubleProp () throw (CORBA::SystemException)
virtual ACS::ROdouble_ptr ROdoubleProp () throw (CORBA::SystemException)
virtual ACS::RWfloat_ptr RWfloatProp () throw (CORBA::SystemException)
virtual ACS::ROfloat_ptr ROfloatProp () throw (CORBA::SystemException)
virtual ACS::RWlong_ptr RWlongProp () throw (CORBA::SystemException)
virtual ACS::ROlong_ptr ROlongProp () throw (CORBA::SystemException)
virtual ACS::ROpattern_ptr ROpatternProp () throw (CORBA::SystemException)
virtual ACS::RWpattern_ptr RWpatternProp () throw (CORBA::SystemException)
virtual ACS::ROstring_ptr ROstringProp () throw (CORBA::SystemException)
virtual ACS::RWstring_ptr RWstringProp () throw (CORBA::SystemException)
virtual ACS::RWdoubleSeq_ptr RWdoubleSeqProp () throw (CORBA::SystemException)
virtual ACS::ROdoubleSeq_ptr ROdoubleSeqProp () throw (CORBA::SystemException)
virtual ACS::RWfloatSeq_ptr RWfloatSeqProp () throw (CORBA::SystemException)
virtual ACS::ROfloatSeq_ptr ROfloatSeqProp () throw (CORBA::SystemException)
virtual ACS::RWlongSeq_ptr RWlongSeqProp () throw (CORBA::SystemException)
virtual ACS::ROlongSeq_ptr ROlongSeqProp () throw (CORBA::SystemException)

Private Types

typedef ActionRequest(BaciTestClassImpl::* ActionFunction )(BACIComponent *component_p, int callbackID, const CBDescIn &descIn, BACIValue *value, Completion &completion, CBDescOut &descOut)

Private Attributes

bool m_shutdown
 Is manager shutting down?

ActionFunction m_actions [3]
 Array of actions.

SmartPropertyPointer< RWdoublem_RWdoubleWithDevIOProp_sp
 The smart pointers for (other) properties.

SmartPropertyPointer< ROdoublem_ROdoubleProp_sp
SmartPropertyPointer< RWdoublem_RWdoubleProp_sp
SmartPropertyPointer< ROfloatm_ROfloatProp_sp
SmartPropertyPointer< RWfloatm_RWfloatProp_sp
SmartPropertyPointer< ROlongm_ROlongProp_sp
SmartPropertyPointer< RWlongm_RWlongProp_sp
SmartPropertyPointer< ROpatternm_ROpatternProp_sp
SmartPropertyPointer< RWpatternm_RWpatternProp_sp
SmartPropertyPointer< ROstringm_ROstringProp_sp
SmartPropertyPointer< RWstringm_RWstringProp_sp
SmartPropertyPointer< ROdoubleSeqm_ROdoubleSeqProp_sp
SmartPropertyPointer< RWdoubleSeqm_RWdoubleSeqProp_sp
SmartPropertyPointer< ROfloatSeqm_ROfloatSeqProp_sp
SmartPropertyPointer< RWfloatSeqm_RWfloatSeqProp_sp
SmartPropertyPointer< ROlongSeqm_ROlongSeqProp_sp
SmartPropertyPointer< RWlongSeqm_RWlongSeqProp_sp

Detailed Description

This test class provides 4 methods: shutdown, on, off and reset. It also provides one property per each type supported


Member Typedef Documentation

typedef ActionRequest(BaciTestClassImpl::* BaciTestClassImpl::ActionFunction)(BACIComponent* component_p, int callbackID, const CBDescIn& descIn, BACIValue* value, Completion& completion, CBDescOut& descOut) [private]
 

Definition of ActionFunction (member function of PowerSupply class)


Constructor & Destructor Documentation

BaciTestClassImpl::BaciTestClassImpl const ACE_CString &  name,
maci::ContainerServices ,
bool  monitoring = true
 

virtual BaciTestClassImpl::~BaciTestClassImpl  )  [virtual]
 

Destructor


Member Function Documentation

virtual ActionRequest BaciTestClassImpl::invokeAction int  function,
BACIComponent *  component_p,
const int &  callbackID,
const CBDescIn descIn,
BACIValue value,
Completion completion,
CBDescOut descOut
[virtual]
 

Action dispatcher function

Parameters:
function action funtion to be invoked
component_p 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)

Implements baci::ActionImplementator.

virtual CORBA::Boolean BaciTestClassImpl::isPropertiesMonitoringActive  )  throw (CORBA::SystemException) [virtual]
 

Check the status of the monitoring thread and logs it

Reimplemented from baci::CharacteristicComponentImpl.

virtual void BaciTestClassImpl::off ACS::CBvoid_ptr  cb,
const ACS::CBDescIn desc
throw (CORBA::SystemException) [virtual]
 

Switches off the power supply. A callback is used to inform the caller when the action is performed.

Parameters:
callBack callback when action has finished

virtual ActionRequest BaciTestClassImpl::offAction BACIComponent *  component_p,
int  callbackID,
const CBDescIn descIn,
BACIValue value,
Completion completion,
CBDescOut descOut
[virtual]
 

virtual void BaciTestClassImpl::on ACS::CBvoid_ptr  cb,
const ACS::CBDescIn desc
throw (CORBA::SystemException) [virtual]
 

Switches on the power supply. A callback is used to inform the caller when the action is performed.

Parameters:
callBack callback when action has finished

virtual ActionRequest BaciTestClassImpl::onAction BACIComponent *  component_p,
int  callbackID,
const CBDescIn descIn,
BACIValue value,
Completion completion,
CBDescOut descOut
[virtual]
 

virtual void BaciTestClassImpl::reset ACS::CBvoid_ptr  cb,
const ACS::CBDescIn desc
throw (CORBA::SystemException) [virtual]
 

Resets the power supply. A callback is used to inform the caller when the action is performed.

Parameters:
callBack callback when action has finished

virtual ActionRequest BaciTestClassImpl::resetAction BACIComponent *  component_p,
int  callbackID,
const CBDescIn descIn,
BACIValue value,
Completion completion,
CBDescOut descOut
[virtual]
 

virtual ACS::ROdouble_ptr BaciTestClassImpl::ROdoubleProp  )  throw (CORBA::SystemException) [virtual]
 

Property ROdoubleProp is the ROdoubleProp of the actual setting of the power supply.

virtual ACS::ROdoubleSeq_ptr BaciTestClassImpl::ROdoubleSeqProp  )  throw (CORBA::SystemException) [virtual]
 

Property ROdoubleSeqProp is the ROdoubleSeqProp of the actual setting of the power supply.

virtual ACS::ROfloat_ptr BaciTestClassImpl::ROfloatProp  )  throw (CORBA::SystemException) [virtual]
 

Property ROfloatProp is the ROfloatProp of the actual setting of the power supply.

virtual ACS::ROfloatSeq_ptr BaciTestClassImpl::ROfloatSeqProp  )  throw (CORBA::SystemException) [virtual]
 

Property ROfloatSeqProp is the ROfloatSeqProp of the actual setting of the power supply.

virtual ACS::ROlong_ptr BaciTestClassImpl::ROlongProp  )  throw (CORBA::SystemException) [virtual]
 

Property ROlongProp is the ROdoubleProp of the actual "RWlongProp" of the power supply.

virtual ACS::ROlongSeq_ptr BaciTestClassImpl::ROlongSeqProp  )  throw (CORBA::SystemException) [virtual]
 

Property ROlongSeqProp is the ROlongSeqProp of the actual "RWlongSeqProp" of the power supply.

virtual ACS::ROpattern_ptr BaciTestClassImpl::ROpatternProp  )  throw (CORBA::SystemException) [virtual]
 

Property ROpatternProp contains the actual ROpatternProp of the power supply.

virtual ACS::ROstring_ptr BaciTestClassImpl::ROstringProp  )  throw (CORBA::SystemException) [virtual]
 

Property ROstringProps contains a test ROstringProp string

virtual ACS::RWdouble_ptr BaciTestClassImpl::RWdoubleProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWdoubleProps contains the actual RWdoubleProp of the power supply.

virtual ACS::RWdoubleSeq_ptr BaciTestClassImpl::RWdoubleSeqProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWdoubleSeqProps contains the actual RWdoubleSeqProp of the power supply.

virtual ACS::RWdouble_ptr BaciTestClassImpl::RWdoubleWithDevIOProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWdoubleProps contains the actual RWdoubleWithDevIOProp of the power supply.

virtual ACS::RWfloat_ptr BaciTestClassImpl::RWfloatProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWfloatProps contains the actual RWfloatProp of the power supply.

virtual ACS::RWfloatSeq_ptr BaciTestClassImpl::RWfloatSeqProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWfloatSeqProps contains the actual RWfloatSeqProp of the power supply.

virtual ACS::RWlong_ptr BaciTestClassImpl::RWlongProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWlongProp contains the actual "RWlongProp" of the power supply.

virtual ACS::RWlongSeq_ptr BaciTestClassImpl::RWlongSeqProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWlongSeqProp contains the actual "RWlongSeqProp" of the power supply.

virtual ACS::RWpattern_ptr BaciTestClassImpl::RWpatternProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWpatternProp contains the actual RWpatternProp of the power supply.

virtual ACS::RWstring_ptr BaciTestClassImpl::RWstringProp  )  throw (CORBA::SystemException) [virtual]
 

Property RWstringProps contains a test RWstringProp string

virtual void BaciTestClassImpl::shutdown  )  throw ( CORBA::SystemException ) [virtual]
 

Servant shutdown request function

virtual void BaciTestClassImpl::turnOffMonitoring  )  throw (CORBA::SystemException) [inline, virtual]
 

Method to turn monitoring off from a remote client

virtual void BaciTestClassImpl::turnOnMonitoring  )  throw (CORBA::SystemException) [inline, virtual]
 

Method to turn monitoring on from a remote client


Member Data Documentation

ActionFunction BaciTestClassImpl::m_actions[3] [private]
 

Array of actions.

SmartPropertyPointer<ROdouble> BaciTestClassImpl::m_ROdoubleProp_sp [private]
 

SmartPropertyPointer<ROdoubleSeq> BaciTestClassImpl::m_ROdoubleSeqProp_sp [private]
 

SmartPropertyPointer<ROfloat> BaciTestClassImpl::m_ROfloatProp_sp [private]
 

SmartPropertyPointer<ROfloatSeq> BaciTestClassImpl::m_ROfloatSeqProp_sp [private]
 

SmartPropertyPointer<ROlong> BaciTestClassImpl::m_ROlongProp_sp [private]
 

SmartPropertyPointer<ROlongSeq> BaciTestClassImpl::m_ROlongSeqProp_sp [private]
 

SmartPropertyPointer<ROpattern> BaciTestClassImpl::m_ROpatternProp_sp [private]
 

SmartPropertyPointer<ROstring> BaciTestClassImpl::m_ROstringProp_sp [private]
 

SmartPropertyPointer<RWdouble> BaciTestClassImpl::m_RWdoubleProp_sp [private]
 

SmartPropertyPointer<RWdoubleSeq> BaciTestClassImpl::m_RWdoubleSeqProp_sp [private]
 

SmartPropertyPointer<RWdouble> BaciTestClassImpl::m_RWdoubleWithDevIOProp_sp [private]
 

The smart pointers for (other) properties.

SmartPropertyPointer<RWfloat> BaciTestClassImpl::m_RWfloatProp_sp [private]
 

SmartPropertyPointer<RWfloatSeq> BaciTestClassImpl::m_RWfloatSeqProp_sp [private]
 

SmartPropertyPointer<RWlong> BaciTestClassImpl::m_RWlongProp_sp [private]
 

SmartPropertyPointer<RWlongSeq> BaciTestClassImpl::m_RWlongSeqProp_sp [private]
 

SmartPropertyPointer<RWpattern> BaciTestClassImpl::m_RWpatternProp_sp [private]
 

SmartPropertyPointer<RWstring> BaciTestClassImpl::m_RWstringProp_sp [private]
 

bool BaciTestClassImpl::m_shutdown [private]
 

Is manager shutting down?


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