vle-forge / vle

Virtual Laboratory Environment
http://www.vle-project.org
GNU General Public License v3.0
21 stars 22 forks source link

[devs] allows negative time in time advance #241

Open quesnel opened 7 years ago

quesnel commented 7 years ago

A funny behaviour: if a vle::devs::Dynamics::timeAdvance returns a negative value, VLE kernel will interpret this value as an absolute date instead of a duration. Seems to be useful to (re)synchronize model with integer dates and permits to reduce real representation problems.

quesnel commented 7 years ago

However: how to build negative absolute date?

Prohibits negative begin date?

quesnel commented 7 years ago

@duboz : we merge this behaviour in VLE2 or not?