Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

Instance Class Reference

#include <amygdala/instance.h>

List of all members.

Public Methods

 Instance (unsigned int instId)
 Instance (MpNetwork *net)
 ~Instance ()
MpNetworkGetNetwork ()
unsigned int GetId ()
void SetNetworkThread (pthread_t *nt)
pthread_t * GetNetworkThread ()

Protected Attributes

MpNetworknetwork
unsigned int id
pthread_t * networkThread


Detailed Description

Basic properties of a Network instance. There are 3 types of instances:

1. a local instance. This instance resides in the same physical memory on a SMP host

2. an instance on a TCP/IP network. In this case, the instance object holds all information needed to send UDP datagrams to that instance. (TODO)

3. an MPI instance. ( TODO )

Author:
Rüdiger Koch


Constructor & Destructor Documentation

Instance::Instance unsigned int    instId
 

Parameters:
instID  the instance ID this instance will have


Member Function Documentation

unsigned int Instance::GetId  
 

Returns:
the instance id

MpNetwork* Instance::GetNetwork  
 

Returns:
the MpNetwork object associated to this instance

pthread_t* Instance::GetNetworkThread  
 

Returns:
the thread object, or NULL if no multithreading in this Node


Member Data Documentation

unsigned int Instance::id [protected]
 

The instance ID

MpNetwork* Instance::network [protected]
 

If this is a local instance

pthread_t* Instance::networkThread [protected]
 

references the thread in case this is a local instance


The documentation for this class was generated from the following file:
Generated on Wed Sep 4 02:30:36 2002 for Amygdala by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002