|
@@ -91,8 +91,8 @@ public:
|
|
|
++_value.x;
|
|
|
--_value.y;
|
|
|
|
|
|
- // std::cout << t << ": " << get_name() << " => dint -> "
|
|
|
- // << _value.x << " " << _value.y << std::endl;
|
|
|
+ std::cout << t << ": " << get_name() << " => dint -> "
|
|
|
+ << _value.x << " " << _value.y << std::endl;
|
|
|
|
|
|
if (_phase == SEND) {
|
|
|
_phase = WAIT;
|
|
@@ -109,13 +109,13 @@ public:
|
|
|
(void)msgs;
|
|
|
#endif
|
|
|
|
|
|
- // for (common::Bag < common::DoubleTime >::const_iterator it =
|
|
|
- // msgs.begin(); it != msgs.end(); ++it) {
|
|
|
- // std::cout << t << ": " << get_name()
|
|
|
- // << " => " << it->get_content().get_content < double >()
|
|
|
- // << std::endl;
|
|
|
- // }
|
|
|
-
|
|
|
+ for (common::Bag < common::DoubleTime >::const_iterator it =
|
|
|
+ msgs.begin(); it != msgs.end(); ++it) {
|
|
|
+ std::cout << t << ": " << get_name()
|
|
|
+ << " => " << it->get_content().get_content < double >()
|
|
|
+ << std::endl;
|
|
|
+ }
|
|
|
+
|
|
|
#ifdef WITH_TRACE
|
|
|
common::Trace < common::DoubleTime >::trace()
|
|
|
<< common::TraceElement < common::DoubleTime >(
|
|
@@ -138,8 +138,8 @@ public:
|
|
|
(void)msgs;
|
|
|
#endif
|
|
|
|
|
|
- // std::cout << t << ": " << get_name() << " => " << msgs.to_string()
|
|
|
- // << std::endl;
|
|
|
+ std::cout << t << ": " << get_name() << " => " << msgs.to_string()
|
|
|
+ << std::endl;
|
|
|
|
|
|
#ifdef WITH_TRACE
|
|
|
common::Trace < common::DoubleTime >::trace()
|
|
@@ -206,7 +206,7 @@ public:
|
|
|
common::ExternalEvent < common::DoubleTime >(
|
|
|
"out", common::Value(_value)));
|
|
|
|
|
|
- // std::cout << t << ": " << get_name() << " => lambda" << std::endl;
|
|
|
+ std::cout << t << ": " << get_name() << " => lambda" << std::endl;
|
|
|
|
|
|
#ifdef WITH_TRACE
|
|
|
common::Trace < common::DoubleTime >::trace()
|
|
@@ -258,8 +258,8 @@ public:
|
|
|
|
|
|
// delay();
|
|
|
|
|
|
- // std::cout << t << ": " << get_name() << " => dint -> "
|
|
|
- // << _value << std::endl;
|
|
|
+ std::cout << t << ": " << get_name() << " => dint -> "
|
|
|
+ << _value << std::endl;
|
|
|
|
|
|
if (_phase == SEND) {
|
|
|
_phase = WAIT;
|
|
@@ -276,14 +276,14 @@ public:
|
|
|
(void)msgs;
|
|
|
#endif
|
|
|
|
|
|
- // for (common::Bag < common::DoubleTime >::const_iterator it =
|
|
|
- // msgs.begin(); it != msgs.end(); ++it) {
|
|
|
- // std::cout << t << ": " << get_name()
|
|
|
- // << " => " << it->get_content().get_content < data >().x
|
|
|
- // << " " << it->get_content().get_content < data >().y
|
|
|
- // << std::endl;
|
|
|
- // }
|
|
|
-
|
|
|
+ for (common::Bag < common::DoubleTime >::const_iterator it =
|
|
|
+ msgs.begin(); it != msgs.end(); ++it) {
|
|
|
+ std::cout << t << ": " << get_name()
|
|
|
+ << " => " << it->get_content().get_content < data >().x
|
|
|
+ << " " << it->get_content().get_content < data >().y
|
|
|
+ << std::endl;
|
|
|
+ }
|
|
|
+
|
|
|
#ifdef WITH_TRACE
|
|
|
common::Trace < common::DoubleTime >::trace()
|
|
|
<< common::TraceElement < common::DoubleTime >(
|
|
@@ -367,7 +367,7 @@ public:
|
|
|
#endif
|
|
|
common::Bag < common::DoubleTime > msgs;
|
|
|
|
|
|
- // std::cout << t << ": " << get_name() << " => lambda" << std::endl;
|
|
|
+ std::cout << t << ": " << get_name() << " => lambda" << std::endl;
|
|
|
|
|
|
msgs.push_back(common::ExternalEvent <
|
|
|
common::DoubleTime >(
|