Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Simulator Class Reference

Class responsible for all simulation matters. More...

#include <Simulator.h>

Inheritance diagram for Simulator::

List of all members.

Public Slots

void reset ()
 Resets the simulator.

void next ()
 Proceeds with the next step in the simulation. More...

void stopSimulation ()
 Stops the running simulation.

void closeDlg ()
 Closes the simulator dialog.


Public Methods

 Simulator (MainWindow *)
 Constructor. More...

 ~Simulator ()
 Destructor.

bool startSimulation (Machine *)
 Starts simulation. More...

void enableButtons ()
 Enables the respective number of the bit buttons.


Private Methods

GStatenext (IOInfo *, QString &)
 Proceeds with the next step. More...

void setCurrentState (GState *)
 Sets s the current state of the simulation.


Private Attributes

MainWindowmain
 Pointer to the main windows.

SimulatorDlgImplsimdlg
 Simulator dialog.

Machinemachine
 Pointer to the machine to simulate.

GStatecurrent_state
 Current state (during simulation).


Detailed Description

Class responsible for all simulation matters.


Constructor & Destructor Documentation

Simulator::Simulator MainWindow * m
 

Constructor.

Parameters:
m   pointer to main window


Member Function Documentation

void Simulator::next [slot]
 

Proceeds with the next step in the simulation.

Reads the inputs from the inputs field and sends them to the machine.

GState * Simulator::next IOInfo * in,
QString & out
[private]
 

Proceeds with the next step.

Parameters:
in   input info (e.g. bits)
out   output information (mealy)
Returns:
Next state. If no transition matches the input information the current state remains the same

bool Simulator::startSimulation Machine * m
 

Starts simulation.

Opens the simulation dialog and resets the machine m.

Returns:
TRUE if simulation was started, FALSE if an error occured.


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 22:37:17 2003 for Qfsm by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001