Models a network switch
Inheritance:
Public Methods
-
NetSwitch(ID newID = 0, string newName = "Switch", LENGTH newLength = 16, TIME newDelay= 0.0)
- Default constructor
-
TIME getProcessingDelay(void) const
- returns the time (in seconds) it takes for the switch to queue an incoming network request
-
LENGTH getQueueLength(void) const
- returns the maximium number of pending requests
-
void setProcessingDelay(const TIME newTime)
- sets the time (in seconds) it takes for the switch to queue an incoming request
-
void setQueueLength(const LENGTH newLength)
- sets the maximum queue length for the switch
-
string toString(void) const
- a string representation of the switch
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
A switch connects many links
NetSwitch(ID newID = 0, string newName = "Switch", LENGTH newLength = 16, TIME newDelay= 0.0)
-
TIME getProcessingDelay(void) const
-
LENGTH getQueueLength(void) const
-
Currently, the netswitch class is implemented as having an unlimited queue
void setProcessingDelay(const TIME newTime)
-
void setQueueLength(const LENGTH newLength)
-
Currently, this function has no effect.
string toString(void) const
-
- 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++.