#include <SingleThreadAnalogMsgDispatcher.h>
Definition at line 20 of file SingleThreadAnalogMsgDispatcher.h.
typedef vector< vector<pair<SimObject*,analog_port_id_t> > > SingleThreadAnalogMsgDispatcher::port_msg_destinations_type [protected] |
Definition at line 64 of file SingleThreadAnalogMsgDispatcher.h.
typedef vector< vector< pair<void *, Field::ValueType> > > SingleThreadAnalogMsgDispatcher::field_msg_destinations_type [protected] |
Definition at line 70 of file SingleThreadAnalogMsgDispatcher.h.
typedef vector< pair< SimObject *,analog_port_id_t> > SingleThreadAnalogMsgDispatcher::port_msg_sources_type [protected] |
Definition at line 81 of file SingleThreadAnalogMsgDispatcher.h.
typedef vector< pair< void *, Field::ValueType> > SingleThreadAnalogMsgDispatcher::field_msg_sources_type [protected] |
Definition at line 82 of file SingleThreadAnalogMsgDispatcher.h.
typedef hash_map< pair<SimObject *, analog_port_id_t>, int, PCSIM::hash< pair<SimObject *,analog_port_id_t> > > SingleThreadAnalogMsgDispatcher::port_msg_sources_positions_type [protected] |
Definition at line 93 of file SingleThreadAnalogMsgDispatcher.h.
typedef hash_map< void *, int, PCSIM::hash<void *> > SingleThreadAnalogMsgDispatcher::field_msg_sources_positions_type [protected] |
Definition at line 96 of file SingleThreadAnalogMsgDispatcher.h.
SingleThreadAnalogMsgDispatcher::SingleThreadAnalogMsgDispatcher | ( | ) |
Definition at line 11 of file SingleThreadAnalogMsgDispatcher.cpp.
References field2field_msg_sources_positions, field2port_msg_sources_positions, initialized, port2field_msg_sources_positions, and port2port_msg_sources_positions.
SingleThreadAnalogMsgDispatcher::~SingleThreadAnalogMsgDispatcher | ( | ) | [virtual] |
Definition at line 20 of file SingleThreadAnalogMsgDispatcher.cpp.
References field2field_msg_sources_positions, field2port_msg_sources_positions, initialized, port2field_msg_sources_positions, and port2port_msg_sources_positions.
void SingleThreadAnalogMsgDispatcher::addAnalogMessage | ( | SimObject * | src, | |
analog_port_id_t | src_port, | |||
SimObject * | dest, | |||
analog_port_id_t | dest_port | |||
) |
Adds new local analog message to the dispatcher.
The message is originating from a specified output port from the source object and terminating to the specified input port of the destination object.
src | source simulation object which send the message | |
src_port | id of the output port on the source object from which the message originates | |
dest | destination object receiving the analog message | |
dest_port | input port on the destination object where the analog message arrives |
Definition at line 81 of file SingleThreadAnalogMsgDispatcher.cpp.
References port2port_msg_destinations, port2port_msg_sources, and port2port_msg_sources_positions.
Referenced by STAnalogMessageCreator::addAnalogMessage().
void SingleThreadAnalogMsgDispatcher::addAnalogMessage | ( | SimObject * | src, | |
string | srcfield, | |||
SimObject * | dest, | |||
string | destfield | |||
) |
Adds an analog message which ties a value of some field from source object to another field of the destination object.
Definition at line 135 of file SingleThreadAnalogMsgDispatcher.cpp.
References field2field_msg_destinations, field2field_msg_sources, field2field_msg_sources_positions, SimObject::findField(), Field::getPtr(), and Field::getType().
void SingleThreadAnalogMsgDispatcher::addAnalogMessage | ( | SimObject * | src, | |
analog_port_id_t | src_port, | |||
SimObject * | dest, | |||
string | destfield | |||
) |
Adds an analog message from some object analog output port to another object field value.
Definition at line 98 of file SingleThreadAnalogMsgDispatcher.cpp.
References SimObject::findField(), Field::getPtr(), Field::getType(), port2field_msg_destinations, port2field_msg_sources, and port2field_msg_sources_positions.
void SingleThreadAnalogMsgDispatcher::addAnalogMessage | ( | SimObject * | src, | |
string | srcfield, | |||
SimObject * | dest, | |||
analog_port_id_t | dest_port | |||
) |
Adds an analog message from a source field value of some object, to an input port of a destination object.
Definition at line 117 of file SingleThreadAnalogMsgDispatcher.cpp.
References field2port_msg_destinations, field2port_msg_sources, field2port_msg_sources_positions, SimObject::findField(), Field::getPtr(), and Field::getType().
void SingleThreadAnalogMsgDispatcher::dispatchAnalogMsgs | ( | ) | [virtual] |
Dispatch all analog messages contained in the dispatcher.
Copies double analog values from sources to destinations.
Implements AnalogMessageDispatcher.
Definition at line 30 of file SingleThreadAnalogMsgDispatcher.cpp.
References field2field_msg_destinations, field2field_msg_sources, field2port_msg_destinations, field2port_msg_sources, Field::getValue(), port2field_msg_destinations, port2field_msg_sources, port2port_msg_destinations, port2port_msg_sources, and Field::setValue().
Referenced by MultiThreadAnalogMsgDispatcher::dispatchAnalogMsgs().
void SingleThreadAnalogMsgDispatcher::initialize | ( | ) | [virtual] |
Implements AnalogMessageDispatcher.
Definition at line 154 of file SingleThreadAnalogMsgDispatcher.cpp.
References field2field_msg_sources_positions, field2port_msg_sources_positions, initialized, port2field_msg_sources_positions, and port2port_msg_sources_positions.
virtual void SingleThreadAnalogMsgDispatcher::reset | ( | double | dt | ) | [inline, virtual] |
Implements AnalogMessageDispatcher.
Definition at line 64 of file SingleThreadAnalogMsgDispatcher.h.
Definition at line 72 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), and dispatchAnalogMsgs().
field_msg_destinations_type SingleThreadAnalogMsgDispatcher::port2field_msg_destinations [protected] |
Definition at line 74 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), and dispatchAnalogMsgs().
Definition at line 76 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), and dispatchAnalogMsgs().
field_msg_destinations_type SingleThreadAnalogMsgDispatcher::field2field_msg_destinations [protected] |
Definition at line 78 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), and dispatchAnalogMsgs().
Definition at line 84 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), and dispatchAnalogMsgs().
Definition at line 85 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), and dispatchAnalogMsgs().
Definition at line 87 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), and dispatchAnalogMsgs().
Definition at line 88 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), and dispatchAnalogMsgs().
port_msg_sources_positions_type* SingleThreadAnalogMsgDispatcher::port2port_msg_sources_positions [protected] |
Definition at line 98 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), initialize(), SingleThreadAnalogMsgDispatcher(), and ~SingleThreadAnalogMsgDispatcher().
port_msg_sources_positions_type* SingleThreadAnalogMsgDispatcher::port2field_msg_sources_positions [protected] |
Definition at line 99 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), initialize(), SingleThreadAnalogMsgDispatcher(), and ~SingleThreadAnalogMsgDispatcher().
field_msg_sources_positions_type* SingleThreadAnalogMsgDispatcher::field2port_msg_sources_positions [protected] |
Definition at line 101 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), initialize(), SingleThreadAnalogMsgDispatcher(), and ~SingleThreadAnalogMsgDispatcher().
field_msg_sources_positions_type* SingleThreadAnalogMsgDispatcher::field2field_msg_sources_positions [protected] |
Definition at line 102 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by addAnalogMessage(), initialize(), SingleThreadAnalogMsgDispatcher(), and ~SingleThreadAnalogMsgDispatcher().
bool SingleThreadAnalogMsgDispatcher::initialized [protected] |
Definition at line 104 of file SingleThreadAnalogMsgDispatcher.h.
Referenced by initialize(), SingleThreadAnalogMsgDispatcher(), and ~SingleThreadAnalogMsgDispatcher().