- Fixed bug in copy construction of DynamicProcess
- Fixed bug in get_parameter<bool> in TextSimulation - Written some new code for visualization of the simulation git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@799 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
25e5a7319b
commit
d64051279f
7 changed files with 90 additions and 13 deletions
|
@ -111,7 +111,7 @@ ConcreteHistory::append_new_environment(ConcreteEnvironment* environment)
|
|||
|
||||
|
||||
ConcreteHistory::size_t
|
||||
ConcreteHistory::get_size()
|
||||
ConcreteHistory::get_size() const
|
||||
{
|
||||
return _snapshots.size();
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace sgpem
|
|||
virtual ~ConcreteHistory();
|
||||
|
||||
virtual void append_new_environment(ConcreteEnvironment* environment);
|
||||
virtual size_t get_size();
|
||||
virtual size_t get_size() const;
|
||||
virtual const ConcreteEnvironment& get_last_environment() const;
|
||||
virtual const ConcreteEnvironment& get_environment_at(position index) const throw(std::out_of_range);
|
||||
|
||||
|
|
|
@ -39,7 +39,8 @@ DynamicProcess::DynamicProcess(StaticProcess* core) :
|
|||
}
|
||||
|
||||
DynamicProcess::DynamicProcess(const DynamicProcess &other) :
|
||||
Schedulable(), DynamicSchedulable(other), Process()
|
||||
Schedulable(), DynamicSchedulable(other), Process(),
|
||||
_core(other._core)
|
||||
{
|
||||
typedef vector<DynamicThread*>::const_iterator ThreadIt;
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include "request.hh"
|
||||
#include "static_request.hh"
|
||||
#include "dynamic_thread.hh"
|
||||
|
||||
#include "smartp.hh"
|
||||
|
||||
|
@ -34,7 +35,6 @@ namespace sgpem
|
|||
{
|
||||
class DynamicRequest;
|
||||
class SerializeVisitor;
|
||||
class DynamicThread;
|
||||
class SubRequest;
|
||||
class DynamicSubRequest;
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace sgpem
|
|||
|
||||
virtual ~History() = 0;
|
||||
|
||||
virtual size_t get_size() = 0;
|
||||
virtual size_t get_size() const = 0;
|
||||
virtual const Environment& get_last_environment() const = 0;
|
||||
virtual const Environment& get_environment_at(position index) const throw(std::out_of_range) = 0;
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ namespace sgpem
|
|||
class Request;
|
||||
class SerializeVisitor;
|
||||
class SubRequest;
|
||||
class Thread;
|
||||
|
||||
class SG_DLLEXPORT Request
|
||||
{
|
||||
|
@ -43,7 +44,9 @@ namespace sgpem
|
|||
};
|
||||
|
||||
virtual ~Request();
|
||||
|
||||
|
||||
virtual Thread& get_thread() = 0;
|
||||
|
||||
virtual bool operator==(const Request& op2) const = 0;
|
||||
|
||||
virtual std::vector<SubRequest*> get_subrequests() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue