A resource that connects two or more computers or switches
Inheritance:
Public Methods
-
Link(ID newID = 0, string newName = "Link", double newBandwidth = 10, TIME newLatency = 0)
- Default constructor
-
void addConnection(ID id)
- Adds a computer to the list of computers that this link connects
-
double getBandwidth(void) const
- Returns the maximum bandwidth of the link (in Megabytes/s)
-
TIME getLatency(void) const
- returns the propogation delay along the link
-
string toString(void) const
-
Public Methods
-
virtual bool activate(const int numberOfServers = 1)
-
FacStatus request(const Token& tkn)
-
bool release(const int tkn_id)
-
bool clear(const int tkn_id)
-
bool isServicing(const int tkn_id) const
-
TIME getInUseTime(void) const
Inherited from SimObj:
Public Methods
-
string getName(void) const
-
ID getID(void) const
-
void setName(const string newName)
-
void setID(const ID newID)
Documentation
Links can be one-to-one or buses
Link(ID newID = 0, string newName = "Link", double newBandwidth = 10, TIME newLatency = 0)
-
void addConnection(ID id)
-
This function uses the computer's ID
double getBandwidth(void) const
-
TIME getLatency(void) const
-
string toString(void) const
-
- Returns:
- a string representation of the link
- This class has no child classes.
- Author:
- John Oleszkiewicz
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.