Interface Router
-
- All Superinterfaces:
Device
,EnvironmentPart
- All Known Implementing Classes:
RouterImpl
public interface Router extends Device
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<NetworkInterface>
getInterfaces()
Returns physical network interfaces of router.Boolean
isCorner()
Returns if this router is last step to internet in current LAN.void
setNetworkInterfaces(List<NetworkInterface> networkInterfaces)
-
Methods inherited from interface io.patriot_framework.network.simulator.api.model.devices.Device
addAddressForNetwork, getAddressForNetwork, getConnectedNetworks, getIPAddress, getManagementPort, getName, setIPAddress, setManagementPort
-
Methods inherited from interface io.patriot_framework.network.simulator.api.model.EnvironmentPart
getCreator
-
-
-
-
Method Detail
-
getInterfaces
List<NetworkInterface> getInterfaces()
Returns physical network interfaces of router.- Returns:
- list of connected interfaces
-
setNetworkInterfaces
void setNetworkInterfaces(List<NetworkInterface> networkInterfaces)
-
isCorner
Boolean isCorner()
Returns if this router is last step to internet in current LAN.- Returns:
- true if router is on border, false otherwise
-
-