pn.h

Go to the documentation of this file.
00001 /*******************************************************************\
00002 
00003                    SESAME project software license
00004 
00005               Copyright (C) 2002 University of Amsterdam
00006 
00007     This program is free software; you can redistribute it and/or
00008      modify it under the terms of the GNU General Public License
00009     as published by the Free Software Foundation; either version 2
00010         of the License, or (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015              GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License
00018      along with this program; if not, write to the Free Software
00019       Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00020                            02111-1307, USA.
00021 
00022       For information regarding the SESAME software project see
00023               http://sesamesim.sourceforge.net or email
00024                     jcofflan@users.sourceforge.net
00025 
00026 \*******************************************************************/
00027 
00028 #ifndef PN_H
00029 #define PN_H
00030 
00031 #include "processloader.h"
00032 #include "pnconnection.h"
00033 
00034 #include <BasicUtils/BasicArray.h>
00035 #include <libmanager.h>
00036 #include <ymlnetwork.h>
00037 
00038 #include <string>
00039 #include <iostream>
00040 
00041 class YMLPort;
00042 
00044 
00050 class PN : public YMLNetwork {
00051   LibManager libManager;
00052  
00053  public:
00054   PN();
00055 
00056   void start();
00057   void stop();
00058   void cancel();
00059   void join();
00060 
00061   bool isRunning();
00062 
00063   LibManager *getLibManager() {return &libManager;}
00064   void loadLibraries();
00065 
00066   virtual void init();
00067 
00068   void printState(std::ostream &stream, int indent = 0);
00069 
00070   friend std::ostream &operator<<(std::ostream &stream, PN &pn);
00071 
00072  private:
00073   void prestart();
00074   void realstart();
00075 };
00076 
00077 std::ostream &operator<<(std::ostream &stream, PN &pn);
00078 
00079 #endif

Generated on Wed Apr 5 20:57:45 2006 for Sesame by  doxygen 1.4.6