1.1 --- a/samples/main-simulator.cc Sun Sep 03 12:43:00 2006 +0200
1.2 +++ b/samples/main-simulator.cc Sun Sep 03 12:43:09 2006 +0200
1.3 @@ -9,7 +9,7 @@
1.4 public:
1.5 void start (void);
1.6 private:
1.7 - void deal_with_event (void);
1.8 + void deal_with_event (double event_value);
1.9 };
1.10
1.11 void
1.12 @@ -17,12 +17,12 @@
1.13 {
1.14 Simulator::schedule (RelTimeS (10.0),
1.15 &MyModel::deal_with_event,
1.16 - this);
1.17 + this, Simulator::now ().s ());
1.18 }
1.19 void
1.20 -MyModel::deal_with_event (void)
1.21 +MyModel::deal_with_event (double value)
1.22 {
1.23 - std::cout << "Member method received event at " << Simulator::now ().s () << " started at " << std::endl;
1.24 + std::cout << "Member method received event at " << Simulator::now ().s () << " started at " << value << std::endl;
1.25 }
1.26
1.27 static void