- Added NullPolicyException to scheduler
- Started code for printing the state of the scheduling - Fixed a bug in the copy constructor of DynamicThread git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@794 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
f26b80f76b
commit
6a88e3d85e
13 changed files with 167 additions and 23 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "templates/smartp.hh"
|
||||
//#include "backend/policy_parameters.hh"
|
||||
#include "backend/string_utils.hh"
|
||||
#include "backend/history_observer.hh"
|
||||
|
||||
#include "smartp.hh"
|
||||
|
||||
|
@ -55,9 +56,10 @@ namespace sgpem
|
|||
Any object returned after the call to Simulation will be returned to the output
|
||||
devices(s) in a human-readable format.
|
||||
*/
|
||||
class SG_DLLEXPORT TextSimulation : public sigc::trackable
|
||||
class SG_DLLEXPORT TextSimulation : public HistoryObserver
|
||||
{
|
||||
public:
|
||||
TextSimulation();
|
||||
~TextSimulation();
|
||||
|
||||
/**
|
||||
|
@ -120,13 +122,13 @@ namespace sgpem
|
|||
*/
|
||||
void add_io_device(memory::smart_ptr<IOManager>);
|
||||
|
||||
private:
|
||||
/**
|
||||
Prints the actual state of the simulation, with emphasis on the current
|
||||
status of the scheduling process (ready queue and running process).
|
||||
*/
|
||||
void update();
|
||||
virtual void update(const History& changed_history);
|
||||
|
||||
private:
|
||||
bool check_arguments_num(const Tokens& arguments, unsigned int num);
|
||||
template <typename Container>
|
||||
void show(const Container& entities);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue