Interface Device
-
- All Superinterfaces:
EnvironmentPart
- All Known Subinterfaces:
Router
- All Known Implementing Classes:
Application
,RouterImpl
public interface Device extends EnvironmentPart
Interface extends EnvironmentPart. Could be used for implementation of application, router or any other device that should have some management access.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addAddressForNetwork(String address, String networkName)
String
getAddressForNetwork(String networkName)
List<Network>
getConnectedNetworks()
Gets connected networks.String
getIPAddress()
Gets ip address.Integer
getManagementPort()
Gets management port.String
getName()
Gets name.void
setIPAddress(String ipAddress)
Sets ip address.void
setManagementPort(Integer managementPort)
Sets management port.-
Methods inherited from interface io.patriot_framework.network.simulator.api.model.EnvironmentPart
getCreator
-
-
-
-
Method Detail
-
getName
String getName()
Gets name.- Returns:
- the name
-
getIPAddress
String getIPAddress()
Gets ip address.- Returns:
- the ip address
-
setIPAddress
void setIPAddress(String ipAddress)
Sets ip address.- Parameters:
ipAddress
- the ip address
-
getConnectedNetworks
List<Network> getConnectedNetworks()
Gets connected networks.- Returns:
- the connected networks
-
getManagementPort
Integer getManagementPort()
Gets management port.- Returns:
- the management port
-
setManagementPort
void setManagementPort(Integer managementPort)
Sets management port.- Parameters:
managementPort
- the management port
-
-