|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.ssf.util.NetUtil
This class contains tools for the GLASS network.
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 |
NetUtil()
Private constructor to avoid instantiation |
| Method Summary | |
static EventManager |
getEventManager(Glass net)
Determines the event manager in the active network. |
static java.util.Vector |
getHosts(Glass net)
Return a vector of the Hosts in the Net. |
static link |
getLink(int id,
Glass net)
Return the link that has the requested id. |
static java.util.Vector |
getLinks(Glass net)
Return a vector of the links in the Net |
static java.util.Vector |
getLSRs(Glass net)
Return a vector of the LSRs in the Net. |
static Host |
getNode(int id,
Glass net)
Return the node |
static Host |
getNodeOfIP(int ip,
Glass net)
Get the node that has the given IP |
static java.util.Vector |
getNodes(Glass net)
Return a vector of all nodes in the Net |
static java.util.Vector |
getNonOpticalLinks(Glass net)
Return a vector of non aptical links in the Net |
static java.util.Vector |
getNonOpticalNodes(Glass net)
Return a vector of the non optical nodes in the Net |
static java.util.Vector |
getOpticalLinks(Glass net)
Return a vector of the optical links in the Net |
static java.util.Vector |
getOXCEdgeRouters(Glass net)
Return a vector of the OXCEdgeRouters in the Net |
static java.util.Vector |
getOXCs(Glass net)
Return a vector of the OXCs in the Net |
static java.util.Vector |
getRouters(Glass net)
Return a vector of the non optical Routers in the Net. |
static long |
getSimulationTime(Glass net)
Return the current simulation time for net |
static int[][] |
getTopologyMatrix(Glass net)
This method creates an 3xN ID-matrix out of the optical topology. |
static void |
ResumeSimulationProgress(Glass net)
Resume the simulation |
static void |
setSimulationSpeed(Glass net,
int slpTime)
Control the speed of the simulation |
static void |
stopSimulationProgess(Glass net)
Resume the simulation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private NetUtil()
| Method Detail |
public static java.util.Vector getOXCs(Glass net)
net - The network that contains the topology
public static java.util.Vector getOXCEdgeRouters(Glass net)
net - The network that contains the topology
public static java.util.Vector getLSRs(Glass net)
net - The network that contains the topology.
public static java.util.Vector getRouters(Glass net)
net - The network that contains the topology.
public static java.util.Vector getHosts(Glass net)
net - The network that contains the topology.
public static java.util.Vector getNonOpticalNodes(Glass net)
net - The network that contains the topology
public static java.util.Vector getNodes(Glass net)
net - The network that contains the topology
public static Host getNode(int id,
Glass net)
id - The id of the requested node.net - The network that contains the topology
public static java.util.Vector getOpticalLinks(Glass net)
net - The network that contains the topology
public static java.util.Vector getNonOpticalLinks(Glass net)
net - The network that contains the topology
public static java.util.Vector getLinks(Glass net)
net - The network that contains the topology
public static link getLink(int id,
Glass net)
id - The id of the link requested.net - The network that contains the topology
public static EventManager getEventManager(Glass net)
net - the network topology.
public static int[][] getTopologyMatrix(Glass net)
net - the OpNet the optical topology resides in.
public static Host getNodeOfIP(int ip,
Glass net)
net - the OpNet the optical topology resides in.ip - The IP address of the inderface.
public static void stopSimulationProgess(Glass net)
net - the network topology.public static void ResumeSimulationProgress(Glass net)
net - the network topology.
public static void setSimulationSpeed(Glass net,
int slpTime)
net - the network topology.slpTime - The time for the timer to sleep.public static long getSimulationTime(Glass net)
net - the network topology.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||