#include <link.h>
Public Member Functions | |
int | assignChannel (u_long lightpath, u_int channel) |
Perform wavelength/channel assignment for an incoming lightpath request on a specified channel. | |
int | assignChannel (u_long lightpath) |
Perform wavelength/channel assignment for an incoming lightpath request on any available channel. | |
int | clearChannel (u_long lightpath) |
Explicit shutdown of a lightpath by calling clearChannel. | |
void | getChannels (long *channels) |
Return the list of channel. | |
const u_int | getChCount () |
Get the channel count. | |
const u_int | getDest () |
Get the destination node. | |
const u_int | getId () |
Get the link specific identifier. | |
const u_int | getSrc () |
Get the source node. | |
bool | isPresent (u_long lightpath) |
Checks to see if the lightpath is already made a reservation on the wavelength, this is mainly to disallow loops in the network. | |
Link (u_int id, u_int src, u_int dest, u_int chCount) | |
Construct a new Link object from the provided information. | |
std::string & | toString () |
Convert a representation of this object to a string object representation. | |
~Link () | |
Default destructor. | |
Private Attributes | |
u_int | _chCount |
Represents the number of channels supported in by this link. | |
long * | _chState |
Represents the state of the channels if equal to -1, then it is not used by any lightpath other a lightpath specific id is present. | |
std::string | _descStr |
String representation of this object is used here. | |
u_int | _dest |
Represents the destination node of the link. | |
u_int | _id |
A unique link identifier. | |
u_int | _src |
Represents the source node of the link. |
|
Construct a new
|
|
Default destructor.
|
|
Get the link specific identifier.
|
|
Get the source node.
|
|
Get the destination node.
|
|
Get the channel count.
|
|
Return the list of channel.
|
|
Perform wavelength/channel assignment for an incoming lightpath request on any available channel. NOTE: A first fit approach is used in this case.
|
|
Perform wavelength/channel assignment for an incoming lightpath request on a specified channel.
|
|
Explicit shutdown of a lightpath by calling clearChannel.
|
|
Checks to see if the lightpath is already made a reservation on the wavelength, this is mainly to disallow loops in the network.
|
|
Convert a representation of this object to a
|
|
A unique link identifier.
|
|
Represents the source node of the link.
|
|
Represents the destination node of the link.
|
|
Represents the state of the channels if equal to -1, then it is not used by any lightpath other a lightpath specific id is present.
|
|
Represents the number of channels supported in by this link.
|
|
String representation of this object is used here.
|