class Link

A resource that connects two or more computers or switches

Inheritance:


Public Methods

[more] Link(ID newID = 0, string newName = "Link", double newBandwidth = 10, TIME newLatency = 0)
Default constructor
[more]void addConnection(ID id)
Adds a computer to the list of computers that this link connects
[more]double getBandwidth(void) const
Returns the maximum bandwidth of the link (in Megabytes/s)
[more]TIME getLatency(void) const
returns the propogation delay along the link
[more]string toString(void) const


Inherited from Resource:

Public Methods

ovirtual bool activate(const int numberOfServers = 1)
oFacStatus request(const Token& tkn)
obool release(const int tkn_id)
obool clear(const int tkn_id)
obool isServicing(const int tkn_id) const
oTIME getInUseTime(void) const


Inherited from SimObj:

Public Methods

ostring getName(void) const
oID getID(void) const
ovoid setName(const string newName)
ovoid setID(const ID newID)


Documentation

Links can be one-to-one or buses
o Link(ID newID = 0, string newName = "Link", double newBandwidth = 10, TIME newLatency = 0)

ovoid addConnection(ID id)
This function uses the computer's ID

odouble getBandwidth(void) const

oTIME getLatency(void) const

ostring 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++.