#include <node.h>
Inheritance diagram for common::Node:
Public Member Functions | |
bool | addLink (u_int dest, u_int chCount) |
Add a new Link to the node with the provided information. | |
const int | getNodeId () |
Get the node identifier. | |
bool | isLinkPresent (u_int dest) |
Checks if a link is already present in the link map. | |
Node (u_int nodeId) | |
Construct a new Node object from the provided node identifier. | |
int | removeLightpath (long lightpath) |
Remove a lightpath by searching any traces of it on all the possible links of this node. | |
int | scheduleLightpath (long lightpath, u_int dest, int wavelength) |
Scedule a lightpath on the pre-specified link. | |
int | scheduleLightpath (long lightpath, u_int dest) |
Scedule a lightpath on the pre-specified link. | |
void | setNodeId (u_int nodeId) |
Set the node identifier. | |
virtual std::string & | toString () |
Convert the representation of this object to a string form. | |
virtual | ~Node () |
Default destructor. | |
Protected Attributes | |
std::string | _descStr |
String representation of this object is used here. | |
LinkMap | _lm |
A Link map consists of a set of links associated with the node indexed by a unique integer destination id. | |
u_int | _nodeId |
Represents the node identifier for this node. |
The basic Node
class maintains a set of outgoing Link
objects, indexed by the destination (or next-hop) addresses. The main functionality of the Node
is to manage setup and teardown functions only on it associated links.
|
Construct a new
|
|
Default destructor.
|
|
Get the node identifier.
|
|
Set the node identifier.
|
|
Add a new Link to the node with the provided information.
|
|
Scedule a lightpath on the pre-specified link.
|
|
Scedule a lightpath on the pre-specified link.
|
|
Remove a lightpath by searching any traces of it on all the possible links of this node.
|
|
Checks if a link is already present in the link map.
|
|
Convert the representation of this object to a string form.
Reimplemented in common::GroomerNode. |
|
A Link map consists of a set of links associated with the node indexed by a unique integer destination id.
|
|
Represents the node identifier for this node.
|
|
String representation of this object is used here.
|