PN Class Reference

Process Network. More...

#include <pn.h>

Inheritance diagram for PN:

Inheritance graph
[legend]
Collaboration diagram for PN:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PN ()
void start ()
void stop ()
void cancel ()
void join ()
bool isRunning ()
LibManager * getLibManager ()
void loadLibraries ()
virtual void init ()
void printState (std::ostream &stream, int indent=0)

Friends

std::ostream & operator<< (std::ostream &stream, PN &pn)

Detailed Description

Process Network.

Users of this class can build PNs by adding processes and connections to an instance of PN.

Warning: This class is not thread safe.


Constructor & Destructor Documentation

PN::PN (   ) 
 


Member Function Documentation

void PN::start (   ) 
 

void PN::stop (   ) 
 

This function requests each Process stop.

void PN::cancel (   ) 
 

void PN::join (   ) 
 

Blocks the current process on each of the Processes until their threads exit. This function may never return.

bool PN::isRunning (   ) 
 

Check if the PN is running.

Returns:
True if at least one thread is running

LibManager* PN::getLibManager (   )  [inline]
 

void PN::loadLibraries (   ) 
 

void PN::init (   )  [virtual]
 

Do nothing.

Reimplemented from YMLNode.

void PN::printState (  std::ostream &  stream,
int  indent = 0
) 
 


Friends And Related Function Documentation

std::ostream& operator<< (  std::ostream &  stream,
PN &  pn
)  [friend]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 5 21:04:58 2006 for Sesame by  doxygen 1.4.6