class NetSwitch

Models a network switch

Inheritance:


Public Methods

[more] NetSwitch(ID newID = 0, string newName = "Switch", LENGTH newLength = 16, TIME newDelay= 0.0)
Default constructor
[more]TIME getProcessingDelay(void) const
returns the time (in seconds) it takes for the switch to queue an incoming network request
[more]LENGTH getQueueLength(void) const
returns the maximium number of pending requests
[more]void setProcessingDelay(const TIME newTime)
sets the time (in seconds) it takes for the switch to queue an incoming request
[more]void setQueueLength(const LENGTH newLength)
sets the maximum queue length for the switch
[more]string toString(void) const
a string representation of the switch


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

A switch connects many links
o NetSwitch(ID newID = 0, string newName = "Switch", LENGTH newLength = 16, TIME newDelay= 0.0)

oTIME getProcessingDelay(void) const

oLENGTH getQueueLength(void) const
Currently, the netswitch class is implemented as having an unlimited queue

ovoid setProcessingDelay(const TIME newTime)

ovoid setQueueLength(const LENGTH newLength)
Currently, this function has no effect.

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