orca-sim
Private Attributes | List of all members
orcasim::base::Model Class Referenceabstract

Models a generic hardware model. More...

#include <Model.hpp>

Inheritance diagram for orcasim::base::Model:
orcasim::base::TimedModel orcasim::base::UntimedModel orcasim::modeling::ProcessorBase< T > orcasim::models::hermes::HermesRouter orcasim::models::orca::DmaNetif orcasim::models::orca::NetBridge orcasim::modeling::Buffer< T > orcasim::modeling::Memory orcasim::modeling::SignalSet< T > orcasim::gdbrsp::GdbProcessorBase< T >

Public Member Functions

a name that identifies the model, advisably not empty.

Default ctor.

 Model (std::string name)
 
std::string GetName ()
 Getter method for the <_name> field. More...
 
void SetName (std::string s)
 Setter method for the <_name> field. More...
 
virtual ~Model ()=0
 Virtual destructor, must implement by subclass. More...
 

Private Attributes

std::string _name
 A name for the model. More...
 

Detailed Description

Models a generic hardware model.

Models usually correspond to modules, which can be include any kind of hardware. Since not all the hardware behaviour is considered for simulation, we designed models to be either timed, when they obey to some clock domain, or untimed, when their clock is irrelevant for the simulation. See <TimedModel> and <UntimedModel>.

Definition at line 40 of file Model.hpp.

Constructor & Destructor Documentation

§ Model()

Model::Model ( std::string  name)
explicit

Definition at line 30 of file Model.cpp.

30  {
31  _name = name;
32 }
std::string _name
A name for the model.
Definition: Model.hpp:47

§ ~Model()

Model::~Model ( )
pure virtual

Virtual destructor, must implement by subclass.

Definition at line 42 of file Model.cpp.

42  {
43  // nothing to do
44 }

Member Function Documentation

§ GetName()

std::string Model::GetName ( )

Getter method for the <_name> field.

Definition at line 34 of file Model.cpp.

34  {
35  return _name;
36 }
std::string _name
A name for the model.
Definition: Model.hpp:47

§ SetName()

void Model::SetName ( std::string  s)

Setter method for the <_name> field.

Parameters
sValue to be set

Definition at line 38 of file Model.cpp.

38  {
39  _name = name;
40 }
std::string _name
A name for the model.
Definition: Model.hpp:47

Member Data Documentation

§ _name

std::string orcasim::base::Model::_name
private

A name for the model.

Users may name models without any restriction, although we advise to give models meaningful names, as these names may come in hand when debugging or reporting simulation.

Definition at line 47 of file Model.hpp.


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