Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

simth::SimulationSystem Class Reference

Abstract base class of all classes representing a simulation system. More...

#include <basicsimulationsystem.h>

Inheritance diagram for simth::SimulationSystem:

simth::FreeConnectionSystem simth::StreamDrivenSystem List of all members.

Public Types

enum  RUNNING_FLAG {
  rf_std = 0x1, rf_quiet = 0x2, rf_asterisks = 0x4, rf_deviceNr = 0x8,
  rf_nobackspaces = 0x10
}

Public Member Functions

 SimulationSystem ()
virtual ~SimulationSystem ()
virtual double mainSimulationLoop (int mode)=0
virtual void print (std::ostream &os) const

Detailed Description

Abstract base class of all classes representing a simulation system.

In derived classes the main functionality should be implemented in the function mainSimulationLoop(int mode) that is called by the main function to start the simulation.


Member Enumeration Documentation

enum simth::SimulationSystem::RUNNING_FLAG
 

Enumeration values:
rf_std 
rf_quiet 
rf_asterisks 
rf_deviceNr 
rf_nobackspaces 


Constructor & Destructor Documentation

simth::SimulationSystem::SimulationSystem  ) 
 

Class constructor of a basic simulation system.

virtual simth::SimulationSystem::~SimulationSystem  )  [virtual]
 

Default destructor.


Member Function Documentation

virtual double simth::SimulationSystem::mainSimulationLoop int  mode  )  [pure virtual]
 

In derived classes, this function should implement the main functionality of a simulation system. It is called by the main function to start the simulation. It should return the simulation time in seconds.

Implemented in simth::StreamDrivenSystem.

virtual void simth::SimulationSystem::print std::ostream &  os  )  const [virtual]
 

Prints information about the simulation system to the given ostream. In order to give more detailed information, a derived class shoul reimplement this function.

Parameters:
os The ostream to print more info to.

Reimplemented in simth::StreamDrivenSystem.


Generated on Mon Apr 24 21:19:19 2006 for simthetic by  doxygen 1.4.1