Class NextHop
- java.lang.Object
-
- io.patriot_framework.network.simulator.api.model.routes.NextHop
-
public class NextHop extends Object
Wrapper class for RouterImpl and network. Representing next hop in the network topology.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Integer
getNetwork()
Gets network.Router
getRouter()
Gets router.int
hashCode()
void
setNetwork(Integer network)
Sets network.void
setRouter(Router router)
Sets router.
-
-
-
Method Detail
-
getRouter
public Router getRouter()
Gets router.- Returns:
- the router
-
setRouter
public void setRouter(Router router)
Sets router.- Parameters:
router
- the router
-
getNetwork
public Integer getNetwork()
Gets network.- Returns:
- the network
-
setNetwork
public void setNetwork(Integer network)
Sets network.- Parameters:
network
- the network
-
-