Otawa  0.10
otawa::sim::Simulator Class Referenceabstract

This class represents a plugin to use facilities provided by a simulator. More...

#include <otawa/sim/Simulator.h>

Inheritance diagram for otawa::sim::Simulator:
otawa::sim::TrivialSimulator

Public Member Functions

 Simulator (elm::CString name, const elm::Version &version, const elm::Version &plugger_version)
 Build a new simulator plugin. More...
 
virtual Stateinstantiate (WorkSpace *fw, const PropList &props=PropList::EMPTY)=0
 This method instantiate a new simulator using the given framework. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

otawa::sim::Simulator::Simulator ( elm::CString  name,
const elm::Version version,
const elm::Version plugger_version 
)

Build a new simulator plugin.

Parameters
nameName of the plugin.
versionVersion of the plug-in.
plugger_versionPlugger required version.

Member Function Documentation

State * otawa::sim::Simulator::instantiate ( WorkSpace fw,
const PropList props = PropList::EMPTY 
)
pure virtual

This method instantiate a new simulator using the given framework.

It must be implemented by actual simulator plugins.

Parameters
fwFramework to use.
propsProperties for tuning the built simulator.
Returns
The instantiated simulator.
Exceptions
otawa::sim::ExceptionIf there is an error.

Implemented in otawa::sim::TrivialSimulator.

Referenced by otawa::tsim::BBTimeSimulator::setup(), and otawa::tsim::BBPath::simulate().


The documentation for this class was generated from the following files: