rules/wiredbas/node/ArcnetBusRule.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 ARCNETBUSRULE_H_
00009 #define ARCNETBUSRULE_H_
00010 
00011 #include "rules/wiredbas/common/BusRule.h"
00012 #include "networks/wiredbas/WiredBasImplementation.h"
00013 
00014 namespace cosi {
00015 
00016 namespace rules {
00017 
00018 namespace wiredbas {
00019 
00020 class ArcnetBusRule : public BusRule {
00021         double mBusSpeed;
00022 
00023         enum tProtocolPhases {IIT,FBE,ACK,SPAC,LPAC};
00024 
00025         map< int , int > mMsgLength;
00026 
00027 public:
00028 
00029         ArcnetBusRule(double pBusSpeed);
00030 
00031         virtual ~ArcnetBusRule();
00032 
00033         bool Satisfies(cosi::commstruct::wiredbas::Implementation pC);
00034 
00035         bool Satisfies(cosi::commstruct::wiredbas::Implementation* pC);
00036 
00037         double GetBandwidthValue(cosi::commstruct::wiredbas::Implementation* pC) ;
00038 
00039 };
00040 
00041 }
00042 
00043 }
00044 
00045 }
00046 
00047 #endif /*ARCNETBUSRULE_H_*/

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