|
|
||||||
|
sp_lpexecutor.cpp
Go to the documentation of this file.
101 void LoggingExecutor::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
112 void LoggingExecutor::DoRead(TokenReader& rTr, const std::string& rLabel, const Type* pContext) {
247 Idx LoggingExecutor::SetCondition(const std::string& rName, const AttributeSimCondition& rCondition) {
408 void LoggingExecutor::LogOpen(const std::string& rFileName, int logmode, std::ios::openmode openmode) {
#define FD_DC(message) Debug: optional report on container operations. Definition: cfl_definitions.h:153 #define FAUDES_TYPE_IMPLEMENTATION(ftype, ctype, cbase) faudes type implementation macros, overall Definition: cfl_types.h:946 Attribute for a simulation condition. Definition: sp_simconditionset.h:134 void StateCondition(const SimStateCondition &rStateConditionAttribute) Set state condition attribute. Definition: sp_simconditionset.h:205 void EventCondition(const SimEventCondition &rEventConditionAttribute) Set event condition attribute. Definition: sp_simconditionset.h:218 SampledDensityFunction mSamplesDuration Sampled durations, for which this condition remains satisfied. Definition: sp_simconditionset.h:297 bool Satisfied(void) const Test whether the condition is currently satisfied. Definition: sp_simconditionset.h:273 SampledDensityFunction mSamplesPeriod Sampled period, at which this condition becomes satisfied. Definition: sp_simconditionset.h:292 void Write(TokenWriter &rTw) const Definition: sp_densityfnct.cpp:38 std::deque< TraceSample >::const_iterator TraceIterator Access buffer: iterator. Definition: sp_lpexecutor.h:356 std::vector< AttributeSimCondition * > mEnabledConditions Enabled simulation conditions. Definition: sp_lpexecutor.h:450 Idx SetCondition(const std::string &rName, const AttributeSimCondition &rCondition) Set (or add) a condition by name. Definition: sp_lpexecutor.cpp:247 virtual bool RevertToStep(Idx step) Revert executors state to past step from buffer. Definition: sp_lpexecutor.cpp:656 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write to TokenWriter, see also public wrappers in faudes::Type. Definition: sp_lpexecutor.cpp:101 std::map< Time::Type, int > mTraceTimeToStep Trace data: time to step mapping (first step) Definition: sp_lpexecutor.h:501 const TraceSample * TraceAtTime(Time::Type time) const Access buffer: sample by faudes time (returns first sample) Definition: sp_lpexecutor.cpp:547 const TraceSample * TraceRecent(void) const Access buffer: recent sample. Definition: sp_lpexecutor.cpp:562 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Reads logging executor from TokenReader, see also public wrappers in faudes::Type. Definition: sp_lpexecutor.cpp:112 virtual bool ExecuteTime(Time::Type duration) Let time pass without executing a transition. Definition: sp_lpexecutor.cpp:146 void TraceWrite(void) const Access buffer: console output (list all) Definition: sp_lpexecutor.cpp:642 const SimConditionSet & Conditions(void) const Read-only access to simulation conditions. Definition: sp_lpexecutor.cpp:209 SimConditionSet::Iterator ConditionIterator Condition iterator: typedef. Definition: sp_lpexecutor.h:292 void ConditionsRead(TokenReader &rTr, const std::string &rLabel="SimConditions") Read conditions from labled section Definition: sp_lpexecutor.cpp:277 int CurrentStep(void) const Get logical time, ie number of transitions so far,. Definition: sp_lpexecutor.h:213 const ParallelTimedState & CurrentParallelTimedState(void) const Get current state of the ParallelExecutor. Definition: sp_lpexecutor.h:248 const TraceSample * TraceFirst(void) const Access buffer: first sample. Definition: sp_lpexecutor.cpp:568 const TraceSample * TraceAtStep(int step) const Access buffer: sample by step. Definition: sp_lpexecutor.cpp:539 void LogOpen(TokenWriter &rTw, int mode) Start logging to TokenWriter. Definition: sp_lpexecutor.cpp:391 void ConditionsWrite(TokenWriter &rTw, const std::string &rLabel="SimConditions") const Write conditions so labled section Definition: sp_lpexecutor.cpp:272 std::string TraceToString(const TraceSample &sample) const Access buffer: convert to string. Definition: sp_lpexecutor.cpp:649 ConditionIterator ConditionsBegin(void) const Condition iterator: begin. Definition: sp_lpexecutor.cpp:284 void ClrCondition(const std::string &rName) Remove a condition by name Definition: sp_lpexecutor.cpp:260 void TraceUpdateTransition(Idx event) Trace: append sample (if necessary) and update to current state via given event Definition: sp_lpexecutor.cpp:600 const AttributeSimCondition & Condition(const std::string &rName) const Read-only access to a simulation condition by name. Definition: sp_lpexecutor.cpp:223 const TraceSample * TraceCurrent(void) const Access buffer: current sample. Definition: sp_lpexecutor.cpp:556 void TraceUpdateTime(void) Trace: append sample (if necessary) and update to current time Definition: sp_lpexecutor.cpp:612 Typedef for parallel timed state, incl token io. Definition: sp_pexecutor.h:76 Synchronized parallel execution of TimedGenerators. Definition: sp_pexecutor.h:64 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write to TokenWriter, see also public wrappers Write() in faudes::Type. Definition: sp_pexecutor.cpp:130 const ParallelState & CurrentParallelState(void) const Get current discrete state vector of the ParallelExecutor. Definition: sp_pexecutor.cpp:319 virtual bool ExecuteTime(Time::Type duration) Let time pass without executing a transition. Definition: sp_pexecutor.cpp:364 const ParallelTimedState & CurrentParallelTimedState(void) const Get current state of the ParallelExecutor. Definition: sp_pexecutor.cpp:324 int CurrentStep(void) const Get logical time, ie number of transitions so far,. Definition: sp_pexecutor.cpp:440 std::string PTSStr(const ParallelTimedState &ptstate) const Pretty printable string of timed parallel state. Definition: sp_pexecutor.cpp:453 virtual void DoReadGenerators(TokenReader &rTr) Reads generator files section from TokenReader. Definition: sp_pexecutor.cpp:194 std::string Str(const Idx &rIndex) const Return pretty printable symbolic name for index. Definition: cfl_nameset.h:1185 const Attr & Attribute(const Idx &rElem) const Definition: cfl_nameset.h:844 virtual TaNameSet & Assign(const TBaseSet< Idx > &rSrc) Relaxed assignment method (uses base class to maintain attributes) Definition: cfl_nameset.h:968 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:63 bool Eos(const std::string &rLabel) Peek a token and check whether it ends the specified section. Definition: cfl_tokenreader.cpp:439 void ReadEnd(const std::string &rLabel) Close the current section by matching the previous ReadBegin(). Definition: cfl_tokenreader.cpp:364 void ReadBegin(const std::string &rLabel) Open a section by specified label. Definition: cfl_tokenreader.cpp:249 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:51 std::string Str(void) Retrieve output as string (if in String mode) Definition: cfl_tokenwriter.cpp:160 void WriteComment(const std::string &rComment) Write comment in faudes format. Definition: cfl_tokenwriter.cpp:460 void WriteOption(const std::string &rOpt) Write option (may not contain any "+") Definition: cfl_tokenwriter.cpp:431 const std::string & StringValue(void) const Get string value of a name token. Definition: cfl_token.cpp:177 Base class of all libFAUDES objects that participate in the run-time interface. Definition: cfl_types.h:239 void Read(const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) Read configuration data from file with label specified. Definition: cfl_types.cpp:261 void Write(const Type *pContext=0) const Write configuration data to console. Definition: cfl_types.cpp:139 void DValid(const std::string &rMessage="") const Some validation of deferred copy mechanism (provoke abort) Definition: cfl_baseset.h:1606 Executor with logging facilities ParallelTimedState mState Definition: sp_lpexecutor.h:345 libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |