|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.merlin.util.ComponentCreator
The component creator is used to create OXC's, Links, Fibers even after the topology is created. This tool will be used by network modeling tools.
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.
| Field Summary | |
static int |
nextIP
The "fake" IP adress to use for the new interfaces |
| Constructor Summary | |
private |
ComponentCreator()
private constructor to avoid instantiation |
| Method Summary | |
static void |
addCentralizedAlgorithm(java.lang.String name,
java.lang.String use,
java.lang.String option,
Glass net)
Add an algorithm |
static void |
addProtocolSession(java.lang.String name,
java.lang.String use,
java.lang.String option,
Glass net)
Add a protocolSession in a host |
static void |
addProtocolSession(java.lang.String name,
java.lang.String use,
java.lang.String option,
Host host)
Add a protocolSession in a host |
static void |
addScriptedEvent(java.lang.String type,
double time,
java.lang.String option,
Glass net)
Add a new scripted event |
static Fiber |
createFiber(OpticalLink forLink,
int host2ID,
boolean bidir)
This method creates a preconfigured Fiber and adds this to the given OpticalLink. |
static Host |
createHost(Glass inNet,
java.lang.String nhi)
This method creates a preconfigured Router. |
static Lambda |
createLambda(Fiber forFiber)
This method creates a preconfigured Lambda and adds this to the given Fiber. |
static LSR |
createLSR(Glass inNet,
java.lang.String nhi)
This method creates a preconfigured OXCEdgeRouter. |
(package private) static NIC |
createNIC(Host forHost)
This method creates a preconfigured NIC for the given host. |
(package private) static ONIC |
createONIC(ExtRouter forHost)
This method creates a preconfigured ONIC for the given host. |
static OpticalLink |
createOpticalLink(ExtRouter host1,
ExtRouter host2,
boolean bidirectional)
This method creates a preconfigured Link and connects the two given hosts with that link. |
static OXC |
createOXC(Glass inNet,
java.lang.String nhi)
This method creates a preconfigured OXC. |
static OXCEdgeRouter |
createOXCEdgeRouter(Glass inNet,
java.lang.String nhi)
This method creates a preconfigured OXCEdgeRouter. |
static link |
createPtPLink(Host host1,
Host host2)
This method creates a preconfigured Link and connects the two given hosts with that link. |
static Router |
createRouter(Glass inNet,
java.lang.String nhi)
This method creates a preconfigured Router. |
static int |
getNextIPAddress()
Get the available IP adresse and increment it |
static int |
getNextNodeId(Glass net)
Get the next available host id in the given net |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int nextIP
| Constructor Detail |
private ComponentCreator()
| Method Detail |
public static int getNextIPAddress()
public static Lambda createLambda(Fiber forFiber)
forFiber - the Fiber the Lambda has to be generated for.
java.lang.RuntimeException - Some program bug - Should never occur.
public static Fiber createFiber(OpticalLink forLink,
int host2ID,
boolean bidir)
forLink - The OpticalLink the Lambda has to be generated for.host2ID - The ID of host2 (the receiver).bidir - Inidicate if the fiber is bidirectional.
java.lang.RuntimeException - Some program bug - Should never occur.static ONIC createONIC(ExtRouter forHost)
forHost - The host the onic has to be configured for.
java.lang.RuntimeException - Some program bug - Should never occur.static NIC createNIC(Host forHost)
forHost - The host the nic has to be configured for.
java.lang.RuntimeException - Some program bug - Should never occur.
public static OpticalLink createOpticalLink(ExtRouter host1,
ExtRouter host2,
boolean bidirectional)
host1 - The host 1host2 - The host 2bidirectional - Indicates if the new link must contain a bidirectional
fiber or two unidirectional fibers.
java.lang.RuntimeException - Some program bug - Should never occur.
public static link createPtPLink(Host host1,
Host host2)
host1 - The host 1host2 - The host 2
java.lang.RuntimeException - Some program bug - Should never occur.
public static OXCEdgeRouter createOXCEdgeRouter(Glass inNet,
java.lang.String nhi)
inNet - The OpNet where to add the new OXCEdgeRouter.nhi - The nhi to use for the new OXCEdgeRouter.
java.lang.RuntimeException - Some program bug - Should never occur.
public static LSR createLSR(Glass inNet,
java.lang.String nhi)
inNet - The OpNet where to add the new OXCEdgeRouter.nhi - The nhi to use for the new OXCEdgeRouter.
java.lang.RuntimeException - Some program bug - Should never occur.
public static OXC createOXC(Glass inNet,
java.lang.String nhi)
inNet - The OpNet where to add the new OXC.nhi - The nhi to use for the new OXC.
java.lang.RuntimeException - Some program bug - Should never occur.
public static Router createRouter(Glass inNet,
java.lang.String nhi)
inNet - The OpNet where to add the new Router.nhi - The nhi to use for the new Router.
java.lang.RuntimeException - Some program bug - Should never occur.
public static Host createHost(Glass inNet,
java.lang.String nhi)
inNet - The OpNet where to add the new Router.nhi - The nhi to use for the new Router.
java.lang.RuntimeException - Some program bug - Should never occur.public static int getNextNodeId(Glass net)
net - The topology container.
public static void addCentralizedAlgorithm(java.lang.String name,
java.lang.String use,
java.lang.String option,
Glass net)
name - The name of the algorithmuse - The class name of the algorithmoption - The optional attributes of this algorithmnet - The net that stores the algorithms
public static void addProtocolSession(java.lang.String name,
java.lang.String use,
java.lang.String option,
Host host)
name - The name of the protocoluse - The class name of the protocoloption - The optional attributes of this algorithmhost - The host where to add the protocol
public static void addProtocolSession(java.lang.String name,
java.lang.String use,
java.lang.String option,
Glass net)
name - The name of the protocoluse - The class name of the protocoloption - The optional attributes of this algorithmnet - The OpNet that contains the nodes
public static void addScriptedEvent(java.lang.String type,
double time,
java.lang.String option,
Glass net)
type - The event's typetime - The time to fire this eventoption - The attributes other than type and time (like id)net - The net object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||