User Manual, Developers Guide and API Documentation

simpletl::Component Class Reference

The SimpleTL component registers two implementation of the transport layer service wns::service::tl::Service. A TCP and a UDP model. The TCP service delays connection setup while the UDP connection is set up immediately.

#include <node/component/Component.hpp>

Inheritance diagram for simpletl::Component:

Inheritance graph
[legend]
Collaboration diagram for simpletl::Component:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Component (wns::node::Interface *node, const wns::pyconfig::View &pyco)
virtual void onNodeCreated ()
 Called by the parent node after all components of the parent node have been created.
virtual void onShutdown ()
 Called by the parent node after simulation end event occured.
virtual void onWorldCreated ()
 Called by the parent node after all nodes have been setup and all components have executed onNodeCreated().
virtual ~Component ()
 Is called in Node's destructor.

Private Member Functions

virtual void doStartup ()
 Registers the TCP and UDP service at the node wide service registry.

Private Attributes

wns::logger::Logger logger
TCPtcp
UDPudp


Detailed Description

Definition at line 45 of file Component.hpp.


Constructor & Destructor Documentation

simpletl::Component::Component ( wns::node::Interface _node,
const wns::pyconfig::View _pyco 
)

Parameters:
[in] _name The name of this component as used in the Node
[in] _node The Node this Component belongs to

Reimplemented from wns::node::component::Component.

virtual simpletl::Component::~Component (  )  [virtual]

Reimplemented from wns::node::component::Component.


Member Function Documentation

virtual void simpletl::Component::doStartup (  )  [private, virtual]

virtual void simpletl::Component::onNodeCreated (  )  [virtual]

Note:
Intra-Node dependencies like connecting components within the node to each other must be handled here. It is forbidden to try to resolve dependencies to other nodes here. Not all nodes have been setup yet.

Implements wns::node::component::Interface.

virtual void simpletl::Component::onShutdown (  )  [virtual]

virtual void simpletl::Component::onWorldCreated (  )  [virtual]

Note:
Resolve Inter-Node dependencies here. There are no restrictions on what you do here.

Implements wns::node::component::Interface.


Member Data Documentation

Definition at line 71 of file Component.hpp.

Definition at line 69 of file Component.hpp.

Definition at line 70 of file Component.hpp.


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

Generated on Sat May 26 03:32:39 2012 for openWNS by  doxygen 1.5.5