cosi::Commodity Class Reference

#include <Commodity.h>

Inheritance diagram for cosi::Commodity:

cosi::Quantity

List of all members.

Public Member Functions

 Commodity ()
virtual ~Commodity ()
void Set (Commodity C)
Commodity Get ()
void SetValue (std::string SourceName, std::string DestName, int SourceId, int DestId, Bandwidth AverageBandwidth, RealLatency L)
void SetValue (std::string SourceName, std::string DestName, int SourceId, int DestId, double AverageBandwidthValue, double Lvalue)
std::string GetSourceName () const
std::string GetDestName () const
int GetSourceId () const
int GetDestId () const
Bandwidth GetAverageBandwidth () const
RealLatency GetMaximumLatency () const
double GetAverageBandwidthValue ()
double GetMaximumLatencyValue ()
bool operator< (const Commodity &pC) const
bool operator== (const Commodity &pC) const
Commodity operator+ (Commodity pC)

Static Public Attributes

static std::string sQuantityName
static std::string sQuantityType

Private Attributes

std::string mSourceName
std::string mDestName
int mSourceId
int mDestId
Bandwidth mAverageBandwidth
RealLatency mMaximumLatency

Friends

std::ostream & operator<< (std::ostream &pOs, const Commodity &pC)


Constructor & Destructor Documentation

cosi::Commodity::Commodity (  ) 

cosi::Commodity::~Commodity (  )  [virtual]


Member Function Documentation

void cosi::Commodity::Set ( Commodity  C  ) 

Commodity cosi::Commodity::Get (  ) 

void cosi::Commodity::SetValue ( std::string  SourceName,
std::string  DestName,
int  SourceId,
int  DestId,
Bandwidth  AverageBandwidth,
RealLatency  L 
)

void cosi::Commodity::SetValue ( std::string  SourceName,
std::string  DestName,
int  SourceId,
int  DestId,
double  AverageBandwidthValue,
double  Lvalue 
)

std::string cosi::Commodity::GetSourceName (  )  const

std::string cosi::Commodity::GetDestName (  )  const

int cosi::Commodity::GetSourceId (  )  const

int cosi::Commodity::GetDestId (  )  const

Bandwidth cosi::Commodity::GetAverageBandwidth (  )  const

RealLatency cosi::Commodity::GetMaximumLatency (  )  const

double cosi::Commodity::GetAverageBandwidthValue (  ) 

double cosi::Commodity::GetMaximumLatencyValue (  ) 

bool cosi::Commodity::operator< ( const Commodity pC  )  const

bool cosi::Commodity::operator== ( const Commodity pC  )  const

Commodity cosi::Commodity::operator+ ( Commodity  pC  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOs,
const Commodity pC 
) [friend]


Member Data Documentation

std::string cosi::Commodity::mSourceName [private]

std::string cosi::Commodity::mDestName [private]

int cosi::Commodity::mDestId [private]

std::string cosi::Commodity::sQuantityName [static]

std::string cosi::Commodity::sQuantityType [static]


The documentation for this class was generated from the following files:
Generated on Sun Sep 7 18:37:46 2008 for COSI by  doxygen 1.5.4
Contact 
©2002-2018 U.C. Regents