Class Route
- java.lang.Object
-
- io.patriot_framework.network.simulator.api.model.routes.Route
-
public class Route extends Object
Used for represent route record in routing tables.
-
-
Constructor Summary
Constructors Constructor Description Route()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopologyNetwork
getDest()
Gets dest.NetworkInterface
getrNetworkInterface()
Gets network interface.TopologyNetwork
getSource()
Gets source.Router
getTargetRouter()
Gets target router.void
setDest(TopologyNetwork dest)
Sets dest.void
setrNetworkInterface(NetworkInterface rNetworkInterface)
Sets network interface.void
setSource(TopologyNetwork source)
Sets source.void
setTargetRouter(Router targetRouter)
Sets target router.String
toAPIFormat()
To path string.
-
-
-
Method Detail
-
getDest
public TopologyNetwork getDest()
Gets dest.- Returns:
- the dest
-
setDest
public void setDest(TopologyNetwork dest)
Sets dest.- Parameters:
dest
- the dest
-
getSource
public TopologyNetwork getSource()
Gets source.- Returns:
- the source
-
setSource
public void setSource(TopologyNetwork source)
Sets source.- Parameters:
source
- the source
-
getrNetworkInterface
public NetworkInterface getrNetworkInterface()
Gets network interface.- Returns:
- the network interface
-
setrNetworkInterface
public void setrNetworkInterface(NetworkInterface rNetworkInterface)
Sets network interface.- Parameters:
rNetworkInterface
- the r network interface
-
getTargetRouter
public Router getTargetRouter()
Gets target router.- Returns:
- the target router
-
setTargetRouter
public void setTargetRouter(Router targetRouter)
Sets target router.- Parameters:
targetRouter
- the target router
-
toAPIFormat
public String toAPIFormat()
To path string.- Returns:
- the string
-
-