OverviewYour process must always create all of its outputs in case any of them are needed. However, it may often be the case that one or more process output Ports is not "Listened" - that is, it it neither Linked to some input Port nor logged by the user. For some outputs, there may be a non-negligible computational saving in choosing not to write real data to them - indeed, you may avoid massive computations if a particular output is not going to be seen by anyone. You must check this flag in EVENT_INIT_POSTCONNECT; before this, its value is undefined. ExampleThis is derived from the test component "listened", which was accessible at time of writing here. C++ Source Code (against 1199)
class COMPONENT_CLASS_CPP
Symbol COMPONENT_CLASS_CPPEvent F_LISTENED bout D_INFO DOUBLE S_NULL |
||
This is a documentation page for the BRAHMS Modular Execution (Simulation) Framework. For details of licensing and distribution, please click here. To advise of an error or omission, please click here. |