2 #ifndef SYDEVS_SYSTEMS_ATOMIC_NODE_H_
3 #define SYDEVS_SYSTEMS_ATOMIC_NODE_H_
57 void adopt_component_print_flags(
const system_node& node)
const;
59 virtual duration initialization_event() = 0;
62 virtual void finalization_event(
duration elapsed_dt) = 0;
95 inline void atomic_node::adopt_component_print_flags(
const system_node& node)
const
duration handle_planned_event(duration elapsed_dt)
Invoked when the planned duration elapses; calls planned_event.
Definition: atomic_node.cpp:32
const std::string & node_name() const
Returns the name of the node.
Definition: system_node.h:135
data_mode
Indicates the relevant data communication paradigm: dataflow (flow) or message-passing (message)...
Definition: data_mode.h:16
atomic_node(const std::string &node_name, const node_context &external_context)
Constructs an atomic_node.
Definition: atomic_node.h:69
A base class for all nodes from which systems models are constructed.
Definition: system_node.h:41
duration handle_unplanned_event(duration elapsed_dt)
Invoked whenever a message is received; calls unplanned_event.
Definition: atomic_node.cpp:20
A base class for indivisible nodes in which simulation behavior is procedurally encoded.
Definition: atomic_node.h:29
void print_on_planned_duration(bool flag=true) const
If flag is true, all planned durations are printed for this node.
Definition: atomic_node.h:83
void print_on_planned_duration(bool flag)
Definition: node_interface.cpp:396
data_mode node_dmode() const
Returns message for all atomic nodes.
Definition: atomic_node.h:89
Definition: node_context.h:16
void handle_finalization_event(duration elapsed_dt)
Invoked at the end of a simulation; calls finalization_event.
Definition: atomic_node.cpp:44
duration handle_initialization_event()
Invoked at the beginning of a simulation; calls initialization_event.
Definition: atomic_node.cpp:7
void print_on_elapsed_duration(bool flag=true) const
If flag is true, all elapsed durations are printed for this node.
Definition: atomic_node.h:77
Indicates message-passing.
virtual ~atomic_node()=default
Destructor.
void print_on_elapsed_duration(bool flag)
Definition: node_interface.cpp:376
node_interface & external_IO() const
Returns a non-const reference to the node's external interface.
Definition: system_node.h:288