|
WDMSim | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwdmsim.PhysicalTopology
public class PhysicalTopology
The physical topology of a network refers to he physical layout of devices on a network, or to the way that the devices on a network are arranged and how they communicate with each other.
Constructor Summary | |
---|---|
PhysicalTopology(org.w3c.dom.Element xml)
Creates a new PhysicalTopology object. |
Method Summary | |
---|---|
WDMLink[][] |
getAdjMatrix()
Retrives a given PhysicalTopology's adjancency matrix, which contains the links between source and destination nodes. |
WDMLink |
getLink(int linkid)
Retrieves a specific link in the PhysicalTopology object, based on its unique identifier. |
WDMLink |
getLink(int src,
int dst)
Retrieves a specific link in the PhysicalTopology object, based on its source and destination nodes. |
OXC |
getNode(int id)
Retrieves a specific node in the PhysicalTopology object. |
int |
getNumLinks()
Retrieves the number of links in a given PhysicalTopology. |
int |
getNumNodes()
Retrieves the number of nodes in a given PhysicalTopology. |
int |
getNumWavelengths()
Retrieves the number of wavelengths in a given PhysicalTopology. |
WeightedGraph |
getWeightedGraph()
Returns a weighted graph with vertices, edges and weights representing the physical network nodes, links and weights implemented by this class object. |
boolean |
hasLink(int node1,
int node2)
Says whether exists or not a link between two given nodes. |
void |
printXpressInputFile()
|
java.lang.String |
toString()
Prints all nodes and links between them in the PhysicalTopology object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PhysicalTopology(org.w3c.dom.Element xml)
xml
- file that contains the simulation environment informationMethod Detail |
---|
public int getNumNodes()
public int getNumLinks()
public int getNumWavelengths()
public OXC getNode(int id)
id
- the node's unique identifier
public WDMLink getLink(int linkid)
linkid
- the link's unique identifier
public WDMLink getLink(int src, int dst)
src
- the link's source nodedst
- the link's destination node
public WDMLink[][] getAdjMatrix()
public boolean hasLink(int node1, int node2)
node1
- possible link's source nodenode2
- possible link's destination node
public WeightedGraph getWeightedGraph()
public void printXpressInputFile()
public java.lang.String toString()
toString
in class java.lang.Object
|
WDMSim | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |