otsdaq  3.04.02
ots::RunInfoVInterface Class Reference

< : public Configurable More...

#include <otsdaq/FiniteStateMachine/RunInfoVInterface.h>

Public Types

enum class  RunTransitionType {
  HALT , STOP , ERROR , PAUSE ,
  RESUME , START
}
 

Public Member Functions

 RunInfoVInterface (const std::string &activeStateMachineName)
 
virtual unsigned int insertConfigureCondition (const std::string &, const std::string &)
 Set functions -—.
 
virtual unsigned int claimNextRunNumber (unsigned int, const std::string &)
 
virtual unsigned int insertRunCondition (unsigned int, const std::map< std::string, std::map< std::string, std::string >> &, unsigned int, const std::string &)
 
virtual void updateRunInfo (unsigned int, RunTransitionType, const std::string &)
 
const std::string & getActiveStateMachineName (void) const
 Get functions -—.
 
virtual std::vector< std::vector< std::string > > getRunRecords (unsigned int, unsigned int, const std::string &queryFilter="")
 
virtual std::vector< std::vector< std::string > > getRunConditionByID (uint64_t)
 
virtual std::vector< std::vector< std::string > > getRunConfigSubsystemInfo (uint64_t)
 

Detailed Description

< : public Configurable

~~ RunInfoVInterface expected flow (managed by GatewaySupervisor) ~~:

Configure transtion:
    - insertConfigureCondition(<local configure blob>, <comment>)
        ==> Run Info plugin records configure conditions associated with this Configure transition.
            The blob is local to the parent GatewaySupervisor (i.e. not from subsystems, as subsystems could configure asynchronously)

Pre-start transtion:
    - claimNextRunNumber(<configure condition ID>, <comment>)
        ==> Run Info plugin retrieves/returns next run number from run number

During start transtion:
    - Gateway Supervisor collects configure blobs from all subsystem Gateways
        ==> Run Info plugin not involved

End of start transtion:
    - insertRunCondition(<run number>, <map of blob from all subsystems>, <configure condition ID>, <comment>)
        ==> Run Info plugin records run conditions as desired associated with run number)

In stop/pause/resume/halt/error transtions:
    - updateRunInfo(<run number>, <transition type>, <comment>)
        ==> Run Info plugin records run transition as desired associated with run number)

Definition at line 37 of file RunInfoVInterface.h.


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