core/Factory.h

Go to the documentation of this file.
00001 //============================================================================
00002 // Author      : Alessandro Pinto <apinto@eecs.berkeley.edu>
00003 //               University of California, Berkeley
00004 //               545 Cory Hall, Berkeley, CA 94720
00005 // Copyright   : See COPYING file that comes with this distribution
00006 //============================================================================
00007 
00008 
00024 #ifndef FACTORY_H_
00025 #define FACTORY_H_
00026 
00027 #include <string>
00028 #include <vector>
00029 #include <list>
00030 #include "IdGraph.h"
00031 #include "Network.hpp"
00032 
00033 using namespace std ;
00034 
00035 namespace cosi {
00036 
00037 class Factory {
00038 public:
00039         Factory();
00040         virtual ~Factory();
00041 
00042         //Define the object to generate
00043         void AllocateNetwork( string pType );
00044         void SetNetworkName(string pName);
00045         //Fill in the graph
00046         void AddVertex(Vertex pV);
00047         void AddVertex(Vertex pV,string pName);
00048         void AddEdge( Edge pE ) ;
00049         void AddEdge( Edge pE , string pName) ;
00050         //Fill in the labels
00051         void SetLabelMapEntry(string pMapName , Vertex pV , list<string> pString , list<int> pInt , list<double> pDouble );
00052         void SetLabelMapEntry(string pMapName , Edge pE , list<string> pString , list<int> pInt , list<double> pDouble );
00053 
00054 
00055         //Return the object
00056         IdGraph* GetNetwork( );
00057 
00058 private:
00059 
00060         IdGraph* mNetwork;
00061 
00062 };
00063 
00064 }
00065 
00066 #endif /*FACTORY_H_*/

Generated on Sun Sep 7 18:37:42 2008 for COSI by  doxygen 1.5.4
Contact 
©2002-2018 U.C. Regents