|
|
||||||
|
sp_plpexecutor.cpp
Go to the documentation of this file.
169 FD_DS("ProposingExecutor::ExecuteEvent(): ProposingExecutor to execute event "<< mSimEvents.Str(event));
213 FD_DS("ProposingExecutor::ExecuteEvent(): invalidating state for executed event "<< EStr(*eit));
323 FD_DS("ProposingExecutor::ProposeNextTransition(): propose by priority: " << mSimEvents.Str(candidate));
356 FD_DS("ProposingExecutor::ProposeNextTransition(): propose by stochastic: " << mSimEvents.Str(candidate) << " for " << Time::Str(occurence));
377 FD_DS("ProposingExecutor::ProposeNextTransition(): propose to pass time: "<< Time::Str(passtime));
408 FD_DS("ProposingExecutor::ProposeNextTransition(): propose by priority: " << mSimEvents.Str(candidate));
432 FD_DS("ProposingExecutor::ExecuteNextTransition() *********************************************************** ");
508 FD_DS("ProposingExecutor::Schedule(" << EStr(event) << "): for timed automaton target " << atarget.Str());
517 FD_DS("ProposingExecutor::Schedule(" << EStr(event) << "): for restricted target " << atarget.Str());
539 FD_DS("ProposingExecutor::Schedule(" << EStr(event) << ") internal error: no valid stochastic defs");
608 void ProposingExecutor::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
620 void ProposingExecutor::DoRead(TokenReader& rTr, const std::string& rLabel, const Type* pContext) {
660 errstr << "Invalid token, generators, conditions or simeventattribute section expected, " << rTr.FileLine();
695 pattr->mRelevantClocks.InsertSet(git->Generator().Invariant(git->CurrentState()).ActiveClocks());
699 FD_DS("ProposingExecutor::ExecuteEvent(): relevant clocks " << pattr->mRelevantClocks.ToString());
781 FD_DS("ProposingExecutor::EventValidity(): Event " << Alphabet().SymbolicName(ev)<< " is still valid");
#define FD_DC(message) Debug: optional report on container operations. Definition: cfl_definitions.h:153 #define FD_NAMELEN Length of strings for text fields in token output. Definition: cfl_definitions.h:55 #define FAUDES_TYPE_IMPLEMENTATION(ftype, ctype, cbase) faudes type implementation macros, overall Definition: cfl_types.h:946 virtual bool RevertToStep(Idx step) Revert executors state to past step from buffer. Definition: sp_lpexecutor.cpp:656 virtual bool ExecuteTime(Time::Type duration) Let time pass without executing a transition. Definition: sp_lpexecutor.cpp:146 const SimConditionSet & Conditions(void) const Read-only access to simulation conditions. Definition: sp_lpexecutor.cpp:209 const EventSet & EnabledEvents() const Get events that are enabled at current (timed) state. Definition: sp_pexecutor.cpp:277 const ParallelState & CurrentParallelState(void) const Get current discrete state vector of the ParallelExecutor. Definition: sp_pexecutor.cpp:319 EventSet ActiveEventSet(const ParallelState &stateVec) const Get events that are active in all TimedGenerators. Definition: sp_pexecutor.cpp:521 const TimeInterval & EnabledInterval() const Get an interval on which the set of enabled events is constant. Definition: sp_pexecutor.cpp:289 std::string CurrentParallelTimedStateStr(void) const Pretty printable string of current state. Definition: sp_pexecutor.cpp:511 virtual void DoWriteGenerators(TokenWriter &rTw) const Write generator files section to TokenWriter. Definition: sp_pexecutor.cpp:159 const TimeInterval & EnabledTime() const Get maximal duration that can pass without executing an event. Definition: sp_pexecutor.cpp:270 TimeInterval EnabledGuardTime(Idx event) const Get interval on which the respective guard is satisfied. Definition: sp_pexecutor.cpp:307 virtual void DoReadGenerators(TokenReader &rTr) Reads generator files section from TokenReader. Definition: sp_pexecutor.cpp:194 TimeInterval EnabledEventTime(Idx event) const Get interval on which the specified event is enabled. Definition: sp_pexecutor.cpp:295 Executer that proposes which transition to execute. Definition: sp_plpexecutor.h:165 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Reads proposing executor from TokenReader, see also public wrappers Type::Read. Definition: sp_plpexecutor.cpp:620 void ResetProposer(long int seed=0) Reset stochastic state of events. Definition: sp_plpexecutor.cpp:67 std::string EventStatesToString(void) const Inspect stochastic event states (debugging) Definition: sp_plpexecutor.cpp:105 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write to TokenWriter, see also public wrappers Type::Write. Definition: sp_plpexecutor.cpp:608 const SimEventAttribute & EventAttribute(Idx index) const Simulation event attribute lookup. Definition: sp_plpexecutor.cpp:49 Time::Type Schedule(Idx event, SimEventAttribute *pattr) Evaluate random variable to schedule event. Definition: sp_plpexecutor.cpp:475 virtual void Clear(void) Clear all data (generators, simulation attributes etc) Definition: sp_plpexecutor.cpp:33 const TimedEvent & ProposeNextTransition() Propose next transition. Definition: sp_plpexecutor.cpp:263 const sEventSet & Alphabet(void) const Access alphabet (incl simulation event attributes) Definition: sp_plpexecutor.h:245 bool ExecuteTransition(const TimedEvent &tevent) Execute event by transition. Definition: sp_plpexecutor.cpp:250 sEventSet mSimEvents Simulation event attributes, incl stochastic and priority data. Definition: sp_plpexecutor.h:364 Attribute for an event in the context of simulation. Definition: sp_simeventset.h:149 Time::Type mScheduledFor Next scheduled occurence of this event relative to current time. Definition: sp_simeventset.h:233 void Priority(const SimPriorityEventAttribute &rPriorityAttribute) Set priority behaviour. Definition: sp_simeventset.h:211 TimeInterval mReferenceInterval Time domain on which the recent schedule was computed. Definition: sp_simeventset.h:259 void Stochastic(const SimStochasticEventAttribute &rStochasticAttribute) Set stochastic behaviour. Definition: sp_simeventset.h:200 std::string Str(const Idx &rIndex) const Return pretty printable symbolic name for index. Definition: cfl_nameset.h:1185 virtual void InsertSet(const NameSet &rOtherSet) Inserts elements of rOtherSet. Definition: cfl_nameset.h:1033 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 void PositiveLeftShift(Time::Type time) Transform by left shift and intersection with [0, inf) Definition: tp_timeinterval.cpp:51 bool In(Time::Type time) const Test whether a point satisfies interval. Definition: tp_timeinterval.cpp:42 void Intersect(const TimeInterval &rOtherInterval) Intersect this interval with other interval. Definition: tp_timeinterval.cpp:87 static Type Quantize(Float x) Discretize (when using cosmetic float time: "step*(round(t/step))". Definition: tp_timeinterval.h:54 static Float FromFloat(Float x) Convert From float (for convenient token-reading only) Definition: tp_timeinterval.h:56 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 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 std::string ToString(const std::string &rLabel="", const Type *pContext=0) const Write configuration data to a string. Definition: cfl_types.cpp:169 virtual Type & Assign(const Type &rSrc) Assign configuration data from other object. Definition: cfl_types.cpp:77 void Write(const Type *pContext=0) const Write configuration data to console. Definition: cfl_types.cpp:139 double ran_gauss(double mu, double sigma, Time::Type tossLB, Time::Type tossUB) Sample a random variable gaussian distributed on a restricted interval Distribution: f(t) = 1 / sqrt(... Definition: sp_random.cpp:132 long ran_uniform_int(long a, long b) Sample a discrete random variable uniformly on interval [a;b) Distribution: p(n) = 1/(b-a-1) Definition: sp_random.cpp:98 double ran_exponential(double mu) Sample a random variable exponentially Distribution: f(t) dt = 1/mu exp(-t/mu) dt for t>=0. Definition: sp_random.cpp:107 double ran_uniform(double a, double b) Sample a random variable uniformly on interval [a;b) Distribution: f(t) dt= {1/(b-a)} dt for t,... Definition: sp_random.cpp:91 std::string ExpandString(const std::string &rString, unsigned int len) Fill string with spaces up to a given length if length of the string is smaller than given length par... Definition: cfl_helper.cpp:80 Executor that proposes transitions to execute. libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |