|
@@ -103,9 +103,11 @@ void run_predator_prey(artis::common::context::Context<artis::common::DoubleTime
|
|
|
|
|
|
rc.run(context);
|
|
rc.run(context);
|
|
|
|
|
|
- artis::observer::Output<artis::common::DoubleTime> output(rc.observer());
|
|
|
|
|
|
+ artis::observer::Output<artis::common::DoubleTime,
|
|
|
|
+ artis::observer::TimedIterator<artis::common::DoubleTime>>
|
|
|
|
+ output(rc.observer());
|
|
|
|
|
|
- output(0, 100, 0.1);
|
|
|
|
|
|
+ output(context.begin(), context.end(), {context.begin(), 0.1});
|
|
|
|
|
|
// rc.save(context);
|
|
// rc.save(context);
|
|
//
|
|
//
|
|
@@ -197,9 +199,11 @@ void test_predator_prey_smart_gardener()
|
|
|
|
|
|
rc.run(context);
|
|
rc.run(context);
|
|
|
|
|
|
- artis::observer::Output<artis::common::DoubleTime> output(rc.observer());
|
|
|
|
|
|
+ artis::observer::Output<artis::common::DoubleTime,
|
|
|
|
+ artis::observer::TimedIterator<artis::common::DoubleTime>>
|
|
|
|
+ output(rc.observer());
|
|
|
|
|
|
- output(0, 100, 0.1);
|
|
|
|
|
|
+ output(context.begin(), context.end(), {context.begin(), 0.1});
|
|
}
|
|
}
|
|
|
|
|
|
class MixedPredatorPreyView : public artis::observer::View<artis::common::DoubleTime>
|
|
class MixedPredatorPreyView : public artis::observer::View<artis::common::DoubleTime>
|
|
@@ -234,9 +238,11 @@ void test_mixed_predator_prey()
|
|
|
|
|
|
rc.run(context);
|
|
rc.run(context);
|
|
|
|
|
|
- artis::observer::Output<artis::common::DoubleTime> output(rc.observer());
|
|
|
|
|
|
+ artis::observer::Output<artis::common::DoubleTime,
|
|
|
|
+ artis::observer::TimedIterator<artis::common::DoubleTime>>
|
|
|
|
+ output(rc.observer());
|
|
|
|
|
|
- output(0, 100, 0.1);
|
|
|
|
|
|
+ output(context.begin(), context.end(), {context.begin(), 0.1});
|
|
}
|
|
}
|
|
|
|
|
|
class MultiPredatorPreyView : public artis::observer::View<artis::common::DoubleTime>
|
|
class MultiPredatorPreyView : public artis::observer::View<artis::common::DoubleTime>
|
|
@@ -278,9 +284,11 @@ void test_multi_predator_prey()
|
|
|
|
|
|
rc.run(context);
|
|
rc.run(context);
|
|
|
|
|
|
- artis::observer::Output<artis::common::DoubleTime> output(rc.observer());
|
|
|
|
|
|
+ artis::observer::Output<artis::common::DoubleTime,
|
|
|
|
+ artis::observer::TimedIterator<artis::common::DoubleTime>>
|
|
|
|
+ output(rc.observer());
|
|
|
|
|
|
- output(0, 100, 0.1);
|
|
|
|
|
|
+ output(context.begin(), context.end(), {context.begin(), 0.1});
|
|
}
|
|
}
|
|
|
|
|
|
int main()
|
|
int main()
|