Otawa
0.10
|
This class represents a plugin to use facilities provided by a simulator. More...
#include <otawa/sim/Simulator.h>
Public Member Functions | |
Simulator (elm::CString name, const elm::Version &version, const elm::Version &plugger_version) | |
Build a new simulator plugin. More... | |
virtual State * | instantiate (WorkSpace *fw, const PropList &props=PropList::EMPTY)=0 |
This method instantiate a new simulator using the given framework. More... | |
This class represents a plugin to use facilities provided by a simulator.
Before simulation, this class allows to instantiate a simulator for the current framework and the result, a otawa::sim::State object, provides services to drive the simulation.
otawa::sim::Simulator::Simulator | ( | elm::CString | name, |
const elm::Version & | version, | ||
const elm::Version & | plugger_version | ||
) |
Build a new simulator plugin.
name | Name of the plugin. |
version | Version of the plug-in. |
plugger_version | Plugger required version. |
|
pure virtual |
This method instantiate a new simulator using the given framework.
It must be implemented by actual simulator plugins.
fw | Framework to use. |
props | Properties for tuning the built simulator. |
otawa::sim::Exception | If there is an error. |
Implemented in otawa::sim::TrivialSimulator.
Referenced by otawa::tsim::BBTimeSimulator::setup(), and otawa::tsim::BBPath::simulate().