|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.optical.util.NodeUtil
This class contains tools for Node objects.
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Constructor Summary | |
private |
NodeUtil()
Private constructor to avoid instantiation |
| Method Summary | |
static Fiber |
getFiber(Host node,
int onicID,
int fiberID)
Get the fiber according to the given interface, fiber ID in the node. |
static Lambda |
getLambda(Host node,
int onicID,
int fiberID,
int lambdaID)
Get the lambda according to the given interface, fiber and lambda ID in the node. |
static OpticalLink |
getLink(Host node,
int onicID)
Identifier list of fibers for the given ONIC. |
static ONIC |
getONIC(Host node,
Fiber fiber)
Find an ONIC from a fiber inside it. |
static ONIC |
getONIC(Host node,
int onicID)
Find an ONIC from its ID |
static ONIC |
getONIC(Host node,
Lambda lambda)
Find an ONIC from a lambda inside it. |
static ONIC |
getONICfromIP(Host node,
int onicIP)
Find an ONIC from its IP adress in the given node |
static ONIC |
getONICofPort(Host node,
int port)
Find the ONIC that use the given fiber |
static java.util.Vector |
getONICs(Host node)
Return the ONICs of the given node. |
static java.util.Vector |
getOpticalLinks(ExtRouter forNode)
Get the vector of optical links that connect two the given node. |
static java.util.Vector |
getOpticalLinks(ExtRouter node1,
ExtRouter node2)
Get the vector of optical links that connect two nodes This method does not care about the direction of the fibers |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private NodeUtil()
| Method Detail |
public static java.util.Vector getOpticalLinks(ExtRouter node1,
ExtRouter node2)
node1 - The first nodenode2 - The second node
public static java.util.Vector getOpticalLinks(ExtRouter forNode)
forNode - The given optical node
public static ONIC getONIC(Host node,
int onicID)
node - The node that should contain the ONIConicID - The id of the ONIC.
public static ONIC getONICfromIP(Host node,
int onicIP)
node - The node that should contain the ONIConicIP - The ip of the ONIC.
public static ONIC getONICofPort(Host node,
int port)
node - The node that should contain the ONICport - the port ID.
public static ONIC getONIC(Host node,
Lambda lambda)
node - The node that should contain the ONIClambda - The lambda attached to the ONIC
public static ONIC getONIC(Host node,
Fiber fiber)
node - The node that should contain the ONICfiber - The fiber attached to the ONIC
public static OpticalLink getLink(Host node,
int onicID)
node - The node that should contain the ONIConicID - The id of the ONIC.
public static java.util.Vector getONICs(Host node)
node - The node we want to have the ONICs
public static Lambda getLambda(Host node,
int onicID,
int fiberID,
int lambdaID)
node - The host that contains the ONIConicID - The ID of the interface connected to the fiberfiberID - The fiber that contains the lambdalambdaID - The ID of the lambda
public static Fiber getFiber(Host node,
int onicID,
int fiberID)
node - The host that contains the ONIConicID - The ID of the interface connected to the fiberfiberID - The fiber that contains the lambda
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||