OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::CORBAModule Class Reference
[Network Classes]

The module and factory to drive the test source nodes. More...

#include <CORBAModule.h>

Inheritance diagram for ot::CORBAModule:

Inheritance graph
[legend]
Collaboration diagram for ot::CORBAModule:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CORBAModule ()
virtual ~CORBAModule ()
virtual void init (StringTable &attributes, ConfigNode *localTree)
void initializeORB (int argc, char **argv)
void runORB ()
void destroyORB ()
PortableServer::POA_var getPOA ()
virtual void clear ()
virtual NodecreateNode (const std::string &name, StringTable &attributes)
virtual void pushEvent ()

Public Attributes

PortableServer::POAManager_var pman

Protected Attributes

CORBASinkVector sinks
SourceNodeMap sources
bool persistent

Private Attributes

CORBA::ORB_var orb
CORBA::Object_var objref
PortableServer::POA_var poa
PortableServer::POA_var root_poa

Detailed Description

The module and factory to drive the test source nodes.

It constructs OTSource and OTSink nodes via the NodeFactory interface and pushes events into the tracker tree according to the nodes configuration.

Author:
Joseph Newman

Definition at line 73 of file CORBAModule.h.


Constructor & Destructor Documentation

ot::CORBAModule::CORBAModule (  )  [inline]

constructor method.

Definition at line 85 of file CORBAModule.h.

ot::CORBAModule::~CORBAModule (  )  [virtual]

Destructor method, clears nodes member.

Definition at line 129 of file CORBAModule.cxx.

References destroyORB(), and sinks.


Member Function Documentation

void ot::CORBAModule::clear (  )  [virtual]

Clears nodes.

Definition at line 173 of file CORBAModule.cxx.

References sinks.

Node * ot::CORBAModule::createNode ( const std::string &  name,
StringTable attributes 
) [virtual]

This method is called to ruct a new Node.

It compares name to the TestSource element name, and if it matches creates a new TestSource node.

Parameters:
name reference to string containing element name refenrence to StringMap containing attribute values
Returns:
pointer to new Node or NULL. The new Node must be allocated with new !

Implements ot::NodeFactory.

Definition at line 184 of file CORBAModule.cxx.

References ot::CORBAUtils::bindObjectReferenceToName(), ot::StringTable::get(), ot::CORBAUtils::getObjectId(), ot::CORBAUtils::getObjectReference(), LOG_ACE_INFO(), orb, persistent, poa, sinks, and sources.

void ot::CORBAModule::destroyORB (  ) 

initializes CORBA orb

Definition at line 60 of file CORBAModule.cxx.

References orb.

Referenced by ~CORBAModule().

PortableServer::POA_var ot::CORBAModule::getPOA (  )  [inline]

Definition at line 104 of file CORBAModule.h.

void ot::CORBAModule::init ( StringTable attributes,
ConfigNode localTree 
) [virtual]

initializes the tracker module.

This class provides an implementation that sets the initialization flag to true. Subclasses should call this method, if they override it, before doing anything else. It takes the attributes of the element configuring this module and a local tree consisting of the children of the element. This tree must be build of Nodes.

Parameters:
attributes StringTable of elements attribute values. Should be possibly , but is not for convenience.
localTree pointer to root of configuration nodes tree

Reimplemented from ot::Module.

Definition at line 135 of file CORBAModule.cxx.

References ot::StringTable::containsKey(), ot::StringTable::get(), ot::Module::init(), initializeORB(), and persistent.

void ot::CORBAModule::initializeORB ( int  argc,
char **  argv 
)

initializes CORBA orb

Definition at line 85 of file CORBAModule.cxx.

References objref, orb, persistent, pman, poa, and root_poa.

Referenced by init().

void ot::CORBAModule::pushEvent (  )  [virtual]

pushes events into the tracker tree.

Checks all TestSources and pushes new events, if a TestSource fires.

Reimplemented from ot::Module.

Definition at line 234 of file CORBAModule.cxx.

References sources.

void ot::CORBAModule::runORB (  ) 

block waiting for orb to be destroyed


Member Data Documentation

CORBA::Object_var ot::CORBAModule::objref [private]

Definition at line 124 of file CORBAModule.h.

Referenced by initializeORB().

CORBA::ORB_var ot::CORBAModule::orb [private]

Definition at line 123 of file CORBAModule.h.

Referenced by createNode(), destroyORB(), and initializeORB().

bool ot::CORBAModule::persistent [protected]

Definition at line 80 of file CORBAModule.h.

Referenced by createNode(), init(), and initializeORB().

PortableServer::POAManager_var ot::CORBAModule::pman

Definition at line 103 of file CORBAModule.h.

Referenced by initializeORB().

PortableServer::POA_var ot::CORBAModule::poa [private]

Definition at line 125 of file CORBAModule.h.

Referenced by createNode(), and initializeORB().

PortableServer::POA_var ot::CORBAModule::root_poa [private]

Definition at line 126 of file CORBAModule.h.

Referenced by initializeORB().

list of CORBASource nodes in the tree

Definition at line 78 of file CORBAModule.h.

Referenced by clear(), createNode(), and ~CORBAModule().

Definition at line 79 of file CORBAModule.h.

Referenced by createNode(), and pushEvent().


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

copyright (c) 2006 Graz University of Technology