Class TopologyNetwork
- java.lang.Object
-
- io.patriot_framework.network.simulator.api.model.network.Network
-
- io.patriot_framework.network.simulator.api.model.network.TopologyNetwork
-
- All Implemented Interfaces:
EnvironmentPart
public class TopologyNetwork extends Network
TopologyNetwork class representing docker network with additional informations like calculated routes to other networks.
-
-
Constructor Summary
Constructors Constructor Description TopologyNetwork()
Instantiates a new TopologyNetwork.TopologyNetwork(CalculatedRouteList<CalcRoute> calcRoutes)
Instantiates a new TopologyNetwork.TopologyNetwork(CalculatedRouteList<CalcRoute> calcRoutes, String name)
Instantiates a new TopologyNetwork.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
CalculatedRouteList<CalcRoute>
getCalcRoutes()
Gets calc routes.String
getCreator()
Returns creator identifier of env part.Boolean
getInternet()
String
getInternetInterfaceIP()
int
hashCode()
void
setCalcRoutes(CalculatedRouteList<CalcRoute> calcRoutes)
Sets calc routes.void
setCreator(String creator)
void
setInternet(Boolean internet)
void
setInternetInterfaceIP(String internetInterfaceIP)
-
Methods inherited from class io.patriot_framework.network.simulator.api.model.network.Network
getId, getIPAddress, getMask, getName, setId, setIPAddress, setMask, setName
-
-
-
-
Constructor Detail
-
TopologyNetwork
public TopologyNetwork()
Instantiates a new TopologyNetwork.
-
TopologyNetwork
public TopologyNetwork(CalculatedRouteList<CalcRoute> calcRoutes, String name)
Instantiates a new TopologyNetwork.- Parameters:
calcRoutes
- the calc routesname
- the name
-
TopologyNetwork
public TopologyNetwork(CalculatedRouteList<CalcRoute> calcRoutes)
Instantiates a new TopologyNetwork.- Parameters:
calcRoutes
- the calc routes
-
-
Method Detail
-
getCalcRoutes
public CalculatedRouteList<CalcRoute> getCalcRoutes()
Gets calc routes.- Returns:
- the calc routes
-
setCalcRoutes
public void setCalcRoutes(CalculatedRouteList<CalcRoute> calcRoutes)
Sets calc routes.- Parameters:
calcRoutes
- the calc routes
-
getInternet
public Boolean getInternet()
-
setInternet
public void setInternet(Boolean internet)
-
setCreator
public void setCreator(String creator)
-
getCreator
public String getCreator()
Description copied from interface:EnvironmentPart
Returns creator identifier of env part.- Returns:
- creator of this object
-
getInternetInterfaceIP
public String getInternetInterfaceIP()
-
setInternetInterfaceIP
public void setInternetInterfaceIP(String internetInterfaceIP)
-
-