class module The module class is an abstract simulation element
The module class is an abstract simulation element. It provides a general interface and takes care of io bookkeeping for derived classes.
data_ref(const data_ref& source)
~data_ref()
data_ref& operator=(const data_ref& rhs)
bool has_type()
bool has_data()
bool is_complete()
bool operator==(const data_ref& rhs)
bool operator!=(const data_ref& rhs)
void set_type(const string& type_arg)
const string& get_type()
void set_data(void* data_arg)
void* get_data()
bool make_type()
bool parse_and_set(const string& str)
data_str(const data_str& source)
~data_str()
data_str& operator=(const data_str& rhs)
void set_data(const string& data_arg)
const string& get_data()
void set_location(const string& location_arg)
const string NAME_SEPARATOR("::")
port(const string& name_arg = "", const module* parent_arg = NULL)
port(const port&)
~port()
port& operator=(const port& rhs)
void set_name(const string& name_arg)
string get_name(const module* with_respect_to = NULL)
bool has_source()
bool immediate_source_is(const void* source_arg)
bool eventual_source_is(const void* source_arg)
bool has_complete_ref()
bool had_error()
bool is_resolved()
bool unset_source()
bool set_source(port* remote_source_arg)
bool set_source(module* local_source_arg)
const data_ref& get_ref(const data_ref& default_ref)
bool tick_nq_source( adlib_queue<module*>* pretickq, adlib_queue<module*>* tickq, adlib_queue<module*>* tbdq )
string name
const module* parent
module* local_source
port* remote_source
adlib_flexible_array1d <port*> dependent
adlib_bitset32 state
data_ref ref
void add_dependent(port* p)
void remove_dependent(port* p)
INT_DEBUG
ERROR
WARNING
INFO
module(const module& source)
virtual ~module()
module& operator=(const module& rhs)
const string& get_type()
virtual module* make_type( const string& name_arg, const module* parent_arg, const string& mod_type )
virtual module* new_type(const string& name_arg, const module* parent_arg)
void set_name(const string& name_arg)
string get_name(const module* with_respect_to = NULL)
void load(file_reader* fr = NULL, int depth = 0)
void save(file_writer* fw)
bool set_time_step(adlib_real time_step_arg)
adlib_real get_time_step()
void send_messages_to(ostream* os, message_type index)
void enable_messages(message_type index)
void disable_messages(message_type index)
bool messages_enabled(message_type index)
void copy_message_interface(const module& source)
string make_indexed_input_name(int index)
string make_indexed_output_name(int index)
bool parse_indexed_input_name(const string& pname, int* index = NULL)
bool parse_indexed_output_name(const string& pname, int* index = NULL)
adlib_stack <string> get_unbound_port_names()
adlib_stack <string> get_bound_port_names()
bool connect(const string& pfname, module* dest, const string& ptname)
bool disconnect(const string& pfname, module* dest, const string& ptname)
data_ref get_port_ref(port* pt)
bool resolve_dependencies()
bool tick_nq_dependencies( adlib_queue<module*>* pretickq, adlib_queue<module*>* tickq, adlib_queue<module*>* tbdq, bool recursive )
inline void tick()
inline void pretick()
inline adlib_real get_time_now()
const string Mod_Type
void have_delay()
void set_time_now(adlib_real time_now_arg)
ostream& mess(message_type index)
ostream& mess_cont(message_type index)
void remove_port(port* p)
port* find_port(const string& pname)
port* find_or_add_port(const string& pname)
string file_reader_location(const file_reader& fr)
bool file_reader_next(file_reader* fr, int depth)
void parse_error(const file_reader& fr, const string& as)
void parse_error( const string& field, const string& as, const string& location )
void syntax_error(const file_reader& fr)
void set_all( file_reader* fr, int depth, const adlib_array1d<string>& keyword, const adlib_array1d<string>& err, adlib_array1d<data_ref>* ref, adlib_array1d< adlib_stack<data_str> >* str )
virtual bool describe_port( const string& port_name, data_ref* default_ref = NULL, bool* is_dependent = NULL )
virtual adlib_stack <string> get_dependencies()
virtual void set_data_pointer(const string& port_name, const void* data_pointer)
virtual void sub_load(file_reader* fr, int depth)
virtual void sub_save(file_writer* fw)
virtual bool sub_set_time_step(adlib_real time_step_arg)
virtual void preaction()
virtual void action()
string int_to_string(int i)
string real_to_string(adlib_real x, int precision)
enum state_bit
const string MOD_NAME_SEPARATOR(".")
const module* parent
string name
adlib_bitset32 state
adlib_array1d <message_stream> message_left
adlib_flexible_array1d <port> io_port
adlib_real time_now
adlib_real time_step
void build_message_headers()
bool connect_from(port* pf, const string& ptname)
bool disconnect_from(port* pf, const string& ptname)
inline adlib_real module::get_time_now()
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de