|
|
||||||
|
sp_executor.cpp
Go to the documentation of this file.
122 void Executor::DoWrite(TokenWriter& rTw,const std::string& rLabel, const Type* pContext) const {
#define FAUDES_TYPE_IMPLEMENTATION(ftype, ctype, cbase) faudes type implementation macros, overall Definition: cfl_types.h:946 An Executor is a timed generator that maintains a current state. Definition: sp_executor.h:93 const TimeInterval & EnabledTime() const Get maximal interval of time that can pass without executing an event. Definition: sp_executor.cpp:249 const TimedGenerator & Generator(void) const Reference to the internal generator for inspection. Definition: sp_executor.cpp:41 const EventSet & EnabledEvents() const Get set of events that are enabled at current (timed) state. Definition: sp_executor.cpp:255 std::map< Idx, TimeInterval > mEGuardInterval Record interval in which each guard is enabled Definition: sp_executor.h:505 const EventSet & ActiveEventSet(void) const Get set of events that are active at current (untimed) state. Definition: sp_executor.cpp:273 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Writes configuration to TokenWriter, see Type for public wrappers. Definition: sp_executor.cpp:122 std::map< Transition, std::map< Idx, TimeInterval > > mTransClockIntervalMap Compiled generator data: map transition to clock to interval constraint. Definition: sp_executor.h:520 void ComputeEnabled(void) const Compute enabled events and enabled interval (fake const) Definition: sp_executor.cpp:138 std::map< Idx, std::map< Idx, TimeInterval > > mStateClockIntervalMap Compiled generator data: map state to clock to interval constraint. Definition: sp_executor.h:523 TimeInterval EnabledEventTime(Idx event) const Get interval on which an active event is enabled. Definition: sp_executor.cpp:285 std::string TSStr(const TimedState &tstate) const Pretty printable string of timed state. Definition: sp_executor.cpp:460 std::string CStr(Idx idx) const Pretty printable string of clock name. Definition: sp_executor.cpp:496 const TransSet & ActiveTransSet(void) const Get set of transitions that are active at current (untimed) state. Definition: sp_executor.cpp:279 const TimeInterval & EnabledInterval() const Get maximal interval on which set of enabled events is constant. Definition: sp_executor.cpp:267 const EventSet & DisabledEvents() const Get set of events that are disabled at current (timed) state. Definition: sp_executor.cpp:261 bool CurrentClockValue(Idx clock, Time::Type time) Set value of clock variable. Definition: sp_executor.cpp:414 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Reads configuration from TokenReader, see Typefor public wrappers. Definition: sp_executor.cpp:115 std::string TEStr(const TimedEvent &tevent) const Pretty printable string of timed event. Definition: sp_executor.cpp:484 bool IsDeadlocked() const Returns true if timed generator is in a deadlocked state. Definition: sp_executor.cpp:452 TimeInterval EnabledGuardTime(Idx event) const Get interval on which an active event satisfies its guard. Definition: sp_executor.cpp:304 int CurrentStep(void) const Get logic time ie numer of transitions so far. Definition: sp_executor.cpp:447 std::string CurrentTimedStateStr(void) const Pretty printable string of current state. Definition: sp_executor.cpp:479 void ComputeEnabledNonConst(void) Compute enabled core routine (non const) Definition: sp_executor.cpp:144 TBaseSet< Transition, TransSort::X1EvX2 >::Iterator Iterator Iterator on transition. Definition: cfl_transset.h:269 const GlobalAttr & GlobalAttribute(void) const Get global attribute ref. Definition: cfl_agenerator.h:750 const TaEventSet< EventAttr > & Alphabet(void) const Return const reference to alphabet. Definition: cfl_agenerator.h:1358 A TimeConstraint is a set of elementary clock constraints. Definition: tp_timeconstraint.h:276 TimeInterval Interval(Idx clockindex) const Given a clock, compute the timeinterval in which the constraint is satisfied. Definition: tp_timeconstraint.cpp:471 ClockSet ActiveClocks(void) const Returns a Clockset containing all clocks used by the TimeConstraint. Definition: tp_timeconstraint.cpp:452 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 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:63 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:51 const TimeConstraint & Invariant(Idx idx) const Get invariant of state by index. Definition: tp_tgenerator.h:1051 ClockSet::Iterator ClocksEnd(void) const Iterator to End() of mClocks. Definition: tp_tgenerator.h:1014 ClockSet::Iterator ClocksBegin(void) const Iterator to Begin() of mClocks. Definition: tp_tgenerator.h:1009 void Resets(const Transition &rTrans, const ClockSet &rResets) Sets Resets of a transition. Definition: tp_tgenerator.h:1310 void Guard(const Transition &rTrans, const TimeConstraint &rGuard) Sets Guard of a transition. Definition: tp_tgenerator.h:1241 std::string CStr(Idx index) const Return pretty printable clock name for index. Definition: tp_tgenerator.h:1410 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 StateSet::Iterator StatesBegin(void) const Iterator to Begin() of state set. Definition: cfl_generator.cpp:1057 StateSet::Iterator InitStatesBegin(void) const Iterator to Begin() of mInitStates. Definition: cfl_generator.cpp:1150 EventSet ActiveEventSet(Idx x1) const Return active event set at state x1. Definition: cfl_generator.cpp:1938 TransSet::Iterator TransRelBegin(void) const Iterator to Begin() of transition relation. Definition: cfl_generator.cpp:1067 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write generator to TokenWriter, see Type::Write for public wrappers. Definition: cfl_generator.cpp:2413 TransSet ActiveTransSet(Idx x1) const Return active transition set at state x1. Definition: cfl_generator.cpp:1948 bool ExistsState(Idx index) const Test existence of state in state set. Definition: cfl_generator.cpp:1776 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Read generator object from TokenReader, see Type::Read for public wrappers. Definition: cfl_generator.cpp:3153 std::string TStr(const Transition &rTrans) const Return pretty printable transition (eg for debugging) Definition: cfl_generator.cpp:3841 StateSet::Iterator StatesEnd(void) const Iterator to End() of state set. Definition: cfl_generator.cpp:1062 TransSet::Iterator TransRelEnd(void) const Iterator to End() of transition relation. Definition: cfl_generator.cpp:1072 bool IsDeterministic(void) const Check if generator is deterministic. Definition: cfl_generator.cpp:2367 std::string EStr(Idx index) const Pretty printable event name for index (eg for debugging). Definition: cfl_generator.cpp:3828 std::string SStr(Idx index) const Return pretty printable state name for index (eg for debugging) Definition: cfl_generator.cpp:3834 bool ExistsMarkedState(Idx index) const Test existence of state in mMarkedStates. Definition: cfl_generator.cpp:1806 TtGenerator< AttributeTimedGlobal, AttributeTimedState, AttributeCFlags, AttributeTimedTrans > TimedGenerator Convenience typedef for std TimedGenerator. Definition: tp_tgenerator.h:776 Execute transitions in a timed generator std::map< Idx, Time::Type > ClockValue Definition: sp_executor.h:103 libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |