libraries/onchipcommunication/common/_Link.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 #ifndef _LINK_H_
00009 #define _LINK_H_
00010 
00011 #include <string>
00012 #include "quantities/onchipcommunication/Interface.h"
00013 #include "quantities/Name.h"
00014 
00015 namespace cosi {
00016 
00017 namespace library {
00018 
00019 namespace onchipcommunication {
00020 
00021 class _Link {
00022 public:
00023         _Link();
00024         virtual ~_Link();
00025 
00030         void SetSource(Name pS);
00031 
00033         Name GetSource();
00034 
00039         void SetDestination(Name pS);
00040 
00042         Name GetDestination();
00043 
00048         void SetSourceInterface(cosi::quantity::onchipcommunication::Interface pIf);
00049 
00051         cosi::quantity::onchipcommunication::Interface GetSourceInterface();
00052 
00057         void SetDestinationInterface(
00058                         cosi::quantity::onchipcommunication::Interface pIf);
00059 
00061         cosi::quantity::onchipcommunication::Interface GetDestinationInterface();
00062 
00063         bool Directed();
00064         void Directed(bool pD);
00065 private:
00067         bool mDirected;
00068 
00069 
00071         Name mSource;
00072 
00074         Name mDest;
00075 
00077         cosi::quantity::onchipcommunication::Interface mSourceInterface;
00078 
00080         cosi::quantity::onchipcommunication::Interface mDestInterface;
00081 
00082 };
00083 
00084 }
00085 
00086 }
00087 
00088 }
00089 
00090 #endif /*_LINK_H_*/

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