|
@@ -8,7 +8,7 @@
|
|
|
* PARADEVS - the multimodeling and simulation environment
|
|
|
* This file is a part of the PARADEVS environment
|
|
|
*
|
|
|
- * Copyright (C) 2013-2015 ULCO http://www.univ-litoral.fr
|
|
|
+ * Copyright (C) 2013-2016 ULCO http://www.univ-littoral.fr
|
|
|
*
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
@@ -46,7 +46,7 @@ class Simulator : public common::Simulator < Time >,
|
|
|
typedef Simulator < Time, Dynamics, Parameters > type;
|
|
|
|
|
|
public:
|
|
|
- Simulator(const std::string& name, typename Time::type time_step,
|
|
|
+ Simulator(const std::string& name, const typename Time::type& time_step,
|
|
|
const Parameters& parameters) :
|
|
|
common::Model < Time >(name),
|
|
|
common::Simulator < Time >(name),
|
|
@@ -64,7 +64,7 @@ public:
|
|
|
virtual std::string to_string(int level) const
|
|
|
{ return common::Simulator < Time >::to_string(level); }
|
|
|
|
|
|
- typename Time::type start(typename Time::type t)
|
|
|
+ typename Time::type start(const typename Time::type& t)
|
|
|
{
|
|
|
|
|
|
#ifdef WITH_TRACE
|
|
@@ -97,7 +97,7 @@ public:
|
|
|
_dynamics.observation(file);
|
|
|
}
|
|
|
|
|
|
- void output(typename Time::type t)
|
|
|
+ void output(const typename Time::type& t)
|
|
|
{
|
|
|
|
|
|
#ifdef WITH_TRACE
|
|
@@ -128,7 +128,7 @@ public:
|
|
|
|
|
|
}
|
|
|
|
|
|
- void post_event(typename Time::type t,
|
|
|
+ void post_event(const typename Time::type& t,
|
|
|
const common::ExternalEvent < Time >& event)
|
|
|
{
|
|
|
|
|
@@ -156,7 +156,7 @@ public:
|
|
|
|
|
|
}
|
|
|
|
|
|
- typename Time::type transition(typename Time::type t)
|
|
|
+ typename Time::type transition(const typename Time::type& t)
|
|
|
{
|
|
|
|
|
|
#ifdef WITH_TRACE
|