SyDEVS  v0.6.5
Multiscale Simulation and Systems Modeling Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sydevs::systems::node_interface Class Reference

#include <node_interface.h>

Public Member Functions

 node_interface (const std::string &node_name, system_node *node_ptr, const node_context &external_context)
 
 node_interface (const node_interface &)=delete
 No copy constructor. More...
 
node_interfaceoperator= (const node_interface &)=delete
 No copy assignment. More...
 
 node_interface (node_interface &&)=delete
 No move constructor. More...
 
node_interfaceoperator= (node_interface &&)=delete
 No move assignment. More...
 
virtual ~node_interface ()=default
 Destructor. More...
 
const std::string & node_name ()
 
const std::string & full_name ()
 
int64 node_index ()
 
node_contextexternal_context ()
 
int64 add_flow_input_port (const std::string &port_name)
 
int64 flow_input_port_count ()
 
const std::string & flow_input_port_name (int64 port_index)
 
const pointerflow_input_port_value (int64 port_index)
 
void clear_flow_inputs ()
 
void assign_flow_input (int64 port_index, const pointer &val)
 
tostring_function flow_input_tostring_func (int64 port_index)
 
void set_flow_input_printable (int64 port_index, tostring_function tostring_func)
 
int64 add_message_input_port (const std::string &port_name)
 
int64 message_input_port_count ()
 
const std::string & message_input_port_name (int64 port_index)
 
const pointermessage_input_port_value (int64 port_index)
 
int64 message_input_port_index ()
 
void clear_message_input ()
 
void set_message_input (int64 port_index, const pointer &val)
 
tostring_function message_input_tostring_func (int64 port_index)
 
void set_message_input_printable (int64 port_index, tostring_function tostring_func)
 
int64 add_message_output_port (const std::string &port_name)
 
int64 message_output_port_count ()
 
const std::string & message_output_port_name (int64 port_index)
 
int64 message_output_list_size ()
 
int64 message_output_index (int64 list_index)
 
const pointermessage_output_value (int64 list_index)
 
void clear_message_outputs ()
 
void append_message_output (int64 port_index, const pointer &val)
 
tostring_function message_output_tostring_func (int64 port_index)
 
void set_message_output_printable (int64 port_index, tostring_function tostring_func)
 
int64 add_flow_output_port (const std::string &port_name)
 
int64 flow_output_port_count ()
 
const std::string & flow_output_port_name (int64 port_index)
 
const pointerflow_output_port_value (int64 port_index)
 
void clear_flow_outputs ()
 
void assign_flow_output (int64 port_index, const pointer &val)
 
tostring_function flow_output_tostring_func (int64 port_index)
 
void set_flow_output_printable (int64 port_index, tostring_function tostring_func)
 
void activate (data_mode dmode, data_goal dgoal)
 
void deactivate ()
 
bool active () const
 
data_mode dmode () const
 
data_goal dgoal () const
 
int64 missing_flow_input ()
 
int64 missing_flow_output ()
 
void print_port_value (const std::string &port_name, const std::string &val_string)
 
void print_flow_input (int64 port_index)
 
void print_message_input (int64 port_index)
 
void print_message_output (int64 list_index, int64 port_index)
 
void print_flow_output (int64 port_index)
 
void print_command_text (const std::string &command, const std::string &text)
 
bool print_on_event_flag ()
 
void print_on_event (bool flag=true)
 
void print_event (const std::string &text)
 
bool print_on_elapsed_duration_flag ()
 
void print_on_elapsed_duration (bool flag)
 
void print_elapsed_duration (duration elapsed_dt)
 
bool print_on_planned_duration_flag ()
 
void print_on_planned_duration (bool flag)
 
void print_planned_duration (duration planned_dt)
 

Constructor & Destructor Documentation

sydevs::systems::node_interface::node_interface ( const std::string &  node_name,
system_node node_ptr,
const node_context external_context 
)
sydevs::systems::node_interface::node_interface ( const node_interface )
delete

No copy constructor.

sydevs::systems::node_interface::node_interface ( node_interface &&  )
delete

No move constructor.

virtual sydevs::systems::node_interface::~node_interface ( )
virtualdefault

Destructor.

Member Function Documentation

void sydevs::systems::node_interface::activate ( data_mode  dmode,
data_goal  dgoal 
)
inline
bool sydevs::systems::node_interface::active ( ) const
inline
int64 sydevs::systems::node_interface::add_flow_input_port ( const std::string &  port_name)
int64 sydevs::systems::node_interface::add_flow_output_port ( const std::string &  port_name)
int64 sydevs::systems::node_interface::add_message_input_port ( const std::string &  port_name)
int64 sydevs::systems::node_interface::add_message_output_port ( const std::string &  port_name)
void sydevs::systems::node_interface::append_message_output ( int64  port_index,
const pointer val 
)
void sydevs::systems::node_interface::assign_flow_input ( int64  port_index,
const pointer val 
)
void sydevs::systems::node_interface::assign_flow_output ( int64  port_index,
const pointer val 
)
void sydevs::systems::node_interface::clear_flow_inputs ( )
void sydevs::systems::node_interface::clear_flow_outputs ( )
void sydevs::systems::node_interface::clear_message_input ( )
void sydevs::systems::node_interface::clear_message_outputs ( )
void sydevs::systems::node_interface::deactivate ( )
inline
data_goal sydevs::systems::node_interface::dgoal ( ) const
inline
data_mode sydevs::systems::node_interface::dmode ( ) const
inline
node_context & sydevs::systems::node_interface::external_context ( )
inline
int64 sydevs::systems::node_interface::flow_input_port_count ( )
const std::string & sydevs::systems::node_interface::flow_input_port_name ( int64  port_index)
const pointer & sydevs::systems::node_interface::flow_input_port_value ( int64  port_index)
tostring_function sydevs::systems::node_interface::flow_input_tostring_func ( int64  port_index)
int64 sydevs::systems::node_interface::flow_output_port_count ( )
const std::string & sydevs::systems::node_interface::flow_output_port_name ( int64  port_index)
const pointer & sydevs::systems::node_interface::flow_output_port_value ( int64  port_index)
tostring_function sydevs::systems::node_interface::flow_output_tostring_func ( int64  port_index)
const std::string & sydevs::systems::node_interface::full_name ( )
inline
int64 sydevs::systems::node_interface::message_input_port_count ( )
int64 sydevs::systems::node_interface::message_input_port_index ( )
const std::string & sydevs::systems::node_interface::message_input_port_name ( int64  port_index)
const pointer & sydevs::systems::node_interface::message_input_port_value ( int64  port_index)
tostring_function sydevs::systems::node_interface::message_input_tostring_func ( int64  port_index)
int64 sydevs::systems::node_interface::message_output_index ( int64  list_index)
int64 sydevs::systems::node_interface::message_output_list_size ( )
int64 sydevs::systems::node_interface::message_output_port_count ( )
const std::string & sydevs::systems::node_interface::message_output_port_name ( int64  port_index)
tostring_function sydevs::systems::node_interface::message_output_tostring_func ( int64  port_index)
const pointer & sydevs::systems::node_interface::message_output_value ( int64  list_index)
int64 sydevs::systems::node_interface::missing_flow_input ( )
int64 sydevs::systems::node_interface::missing_flow_output ( )
int64 sydevs::systems::node_interface::node_index ( )
inline
const std::string & sydevs::systems::node_interface::node_name ( )
inline
node_interface& sydevs::systems::node_interface::operator= ( const node_interface )
delete

No copy assignment.

node_interface& sydevs::systems::node_interface::operator= ( node_interface &&  )
delete

No move assignment.

void sydevs::systems::node_interface::print_command_text ( const std::string &  command,
const std::string &  text 
)
void sydevs::systems::node_interface::print_elapsed_duration ( duration  elapsed_dt)
void sydevs::systems::node_interface::print_event ( const std::string &  text)
void sydevs::systems::node_interface::print_flow_input ( int64  port_index)
void sydevs::systems::node_interface::print_flow_output ( int64  port_index)
void sydevs::systems::node_interface::print_message_input ( int64  port_index)
void sydevs::systems::node_interface::print_message_output ( int64  list_index,
int64  port_index 
)
void sydevs::systems::node_interface::print_on_elapsed_duration ( bool  flag)
bool sydevs::systems::node_interface::print_on_elapsed_duration_flag ( )
void sydevs::systems::node_interface::print_on_event ( bool  flag = true)
bool sydevs::systems::node_interface::print_on_event_flag ( )
void sydevs::systems::node_interface::print_on_planned_duration ( bool  flag)
bool sydevs::systems::node_interface::print_on_planned_duration_flag ( )
void sydevs::systems::node_interface::print_planned_duration ( duration  planned_dt)
void sydevs::systems::node_interface::print_port_value ( const std::string &  port_name,
const std::string &  val_string 
)
void sydevs::systems::node_interface::set_flow_input_printable ( int64  port_index,
tostring_function  tostring_func 
)
void sydevs::systems::node_interface::set_flow_output_printable ( int64  port_index,
tostring_function  tostring_func 
)
void sydevs::systems::node_interface::set_message_input ( int64  port_index,
const pointer val 
)
void sydevs::systems::node_interface::set_message_input_printable ( int64  port_index,
tostring_function  tostring_func 
)
void sydevs::systems::node_interface::set_message_output_printable ( int64  port_index,
tostring_function  tostring_func 
)

The documentation for this class was generated from the following files: