Class TopologyBuilder
- java.lang.Object
-
- io.patriot_framework.network.simulator.api.builder.TopologyBuilder
-
public class TopologyBuilder extends Object
The type Topology builder.
-
-
Constructor Summary
Constructors Constructor Description TopologyBuilder(int networkCount)
Instantiates a new Topology builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Topology
build()
Builds topology.String
getCurrentCreator()
Topology
getTopology()
TopologyBuilder
withCreator(String creator)
NetworkBuilder
withNetwork(String name)
Instantiates new NetworkBuilder.RouterBuilder
withRouters()
Instantiates new CalcRouteBuilder.CalcRouteBuilder
withRoutes()
Instantiates new CalcRouteBuilder.
-
-
-
Method Detail
-
getCurrentCreator
public String getCurrentCreator()
-
withCreator
public TopologyBuilder withCreator(String creator)
-
withNetwork
public NetworkBuilder withNetwork(String name)
Instantiates new NetworkBuilder.- Parameters:
name
- the network name- Returns:
- the network builder
-
build
public Topology build()
Builds topology.- Returns:
- the topology
-
withRoutes
public CalcRouteBuilder withRoutes()
Instantiates new CalcRouteBuilder.- Returns:
- the calc route builder
-
withRouters
public RouterBuilder withRouters()
Instantiates new CalcRouteBuilder.- Returns:
- the router builder
-
getTopology
public Topology getTopology()
-
-