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 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
      • getAddressForNetwork

        String getAddressForNetwork​(String networkName)
      • addAddressForNetwork

        boolean addAddressForNetwork​(String address,
                                     String networkName)
      • getManagementPort

        Integer getManagementPort()
        Gets management port.
        Returns:
        the management port
      • setManagementPort

        void setManagementPort​(Integer managementPort)
        Sets management port.
        Parameters:
        managementPort - the management port