23 unsigned int current_iterations_ = 0;
27 double current_seconds_ = 0.0;
34 StateModelDecorator(std::move(state_model)),
35 pImpl_(std::unique_ptr<ImplData>(
new ImplData))
40 rImpl.
modality_ = ImplData::Modality::Iteration;
44 rImpl.
seconds_ = std::numeric_limits<double>::infinity();
49 StateModelDecorator(std::move(state_model)),
50 pImpl_(std::unique_ptr<ImplData>(
new ImplData))
55 rImpl.
modality_ = ImplData::Modality::Time;
57 rImpl.
iterations_ = std::numeric_limits<unsigned int>::max();
63 std::cerr <<
"WARNING::TIMEDECREASINGDYNAMICS::CTOR\n";
64 std::cerr <<
"WARNING::LOG:\n\tInput parameter `seconds` is negative. Used as positive.\n";
65 std::cerr <<
"WARNING::LOG:\n\tProvided: " << seconds <<
". Used " << rImpl.
seconds_ <<
"." << std::endl;
71 StateModelDecorator(std::move(state_model)),
72 pImpl_(std::move(state_model.pImpl_))
82 StateModelDecorator::operator=(std::move(state_model));
84 pImpl_ = std::move(state_model.pImpl_);
99 case ImplData::Modality::Iteration:
106 case ImplData::Modality::Time:
114 return StateModelDecorator::getNoiseSample(num);
117 return StateModelDecorator::getNoiseSample(num) * damper;
126 if (property ==
"tdd_reset")
130 case ImplData::Modality::Iteration:
137 case ImplData::Modality::Time:
152 if (property ==
"tdd_advance")
156 case ImplData::Modality::Iteration:
163 case ImplData::Modality::Time:
181 return StateModelDecorator::setProperty(property);