DiaDes
0.1
DIAgnosis of Discrete-Event System
|
Namespaces | |
Experimental | |
Typedefs | |
typedef Diades::Graph::Node | State |
typedef Diades::Graph::GraphNodeSet::Iterator | BeliefStateIterator |
typedef Diades::Graph::Edge | Transition |
typedef pair< time_duration, Event > | EventOccurrence |
typedef ComposableModelSearch< Diades::Utils::BFS< NextTransitions, TargetDiagState, list< DiagState >, list< DiagState >, VisitedDiagState, IsCandidate, IncorrectPath > > | FBFS |
typedef ComposableModelSearch< Diades::Utils::DFS< NextTransitions, TargetDiagState, list< DiagState >, list< DiagState >, VisitedDiagState, IsCandidate, IncorrectPath > > | FDFS |
typedef ComposableModelSearch< Diades::Utils::GFS< NextTransitions, TargetDiagState, list< DiagState >, list< DiagState >, VisitedDiagState, IsCandidate, IncorrectPath > > | FGFS |
typedef Diades::Utils::Identifier | Identifier |
Functions | |
void | checkAccuracy (const ObservableComponent &component, const set< Event > &faults, const set< Event > &interactives, string &information, bool &result, set< set< Event > > &minimalCombinations, int depth) |
void | checkSubconfigurationAccuracy (const TopologyMap &topology, const SubConfiguration &subConfiguration, const set< Event > &events, string &information, bool &result, set< set< Event > > &minimalCombinations, int depth, ofstream &toLatex) |
template<typename InputIterator > | |
void | deleteTransition (Component &comp, InputIterator first, InputIterator last) |
template<typename InputIterator > | |
void | deleteState (Component &comp, InputIterator first, InputIterator last) |
template<typename InputIterator , typename Predicate > | |
void | deleteState (Component &comp, InputIterator first, InputIterator last, Predicate pred) |
template<typename InputIterator > | |
void | purgeNonPredecessors (Component &comp, InputIterator first, InputIterator last) |
ostream & | operator<< (ostream &os, const DiagState &dstate) |
void | generateCppCode (const ClassicalDiagnoser &diagnoser, const string &filename) |
template<typename DiagnosisComparisonFunctor > | |
void | historyCompare (const History &history1, const History &history2, DiagnosisComparisonFunctor compare, list< pair< ptime, typename DiagnosisComparisonFunctor::ValueType > > &result) |
template<typename DiagnosisComparisonFunctor > | |
void | historyCompareWithTimeStep (const History &history1, const History &history2, DiagnosisComparisonFunctor compare, time_duration timeStep, list< pair< ptime, int > > &result) |
void | makeUniversalBehaviour (const string &name, const set< Event > &events, const ObservableMask &mask, ObservableComponent &universalBehaviour) |
void | makeUniversalBehaviour (const ObservableComponent &component, ObservableComponent &universalBehaviour) |
void | project (const Trace &source, const set< Event::Id > &projectedEvents, Trace &target) |
ostream & | operator<< (ostream &os, const SubConfiguration &subconf) |
const ObservableComponent * | getNonRelaxedBehaviour (const SubConfiguration &subConfig, const TopologyMap &wholeSystem, set< Event > &observationEvents, set< Event > &externalEvents, set< Event > &effectiveEvents, SynchronisationRules **rules) |
void | getBehaviour (const SubConfiguration &subConfig, const TopologyMap &wholeSystem, set< Event > &observationEvents, set< Event > &externalEvents, set< Event > &effectiveEvents, set< Event > &relaxedEvents, set< Event > &relaxedSynchronisedEvents, ObservableComponent **component, SynchronisationRules **rules) |
bool | loadSynchronisationRules (const ParametrizedSynchronisation::ComponentVector &models, const string &filename, ParametrizedSynchronisation &sync) |
Topology::Connection | getConnection (const Topology &topology, const set< Topology::Node > &clique, const Identifier &connectionEventLabel) |
void | generateTopology (unsigned nbNode, unsigned connectivity, unsigned cliqueSizeMax, unsigned commonConnectionMax, unsigned seed, Topology &topology) |
void | randomSimulateState (const ObservableComponent &component, State source, const set< Event > &noEvents, unsigned obsMin, unsigned obsMax, unsigned depth, list< Event > &simulation) |
void | randomSimulate (const ObservableComponent &component, const set< Event > &noEvents, unsigned obsMin, unsigned obsMax, list< Event > &simulation) |
void | reallySimulate (const ObservableComponent &component, const set< Event > &noEvents, unsigned obsMin, unsigned obsMax, list< Event > &simulation) |
bool | getEvents (const Component &component, const set< string > &labels, set< Event > &events) |
bool | simulate (const ObservableComponent &component, const set< string > &absentEvents, unsigned obsMin, unsigned obsMax, unsigned seed, list< Event > &simulation) |
void | randomSimulateState (ComposableModel &composable, const ObservableMask &mask, State source, const set< Event > &noEvents, unsigned obsMin, unsigned obsMax, unsigned depth, list< Event > &simulation) |
void | randomSimulate (ComposableModel &composable, const ObservableMask &mask, const set< Event > &noEvents, unsigned obsMin, unsigned obsMax, list< Event > &simulation) |
void | reallySimulate (ComposableModel &composable, const ObservableMask &mask, const set< Event > &noEvents, unsigned obsMin, unsigned obsMax, list< Event > &simulation) |
bool | simulate (ComposableModel &composable, const ObservableMask &mask, const set< string > &absentEvents, unsigned obsMin, unsigned obsMax, unsigned seed, list< Event > &simulation) |
void | printStop (unsigned index) |
template<typename StateIterator > | |
void | generateStateList (const Component &component, StateIterator first, StateIterator last) |
template<typename StateIterator > | |
State | getStateOfIndex (const Component &component, StateIterator first, StateIterator last, unsigned index) |
bool | readResponse (istream &in, unsigned &index, unsigned maxValue, bool &stop) |
bool | initialStateSelection (const Component &component, State &result) |
bool | initialStateSelection (ComposableModel &model, State &result) |
template<typename TransitionIterator > | |
void | generateTransitionList (const Component &component, const ObservableMask &mask, TransitionIterator first, TransitionIterator last) |
template<typename TransitionIterator > | |
Transition | getTransitionOfIndex (const Component &component, TransitionIterator first, TransitionIterator last, unsigned index) |
bool | interactiveSimulation (const ObservableComponent &component, State ¤t, list< Event > &simulation) |
bool | interactiveSimulation (ComposableModel &model, const ObservableMask &mask, State ¤t, list< Event > &simulation) |
bool | interactiveSimulation (const ObservableComponent &component, list< Event > &simulation) |
bool | interactiveSimulation (ComposableModel &composable, const ObservableMask &mask, list< Event > &simulation) |
template<typename InputIterator , typename OutputIterator > | |
void | timeStamp (InputIterator first, InputIterator last, time_duration min, time_duration max, OutputIterator result) |
string | tinyXmlTag (const time_duration &t) |
string | tinyXmlTag (const Event &e) |
string | tinyXmlTag (const pair< time_duration, Event > &p) |
string | tinyXmlText (const time_duration &t) |
string | tinyXmlText (const Event &e) |
This namespace gathers the classes and functions related to automata (containers + algorithms). This set of classes and functions are in the library libautomata.so
.
Iterator on the states
Definition at line 40 of file BeliefState.hh.
typedef std::pair< boost::posix_time::time_duration, Event > Diades::Automata::EventOccurrence |
Definition at line 13 of file Diagnose.hh.
typedef ComposableModelSearch<Diades::Utils::BFS<NextTransitions,TargetDiagState,list<DiagState>,list<DiagState>,VisitedDiagState,IsCandidate,IncorrectPath> > Diades::Automata::FBFS |
FBFS
Forward Breadh First Search on a FaultDiagProblem, instantiation of a ComposableModelSearch
typedef ComposableModelSearch<Diades::Utils::DFS<NextTransitions,TargetDiagState,list<DiagState>,list<DiagState>, VisitedDiagState,IsCandidate,IncorrectPath> > Diades::Automata::FDFS |
FDFS
Forward Depth First Search on a FaultDiagProblem, instantiation of a ComposableModelSearch
typedef ComposableModelSearch<Diades::Utils::GFS<NextTransitions,TargetDiagState,list<DiagState>,list<DiagState>,VisitedDiagState,IsCandidate,IncorrectPath> > Diades::Automata::FGFS |
FGFS
Forward Greedy First Search on a FaultDiagProblem, instantiation of a ComposableModelSearch
Definition at line 19 of file Topology.hh.
typedef Node Diades::Automata::State |
Definition at line 36 of file BeliefState.hh.
Definition at line 46 of file Component.hh.
void Diades::Automata::checkAccuracy | ( | const ObservableComponent & | component, |
const set< Event > & | faults, | ||
const set< Event > & | interactives, | ||
string & | information, | ||
bool & | result, | ||
set< set< Event > > & | minimalCombinations, | ||
int | depth | ||
) |
void Diades::Automata::checkSubconfigurationAccuracy | ( | const TopologyMap & | topology, |
const SubConfiguration & | subConfiguration, | ||
const set< Event > & | events, | ||
string & | information, | ||
bool & | result, | ||
set< set< Event > > & | minimalCombinations, | ||
int | depth, | ||
ofstream & | toLatex | ||
) |
Referenced by main().
|
inline |
Definition at line 1390 of file Component.hh.
References Diades::Automata::Component::deleteState().
|
inline |
Definition at line 1400 of file Component.hh.
References Diades::Automata::Component::deleteState().
|
inline |
STL-like algorithm
Definition at line 1381 of file Component.hh.
References Diades::Automata::Component::deleteTransition().
Referenced by Diades::Petri::TimeNet::deleteTransition(), Diades::Petri::Net::endOfTransitionWithEvent(), and Diades::Petri::BoundedNet::transitionOfName().
void Diades::Automata::generateCppCode | ( | const ClassicalDiagnoser & | diagnoser, |
const string & | filename | ||
) |
diagnoser | a diagnoser |
filename | a file name Generate c++ code that implement the diagnoser. |
Referenced by main().
void Diades::Automata::generateStateList | ( | const Component & | component, |
StateIterator | first, | ||
StateIterator | last | ||
) |
Definition at line 425 of file Simulator.cc.
References Diades::Automata::Component::getLabel(), and printStop().
Referenced by initialStateSelection().
void Diades::Automata::generateTopology | ( | unsigned | nbNode, |
unsigned | connectivity, | ||
unsigned | cliqueSizeMax, | ||
unsigned | commonConnectionMax, | ||
unsigned | seed, | ||
Topology & | topology | ||
) |
void Diades::Automata::generateTransitionList | ( | const Component & | component, |
const ObservableMask & | mask, | ||
TransitionIterator | first, | ||
TransitionIterator | last | ||
) |
Definition at line 519 of file Simulator.cc.
References Diades::Automata::Component::getEvent(), Diades::Automata::Component::getLabel(), Diades::Automata::ObservableMask::observableBegin(), Diades::Automata::ObservableMask::observableEnd(), printStop(), and toStream().
Referenced by interactiveSimulation().
void Diades::Automata::getBehaviour | ( | const SubConfiguration & | subConfig, |
const TopologyMap & | wholeSystem, | ||
set< Event > & | observationEvents, | ||
set< Event > & | externalEvents, | ||
set< Event > & | effectiveEvents, | ||
set< Event > & | relaxedEvents, | ||
set< Event > & | relaxedSynchronisedEvents, | ||
ObservableComponent ** | component, | ||
SynchronisationRules ** | rules | ||
) |
Referenced by Diades::Automata::SubConfiguration::clear().
Topology::Connection Diades::Automata::getConnection | ( | const Topology & | topology, |
const set< Topology::Node > & | clique, | ||
const Identifier & | connectionEventLabel | ||
) |
topology | a Topology |
clique | a clique in the topology |
connectionEventLabel | the event label of a connection |
Referenced by Diades::Automata::Topology::graph().
bool Diades::Automata::getEvents | ( | const Component & | component, |
const set< string > & | labels, | ||
set< Event > & | events | ||
) |
Get the events with the corresponding labels (label or nickname) in the component
component | the componnet to look at |
labels | the labels to consider |
events | the resulting events |
Definition at line 158 of file Simulator.cc.
References Diades::Automata::Component::eventBegin(), and Diades::Automata::Component::eventEnd().
Referenced by simulate().
const ObservableComponent* Diades::Automata::getNonRelaxedBehaviour | ( | const SubConfiguration & | subConfig, |
const TopologyMap & | wholeSystem, | ||
set< Event > & | observationEvents, | ||
set< Event > & | externalEvents, | ||
set< Event > & | effectiveEvents, | ||
SynchronisationRules ** | rules | ||
) |
Referenced by Diades::Automata::SubConfiguration::clear().
State Diades::Automata::getStateOfIndex | ( | const Component & | component, |
StateIterator | first, | ||
StateIterator | last, | ||
unsigned | index | ||
) |
Definition at line 443 of file Simulator.cc.
References current.
Referenced by initialStateSelection().
Transition Diades::Automata::getTransitionOfIndex | ( | const Component & | component, |
TransitionIterator | first, | ||
TransitionIterator | last, | ||
unsigned | index | ||
) |
Definition at line 546 of file Simulator.cc.
References current.
Referenced by interactiveSimulation().
void Diades::Automata::historyCompare | ( | const History & | history1, |
const History & | history2, | ||
DiagnosisComparisonFunctor | compare, | ||
list< pair< ptime, typename DiagnosisComparisonFunctor::ValueType > > & | result | ||
) |
historyCompare(const History & history1, const History & history2, list< pair<ptime,int> > & result)
History comparison
history1 | the first History |
history2 | the second History |
compare | a diagnosis comparison functor |
result | Result of the comparison as a list of time-stamped measurements |
This function is a template to apply functors of the type
Diagnosis x Diagnosis -> int
to any couple of Diagnosis objects.
result
list with the time point associated with the first history.Definition at line 303 of file History.hh.
References Diades::Automata::History::begin(), Diades::Automata::History::end(), Diades::Automata::History::getDiagnosis(), Diades::Automata::History::initialTimePoint(), and Diades::Automata::History::lastTimePoint().
Referenced by makeComparison().
void Diades::Automata::historyCompareWithTimeStep | ( | const History & | history1, |
const History & | history2, | ||
DiagnosisComparisonFunctor | compare, | ||
time_duration | timeStep, | ||
list< pair< ptime, int > > & | result | ||
) |
historyCompareWithTimeStep(const History & history1, const History & history2,time_duration timeStep,list< pair<ptime,int> > & result)
History comparison
history1 | the first History |
history2 | the second History |
compare | a diagnosis comparison functor |
timeStep | a time_duratiom |
result | Result of the comparison as a list of time-stamped measurements |
This function is a template to apply functors of the type Diagnosis
x
Diagnosis
->
int
to any couple of Diagnosis objects.
result
list with the time point associated with the first history. Definition at line 405 of file History.hh.
References Diades::Automata::History::getDiagnosis(), Diades::Automata::History::initialTimePoint(), and Diades::Automata::History::lastTimePoint().
Definition at line 475 of file Simulator.cc.
References generateStateList(), Diades::Automata::Component::getLabel(), getStateOfIndex(), Diades::Automata::Component::initialStateBegin(), Diades::Automata::Component::initialStateEnd(), Diades::Automata::Component::numberOfInitialStates(), and readResponse().
bool Diades::Automata::initialStateSelection | ( | ComposableModel & | model, |
State & | result | ||
) |
Definition at line 506 of file Simulator.cc.
References Diades::Automata::ComposableModel::component().
Referenced by interactiveSimulation().
bool Diades::Automata::interactiveSimulation | ( | const ObservableComponent & | component, |
State & | current, | ||
list< Event > & | simulation | ||
) |
interactive simulation of a component
component | the ObservableComponent to simulate |
current | the current state |
simulation | the result of the simulation |
Definition at line 568 of file Simulator.cc.
References generateTransitionList(), Diades::Automata::Component::getEvent(), Diades::Automata::Component::getLabel(), getTransitionOfIndex(), Diades::Automata::ObservableComponent::mask(), Diades::Automata::ObservableMask::observableBegin(), Diades::Automata::ObservableMask::observableEnd(), Diades::Automata::Component::outputTransitionBegin(), Diades::Automata::Component::outputTransitionEnd(), readResponse(), and toStream().
Referenced by startInteractiveSimulation().
bool Diades::Automata::interactiveSimulation | ( | ComposableModel & | model, |
const ObservableMask & | mask, | ||
State & | current, | ||
list< Event > & | simulation | ||
) |
interactive simulation of a component
component | the ObservableComponent to simulate |
current | the current state |
simulation | the result of the simulation |
Definition at line 609 of file Simulator.cc.
References Diades::Automata::ComposableModel::component(), generateTransitionList(), Diades::Automata::Component::getEvent(), Diades::Automata::Component::getLabel(), getTransitionOfIndex(), Diades::Automata::ObservableMask::observableBegin(), Diades::Automata::ObservableMask::observableEnd(), Diades::Automata::ComposableModel::outputTransitionBegin(), Diades::Automata::Component::outputTransitionBegin(), Diades::Automata::ComposableModel::outputTransitionEnd(), Diades::Automata::Component::outputTransitionEnd(), readResponse(), and toStream().
bool Diades::Automata::interactiveSimulation | ( | const ObservableComponent & | component, |
list< Event > & | simulation | ||
) |
interactive simulation of a component
component | the ObservableComponent to simulate |
simulation | the result of the simulation |
Definition at line 659 of file Simulator.cc.
References current, initialStateSelection(), and interactiveSimulation().
bool Diades::Automata::interactiveSimulation | ( | ComposableModel & | composable, |
const ObservableMask & | mask, | ||
list< Event > & | simulation | ||
) |
interactive simulation of a system (lazy synchronisation of components)
composable | the system |
mask | the observable mask of the system |
simulation | the result of the simulation |
Definition at line 685 of file Simulator.cc.
References current, and initialStateSelection().
Referenced by interactiveSimulation().
bool Diades::Automata::loadSynchronisationRules | ( | const ParametrizedSynchronisation::ComponentVector & | models, |
const string & | filename, | ||
ParametrizedSynchronisation & | sync | ||
) |
models | available model |
filename | file containing the rules |
sync | the object that will contain the rules |
The file containing the rules should be in the following format:
components: comp1, comp2,comp3,..., compN; rules: <compi.evti, compj.evtj, compk.evtk> ... <compl.evtl, comps.evts, ...>;
Referenced by main(), and readModels().
void Diades::Automata::makeUniversalBehaviour | ( | const string & | name, |
const set< Event > & | events, | ||
const ObservableMask & | mask, | ||
ObservableComponent & | universalBehaviour | ||
) |
name | name of the universal behaviour |
events | a set of events |
mask | an observable Mask |
universalBehaviour | the resulting universal behaviour: it consists in a single state and for any type of event Assumption: the observable mask remains unchanged |
Referenced by Diades::Automata::ObservableComponent::inputObservableTransitionEnd().
void Diades::Automata::makeUniversalBehaviour | ( | const ObservableComponent & | component, |
ObservableComponent & | universalBehaviour | ||
) |
component | the ObservableComponent based on which the universal behaviour is computed |
universalBehaviour | the resulting universal behaviour: it consists in a single state and for any type of event of the observable component a transition loop associated with this event |
|
inline |
Definition at line 39 of file ComposableModelSearch.hh.
References Diades::Automata::DiagState::faults(), Diades::Automata::DiagState::obsNb(), Diades::Automata::DiagState::state(), and toStream().
Referenced by Diades::Automata::SubConfiguration::clear(), and Diades::Automata::SynchronisationRules::valid().
ostream& Diades::Automata::operator<< | ( | ostream & | os, |
const SubConfiguration & | subconf | ||
) |
void Diades::Automata::printStop | ( | unsigned | index | ) |
Definition at line 419 of file Simulator.cc.
Referenced by generateStateList(), and generateTransitionList().
void Diades::Automata::project | ( | const Trace & | source, |
const set< Event::Id > & | projectedEvents, | ||
Trace & | target | ||
) |
Referenced by projectAut(), and projectDdaut().
|
inline |
comp | a Component |
first | an iterator on a State |
last | an iterator on a State Remove from the Component all the states that are not predecessors of the states in the range [first,last[ |
Definition at line 1442 of file Component.hh.
References Diades::Automata::Component::behaviour(), current, Diades::Automata::Component::deleteState(), Diades::Automata::Component::inputTransitionBegin(), Diades::Automata::Component::inputTransitionEnd(), Diades::Automata::Component::numberOfStates(), Diades::Automata::Component::stateBegin(), Diades::Automata::Component::stateEnd(), and states.
void Diades::Automata::randomSimulate | ( | const ObservableComponent & | component, |
const set< Event > & | noEvents, | ||
unsigned | obsMin, | ||
unsigned | obsMax, | ||
list< Event > & | simulation | ||
) |
component | The component to simulate |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
simulation | The list of simulated events |
In case of failure this function throws exceptions
Definition at line 111 of file Simulator.cc.
References Diades::Automata::Component::initialStateBegin(), Diades::Automata::Component::initialStateEnd(), Diades::Automata::Component::numberOfInitialStates(), randomSimulateState(), and Diades::Utils::selectRandomElement().
void Diades::Automata::randomSimulate | ( | ComposableModel & | composable, |
const ObservableMask & | mask, | ||
const set< Event > & | noEvents, | ||
unsigned | obsMin, | ||
unsigned | obsMax, | ||
list< Event > & | simulation | ||
) |
composable | The ComposableModel to simulate |
mask | the Observablemask associated to composable |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
simulation | The list of simulated events |
In case of failure this function throws exceptions
Definition at line 329 of file Simulator.cc.
References Diades::Automata::ComposableModel::beginOfInitialStates(), Diades::Automata::ComposableModel::endOfInitialStates(), Diades::Automata::ComposableModel::numberOfInitialStates(), randomSimulateState(), and Diades::Utils::selectRandomElement().
Referenced by reallySimulate().
void Diades::Automata::randomSimulateState | ( | const ObservableComponent & | component, |
State | source, | ||
const set< Event > & | noEvents, | ||
unsigned | obsMin, | ||
unsigned | obsMax, | ||
unsigned | depth, | ||
list< Event > & | simulation | ||
) |
component | The component to simulate |
source | Source state of the simulation |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
depth | The number of unobservable events since the last occurrence of an observable event |
simulation | The list of simulated events |
In case of failure this function throws exceptions. A failure here is if the simulation cannot find the constained amount of observations. As we do not want to introduce any biais in this simulation, we prefer make it failing than controlling it. We suppose the simulation has failed when the depth is greater than twice the number of transitions in the component. By the way, as the list 'simulation' is updated on the fly, the result of the simulation is still available and updated.
Definition at line 42 of file Simulator.cc.
References Diades::Utils::fgx(), generateRandomValue(), Diades::Automata::Component::getEvent(), Diades::Automata::Component::getLabel(), Diades::Utils::isNotIn(), Diades::Automata::ObservableMask::isObservable(), Diades::Automata::ObservableComponent::mask(), Diades::Automata::Component::numberOfTransitions(), Diades::Automata::Component::outputTransitionBegin(), Diades::Automata::Component::outputTransitionEnd(), randomSimulateState(), and Diades::Utils::selectRandomElement().
void Diades::Automata::randomSimulateState | ( | ComposableModel & | composable, |
const ObservableMask & | mask, | ||
State | source, | ||
const set< Event > & | noEvents, | ||
unsigned | obsMin, | ||
unsigned | obsMax, | ||
unsigned | depth, | ||
list< Event > & | simulation | ||
) |
composable | The ComposableModel to simulate |
mask | the Observablemask associated to composable |
source | Source state of the simulation |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
depth | The number of unobservable events since the last occurrence of an observable event |
simulation | The list of simulated events |
In case of failure this function throws exceptions. A failure here is if the simulation cannot find the constained amount of observations. As we do not want to introduce any biais in this simulation, we prefer make it failing than controlling it. We suppose the simulation has failed when the depth is greater than twice the number of transitions in the component. By the way, as the list 'simulation' is updated on the fly, the result of the simulation is still available and updated.
Definition at line 252 of file Simulator.cc.
References Diades::Automata::ComposableModel::component(), Diades::Utils::fgx(), generateRandomValue(), Diades::Automata::Component::getEvent(), Diades::Automata::Component::getLabel(), Diades::Utils::isNotIn(), Diades::Automata::ObservableMask::isObservable(), Diades::Automata::ComposableModel::outputTransitionBegin(), Diades::Automata::Component::outputTransitionBegin(), Diades::Automata::ComposableModel::outputTransitionEnd(), Diades::Automata::Component::outputTransitionEnd(), and Diades::Utils::selectRandomElement().
Referenced by randomSimulate(), and randomSimulateState().
bool Diades::Automata::readResponse | ( | istream & | in, |
unsigned & | index, | ||
unsigned | maxValue, | ||
bool & | stop | ||
) |
Definition at line 460 of file Simulator.cc.
Referenced by initialStateSelection(), and interactiveSimulation().
void Diades::Automata::reallySimulate | ( | const ObservableComponent & | component, |
const set< Event > & | noEvents, | ||
unsigned | obsMin, | ||
unsigned | obsMax, | ||
list< Event > & | simulation | ||
) |
component | The component to simulate |
events | The events of component that must occur at least once during the simulation |
noEvents | The events of component that must not occur during the simulation |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
simulation | The list of simulated events |
In case of failure this function throws exceptions
Definition at line 138 of file Simulator.cc.
References randomSimulate().
void Diades::Automata::reallySimulate | ( | ComposableModel & | composable, |
const ObservableMask & | mask, | ||
const set< Event > & | noEvents, | ||
unsigned | obsMin, | ||
unsigned | obsMax, | ||
list< Event > & | simulation | ||
) |
composable | The ComposableModel to simulate |
mask | the Observablemask associated to composable |
events | The events of component that must occur at least once during the simulation |
noEvents | The events of component that must not occur during the simulation |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
simulation | The list of simulated events |
In case of failure this function throws exceptions
Definition at line 359 of file Simulator.cc.
References randomSimulate().
Referenced by simulate().
bool Diades::Automata::simulate | ( | const ObservableComponent & | component, |
const set< string > & | absentEvents, | ||
unsigned | obsMin, | ||
unsigned | obsMax, | ||
unsigned | seed, | ||
list< Event > & | simulation | ||
) |
component | The component to simulate |
absentEvents | The events that must not occur during the simulation |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
seed | The seed to initialise the random generator |
simulation | The list of simulated events |
component | The component to simulate |
absentEvents | The events that must not occur during the simulation |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
seed | The seed to initialise the random generator |
simulation | List of the simulated event |
Definition at line 192 of file Simulator.cc.
References getEvents(), initialiseRandomGenerator(), and reallySimulate().
Referenced by startNonInteractiveSimulation().
bool Diades::Automata::simulate | ( | ComposableModel & | composable, |
const ObservableMask & | mask, | ||
const set< string > & | absentEvents, | ||
unsigned | obsMin, | ||
unsigned | obsMax, | ||
unsigned | seed, | ||
list< Event > & | simulation | ||
) |
compsable | The composable model to simulate |
mask | the Observablemask associated to composable |
absentEvents | The events that must not occur during the simulation |
obsMin | The lower bound of observations to produce |
obsMax | The upper bound of observations to produce |
seed | The seed to initialise the random generator |
simulation | List of the simulated event |
Definition at line 382 of file Simulator.cc.
References Diades::Automata::ComposableModel::component(), getEvents(), initialiseRandomGenerator(), and reallySimulate().
void Diades::Automata::timeStamp | ( | InputIterator | first, |
InputIterator | last, | ||
time_duration | min, | ||
time_duration | max, | ||
OutputIterator | result | ||
) |
Time Stamp a sequence of object randomly
first | First object to time stamp |
last | element after the last object to stamp |
min | the minimal delay between two consecutive time stamps |
max | the maximal delay between two consecutive time stamps |
result | a sequence of pair<time_duration,object> |
Definition at line 90 of file Simulator.hh.
References Diades::Utils::generateRandomValue().
Referenced by writeTimedSimulation().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 56 of file XmlTag.hh.
References Diades::Automata::Event::label().