Commit 8d8d7e93 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

core: add observation for generator

parent 9c20112d
Pipeline #11730 passed with stage
in 45 seconds
......@@ -3343,11 +3343,15 @@ struct generator
status lambda(
data_array<output_port, output_port_id>& output_ports) noexcept
{
if (auto* port = output_ports.try_to_get(y[0]); port)
port->messages.emplace_front(value);
output_ports.get(y[0]).messages.emplace_front(value);
return status::success;
}
message observation(time /*t*/) const noexcept
{
return message(value);
}
};
struct constant
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment