-/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
xbt_die("Unimplemented distribution");
}
}
-double StochasticDatedValue::get_value()
+
+double StochasticDatedValue::get_value() const
{
return draw(value_law, value_params);
}
-double StochasticDatedValue::get_date()
+
+double StochasticDatedValue::get_date() const
{
return draw(date_law, date_params);
}
-DatedValue StochasticDatedValue::get_datedvalue()
+
+DatedValue StochasticDatedValue::get_datedvalue() const
{
DatedValue event;
event.date_ = get_date();