#include <acscomponentImpl.h>
Inheritance diagram for acscomponent::ACSComponentImpl:
Public Member Functions | |
ACSComponentImpl (const ACE_CString &name, maci::ContainerServices *containerServices) | |
virtual | ~ACSComponentImpl () |
PortableServer::POA_var | getPOA () |
virtual char * | name () |
virtual::ACS::ComponentStates | componentState () |
virtual void | initialize () |
virtual void | execute () |
virtual void | cleanUp () |
virtual void | aboutToAbort () |
virtual void | __execute () |
virtual void | __aboutToAbort () |
virtual void | __cleanUp () |
virtual void | __initialize () |
maci::ContainerServices * | getContainerServices () |
Private Attributes | |
ACE_CString | m_name |
Loki::SmartPtr< maci::ContainerServices > | m_containerServices_p |
|
Constructor. The ACSComponent shall be considered an abstract class and at the end of the constructor the state of the ACSComponent is set to COMPSTATE_NEW (m_componentState = ACS::COMPSTATE_NEW).
|
|
Destructor Note: ContainerServices is not availble in the destructor |
|
The function stops the threads before calling aboutToAbort()
Reimplemented in baci::CharacteristicComponentImpl.
|
|
The function stops the threads before calling cleanUp()
Reimplemented in baci::CharacteristicComponentImpl.
|
|
The function starts the thread before calling execute
Reimplemented in baci::CharacteristicComponentImpl.
|
|
The __initialize simply calls initialize (added for uniformity with the other life cycle function)
|
|
Called when due to some error condition the component is about to be forcefully removed some unknown amount of time later (usually not very much...). The component should make an effort to die as neatly as possible. Because of its urgency, this method will be called asynchronously to the execution of any other method of the component.
Reimplemented in FilterWheel, LampWheel, MaciContainerServicesTestClassImpl, and DynamicTestClassImpl.
|
|
|
Property for the state of the ACSComponent
* |
|
Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time. Must be implemented as a synchronous (blocking) call (can spawn threads though).
Reimplemented in AmsTestSeq, Building, Door, FilterWheel, LampWheel, PowerSupply, BaciPropTest, MaciContainerServicesTestClassImpl, DynamicTestClassImpl, and MaciHierarchicalTestClass.
|
|
Get a pointer to the services provided by the container which hosts the component
|
|
Get POA reference This function is used to return m_poa because inherited classes would not have access to it otherwise.
|
|
Called to give the component time to initialize itself. For instance, the component could retrieve connections, read in configuration files/parameters, build up in-memory tables, ... Called before execute. In fact, this method might be called quite some time before functional requests can be sent to the component. Must be implemented as a synchronous (blocking) call.
Reimplemented in FilterWheel, LampWheel, sampledCompImpl, TimingExplorerImpl, BulkDataDistributerImpl< TReceiverCallback, TSenderCallback >, MaciContainerServicesTestClassImpl, DynamicTestClassImpl, BulkDataDistributerImpl< BulkDataDistributerCb >, and BulkDataDistributerImpl< BulkDataDistributerStreamCb >.
|
|
Property for the name of the ACSComponent The string returned by this method is the actual name of this instance which the manager can convert to a DO reference if a client has the right access level.
|
|
Smart pointer of the container services |
|
Name of the component Reimplemented in MaciTestClass.
|