#include <PubSubWrapper.h>
|
| PubSubWrapper (OmNetCallbackInterface *o, const std::string &ip, const int port, const std::string &known_hostname, const int known_hostport, const std::vector< std::string > &rootList) |
| constructor creating wrapper out of simulator More...
|
|
void | subscribe (const pubsub::ChannelName channel, pubsub::BasicDeliverCallbackInterface< SimulationEventType > &callback) |
| wrapper for subscribe method of PubSubSystem More...
|
|
void | publish (const pubsub::ChannelName channel, const message::M2Message< SimulationEventType >::Ptr msg) const |
| wrapper for publish method of PubSubSystem More...
|
|
void | unsubscribe (const pubsub::ChannelName channel) const |
| wrapper for unsubscribe method of PubSubSystem More...
|
|
message::M2Message< SimulationEventType >::Ptr | createMessage (const pubsub::ChannelName channel, const SimulationEventType &v) |
| method to create a message for the specified channel with the given payload More...
|
|
message::NetworkMessage< net::NetworkType< net::OMNET > >::Ptr | transformToNetworkMessage (message::M2Message< SimulationEventType >::Ptr msg, const pubsub::ChannelName chan) |
| method to create NetworkMessage out of a M2Message More...
|
|
message::M2Message< SimulationEventType >::Ptr | transformToM2etisMessage (message::NetworkMessage< net::NetworkType< net::OMNET >>::Ptr msg, const pubsub::ChannelName chan) |
| method to create M2Message out of a NetworkMessage More...
|
|
pubsub::PubSubSystemEnvironment * | pssi () |
| getter for PubSubSystemEnvironment More...
|
|
void | Update () |
| method updating Scheduler for simulator More...
|
|
Definition at line 44 of file PubSubWrapper.h.
m2etis::sim::PubSubWrapper::PubSubWrapper |
( |
OmNetCallbackInterface * |
o, |
|
|
const std::string & |
ip, |
|
|
const int |
port, |
|
|
const std::string & |
known_hostname, |
|
|
const int |
known_hostport, |
|
|
const std::vector< std::string > & |
rootList |
|
) |
| |
constructor creating wrapper out of simulator
- Parameters
-
[in] | o | callback in simulator |
[in] | ip | IP of the node |
[in] | port | port of the node |
[in] | known_hostname | IP of the root node |
[in] | known_hostport | port of the root node |
message::M2Message<SimulationEventType>::Ptr m2etis::sim::PubSubWrapper::createMessage |
( |
const pubsub::ChannelName |
channel, |
|
|
const SimulationEventType & |
v |
|
) |
| |
method to create a message for the specified channel with the given payload
- Parameters
-
[in] | channel | channel for which the message will be created |
[in] | v | payload of the new message |
getter for PubSubSystemEnvironment
void m2etis::sim::PubSubWrapper::publish |
( |
const pubsub::ChannelName |
channel, |
|
|
const message::M2Message< SimulationEventType >::Ptr |
msg |
|
) |
| const |
wrapper for publish method of PubSubSystem
- Parameters
-
[in] | channel | channel to publish on |
[in] | msg | message to be published |
wrapper for subscribe method of PubSubSystem
- Parameters
-
[in] | channel | channel to subscribe on |
[in] | callback | DeliverCallback to be registered for this channel |
method to create M2Message out of a NetworkMessage
- Parameters
-
[in] | msg | message to be transformed |
[in] | chan | channel for this message |
method to create NetworkMessage out of a M2Message
- Parameters
-
[in] | msg | message to be transformed |
[in] | chan | channel for this message |
void m2etis::sim::PubSubWrapper::unsubscribe |
( |
const pubsub::ChannelName |
channel | ) |
const |
wrapper for unsubscribe method of PubSubSystem
- Parameters
-
[in] | channel | channel to unsubscribe off |
void m2etis::sim::PubSubWrapper::Update |
( |
| ) |
|
method updating Scheduler for simulator
The documentation for this class was generated from the following file: