Class NetworkInterface
- java.lang.Object
-
- io.patriot_framework.network.simulator.api.model.devices.router.NetworkInterface
-
public class NetworkInterface extends Object
Router' s network interface. Is used for representation of physical interface of router (Container / VM). Contains only most necessary informations about physical interface.
-
-
Constructor Summary
Constructors Constructor Description NetworkInterface()
Instantiates a new TopologyNetwork interface.NetworkInterface(String ip)
NetworkInterface(String name, String ip)
NetworkInterface(String name, String ip, Integer mask)
Instantiates a new TopologyNetwork interface.
-
-
-
Constructor Detail
-
NetworkInterface
public NetworkInterface(String ip)
-
NetworkInterface
public NetworkInterface(String name, String ip, Integer mask)
Instantiates a new TopologyNetwork interface.- Parameters:
name
- the network nameip
- the ip addressmask
- the mask
-
NetworkInterface
public NetworkInterface()
Instantiates a new TopologyNetwork interface.
-
-
Method Detail
-
getName
public String getName()
Gets name.- Returns:
- the name
-
setName
public void setName(String name)
Sets name.- Parameters:
name
- the name
-
getIp
public String getIp()
Gets ip.- Returns:
- the ip
-
setIp
public void setIp(String ip)
Sets ip.- Parameters:
ip
- the ip
-
getMask
public Integer getMask()
Gets mask.- Returns:
- the mask
-
setMask
public void setMask(Integer mask)
Sets mask.- Parameters:
mask
- the mask
-
-