Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

gmpls.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 gmpls.h - description 00003 ------------------- 00004 begin : Tue May 18 2004 00005 copyright : (C) 2004 by Ramakrishna Shenai 00006 email : shenai1@cs.umbc.edu 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 _gmpls_h 00019 #define _gmpls_h 00020 00021 #include <cassert> 00022 #include <fstream> 00023 #include <string> 00024 #include <sstream> 00025 00026 #include "groomernode.h" 00027 #include "link.h" 00028 00029 #define DEFAULT_CHANNELS 10 // Default number of channels in the link 00030 #define DEFAULT_TRX 20 // Number of tunable tx/rx in the array 00031 #define NO_LINK 99999.99 // The actual value for NO_LINK in 00032 // the matrix file is 999999.99 00033 00034 using namespace common; 00035 using namespace std; 00036 00037 00038 namespace common { 00048 class NetworkManager { 00049 public: 00057 NetworkManager( u_int size, std::string filename ); 00058 00068 NetworkManager( u_int size, u_int chCount, u_int trxCount, std::string filename ); 00069 00073 ~NetworkManager(); 00074 00084 int lightpathSetup( long lightpath, int *rt, int rSize ); 00085 00095 int lightpathTeardown( long lightpath, int *rt, int rSize ); 00096 00097 protected: 00106 void init( u_int size, u_int chCount, u_int trxCount, std::string filename ); 00115 void constructNetwork( double **matrix, u_int chCount, u_int trxCount ); 00116 00121 GroomerNode **_nodeMap; 00122 00126 u_int _size; 00127 }; 00128 }; 00129 00130 #endif

Generated on Fri May 21 15:23:21 2004 for Optical Network Simulation (Build) by doxygen 1.3.7