|
quantities/onchipcommunication/PhysicalInterface.hGo 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 PHYSICALINTERFACE_H_ 00009 #define PHYSICALINTERFACE_H_ 00010 00011 #include <iostream> 00012 #include <string> 00013 #include <map> 00014 00015 namespace cosi 00016 { 00017 00018 namespace quantity 00019 { 00020 00021 namespace onchipcommunication 00022 { 00023 00024 class PhysicalInterface 00025 { 00026 public: 00027 PhysicalInterface(); 00028 virtual ~PhysicalInterface(); 00029 virtual int GetWidth() const ; 00030 virtual double GetSpeed() const ; 00031 virtual void SetSpeed(double pSpeed) ; 00032 virtual void SetWidth(int pWidth); 00033 virtual int GetNumberOfVirtualChannels() const ; 00034 virtual void SetNumberOfVirtualChannels(int pNchannels) ; 00035 virtual int GetBufferLength() const ; 00036 virtual void SetBufferLength(int pLength) ; 00037 bool operator==(const PhysicalInterface &pIf) ; 00038 friend std::ostream& operator<<(std::ostream &pOs, const PhysicalInterface &pP); 00039 private: 00040 int mWidth ; 00041 double mSpeed ; 00042 int mNchannels ; 00043 int mLength ; 00044 }; 00045 00046 } 00047 00048 } 00049 00050 } 00051 00052 #endif /*PHYSICALINTERFACE_H_*/ Generated on Sun Sep 7 18:37:43 2008 for COSI by 1.5.4 |