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

instance.h

00001 /***************************************************************************
00002                           instance.h  -  description
00003                              -------------------
00004     begin                : Sat Dec 22 2001
00005     copyright            : (C) 2001 by Rudiger Koch
00006     email                : rudiger_koch@yahoo.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef INSTANCE_H
00019 #define INSTANCE_H
00020 
00021 
00022 #include <amygdala/mpnetwork.h>
00023 
00024 #include <pthread.h>
00025 
00036 class Instance {
00037 public:
00038 //  Instance(UDP stuff);
00039 //  Instance(MPI stuff);
00040 
00042     Instance(unsigned int instId);
00043     Instance(MpNetwork* net);
00044     ~Instance();
00046   MpNetwork* GetNetwork();
00048   unsigned int GetId();
00049   void SetNetworkThread(pthread_t *nt);
00051   pthread_t* GetNetworkThread();
00052 protected: // Protected attributes
00054   MpNetwork* network;
00056   unsigned int id;
00058   pthread_t* networkThread;
00059 };
00060 
00061 #endif

Generated on Wed Sep 4 02:30:35 2002 for Amygdala by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002