#include <EPStates.h>
Public Types | |
typedef mpl::list < sc::custom_reaction< Run > , sc::custom_reaction< File > > | reactions |
Public Member Functions | |
bool | checkInvariant () |
HandleNewInputFile2 (my_context ctx) | |
sc::result | react (Run const &run) |
sc::result | react (File const &file) |
~HandleNewInputFile2 () |
Definition at line 280 of file EPStates.h.
typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File> > statemachine::HandleNewInputFile2::reactions |
Definition at line 289 of file EPStates.h.
statemachine::HandleNewInputFile2::HandleNewInputFile2 | ( | my_context | ctx | ) |
Definition at line 297 of file EPStates.cc.
References checkInvariant().
: my_base(ctx) { context<HandleFiles>().goToNewInputFile(); checkInvariant(); }
statemachine::HandleNewInputFile2::~HandleNewInputFile2 | ( | ) |
bool statemachine::HandleNewInputFile2::checkInvariant | ( | ) |
Definition at line 307 of file EPStates.cc.
Referenced by HandleNewInputFile2(), react(), and ~HandleNewInputFile2().
{ assert(context<HandleRuns>().currentRun() != INVALID_RUN); return true; }
sc::result statemachine::HandleNewInputFile2::react | ( | File const & | file | ) |
Definition at line 322 of file EPStates.cc.
References checkInvariant().
{ checkInvariant(); if(!context<HandleFiles>().shouldWeCloseOutput()) { return transit<HandleNewInputFile2>(); } return forward_event(); }
sc::result statemachine::HandleNewInputFile2::react | ( | Run const & | run | ) |
Definition at line 312 of file EPStates.cc.
References checkInvariant(), statemachine::HandleRuns::finalizeRun(), and DTTTrigCorrFirst::run.
{ checkInvariant(); if(context<HandleRuns>().currentRun() != run) { return transit<NewRun, HandleRuns, Run>(&HandleRuns::finalizeRun, run); } else { return transit<ContinueRun1>(); } }