13 namespace LOCK {
class EnergyLocks; }
22 virtual void Halt(
bool)
override;
32 virtual void PostProgress(
unsigned,
const std::string &)
override;
33 virtual bool Peek(
bool =
false)
override;
38 enum class Cmd_t { C_set, C_stop, C_pause, C_resume, C_skip, C_halt, C_state,
46 Command(
Session *client, Cmd_t type) : m_client(client), m_type(type)
54 struct JobCommand :
public Command
59 Command(client, Cmd_t::C_set), m_job(job)
66 struct ApplyCommand :
public Command
70 ApplyCommand(
Session *client,
const DbIds *ids)
71 : Command(client, Cmd_t::C_apply), m_ids(ids)
77 virtual void ThreadMain(
void)
override;
78 void MeasurePhaseError(
void);
79 bool ProcessCommand(Command *);
80 std::string RemovalMessage(
bool);
81 void Handle(std::exception &);
86 thrlib::EventQueue<Command *> m_queue;
Manage objects related the RF cavity phasing job.
Definition: jobSet.h:18
Abstract interface to RF cavity phasing.
Definition: phaseInterface.h:16
A job for processing RF cavities.
Definition: phaseJob.h:17
Log phasing job results to a database.
Definition: resultsDb.h:16
Manage phasing operations.
Definition: rfPhaser.h:20
virtual void StopJob(Session &) override
Destroy any existing RF phasing job.
Definition: rfPhaser.cpp:76
RfPhaser(void)
Construct an instance.
Definition: rfPhaser.cpp:23
virtual void SetJob(Session &, PhaseJob *) override
Set a new RF phasing job.
Definition: rfPhaser.cpp:66
virtual bool Peek(bool=false) override
Peek for client commands during phasing.
Definition: phaserThread.cpp:297
virtual void Halt(bool) override
Halt phasing operations.
Definition: rfPhaser.cpp:131
virtual void SkipCavity(Session &) override
Skip the current cavity in the RF phasing job.
Definition: rfPhaser.cpp:109
virtual void GetState(Session &) override
Get the current state of the server.
Definition: rfPhaser.cpp:119
virtual void PostProgress(unsigned, const std::string &) override
Post progress of an activity to clients.
Definition: phaserThread.cpp:320
virtual void PauseJob(Session &) override
Pause execution of the RF phasing job.
Definition: rfPhaser.cpp:87
virtual void ApplyCorrections(Session &, const DbIds *) override
Request phase corrections be applied.
Definition: rfPhaser.cpp:143
virtual void ResumeJob(Session &) override
Resume execution of the RF phasing job.
Definition: rfPhaser.cpp:98
virtual std::vector< std::string > GetCavityNames(void) override
Get the names of eligible RF cavities.
Definition: rfPhaser.cpp:48
Manage one connection session with a client.
Definition: session.h:23
Define the 'JobSet' class.
Define the RF Cavity phase job interface.