Central object of the run control corba server
Central object of the run control corba server. The partition object coordinates the operation of the run control server. Thre is only one instance per run control server which is implemented through the Singelton pattern (private constructor). It does that through the process stages by bringing them through the initialise, download, start_run and end_run sequence. In addition it has the configuring state in which the user can configure the components of the allocated hardware and software process units. Every configuration command brings the partition object automatically into the configuring state, which means that a download has to be done in order to start a new run.The partition object inherits the state model from the rcFsm object (like every active object in the run control server.
enum eCheckReadinessLevel
static rcPartition* create( const char *name, const char *owner, const char *identifier, const char *pcTMHardware )
owner - : the owner if it is specified by the user at startup time
as an argument to the executable run_control with option -o.
identifier - : the initials of the person running the daq.
~rcPartition()
inline static rcPartition* get()
int deallocate_granule( const char *gr_name )
Accessor member functions
inline const char* getUserIdentifier()
inline const char* getPartitionName()
const char* getIdentifier()
const char* getOwner()
int getNbStages()
int getNbStagesOutstanding()
pstring getGranules()
pstring getGl1Configuration()
bool isAutoRunMode()
void setAutoRunMode( bool bMode )
rcPartitionConfiguration getConfiguration()
bool isRunning()
bool isPaused()
bool isReady()
bool isinErrorState()
void setDebug( bool aBool )
bool getDebug()
const rcRun* getRun()
void show_status( ostream &os = cout )
void enableTimers()
void disableTimers()
inline void setTimeout( int iMillisec )
inline int getTimeout()
bool isPartitionServerRunning()
FSM for the partition object.
int setCurrentState( const char *pcNewState )
int create()
int configure( const char *pcCmd, int nbParameters, const char *pcArgs[] )
int download(int iScope, int iCheckReadinessLevel = eNormal )
iCheckReadinessLevel - : parameter that determines to
what level we check the readiness once we arrive in the
Ready state. int waiting_for_download( const char *pcStageName, int iStatus )
int ready()
int starting( struct run_parameters *pRunParams )
int waiting_for_start( const char *pcStageName, int iStatus )
int running()
int ending( const char *pSource )
int waiting_for_end( const char *pcStageName, int iStatus )
int ended()
int check_prst()
int error( const char *msg )
int delete_state()
int pause()
int resume()
bool checkReady( int iCheckingFlag = eNormal )
Misc member functions
Private member functions
Private data members
char* pcPartitionName
char* pcOwner
char* pcIdentifier
list <char *> listGranules
int nStagesOutstanding
int iCurrentScope
int iCurrentCheckReadinessLevel
bool bInitialised
bool bStartAsap
rcRun* pMyRun
static const char* pcStates[eNStates]
smTimer* pMyTimer
bool bDebug
bool bFirstDownload
bool bPaused
static rcPartition* thePartition
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de