Class NameplateSetup.Service
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.NameplateSetup.Service
- Enclosing class:
NameplateSetup
Represents a device-provided service.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Returns the IP address/name of the hosting device.getKey()Returns the unique logical key within this device to access this service.Returns the optional netmask to enable a safe detection ingetHost()if no host was given.intgetPort()Return the port to address this service.de.iip_ecosphere.platform.support.VersionReturns the optional service/protocol version offered.voidDefines the IP address/name of the hosting device.voidChanges the unique logical key within this device to access this service.voidsetNetmask(String netmask) Defines the optional netmask.voidsetPort(int port) Changes the port to address this service.voidsetVersion(de.iip_ecosphere.platform.support.Version version) Defines the optional service/protocol version offered.voidsetVersion(String version) Defines the optional service/protocol version offered.
-
Field Details
-
key
-
port
private int port -
host
-
netmask
-
version
private de.iip_ecosphere.platform.support.Version version
-
-
Constructor Details
-
Service
public Service()
-
-
Method Details
-
getKey
Returns the unique logical key within this device to access this service.- Returns:
- the key
-
setKey
Changes the unique logical key within this device to access this service. [snakeyaml]- Parameters:
key- the key
-
getPort
public int getPort()Return the port to address this service.- Returns:
- the port the port
-
setPort
public void setPort(int port) Changes the port to address this service.- Parameters:
port- the port
-
getHost
Returns the IP address/name of the hosting device. If none was specified,NetUtils.getOwnIP(String)is called withgetNetmask().- Returns:
- the IP address/name
-
setHost
Defines the IP address/name of the hosting device. [snakeyaml]- Parameters:
host- the IP address/name to set
-
getNetmask
Returns the optional netmask to enable a safe detection ingetHost()if no host was given.- Returns:
- the netmask (may be null)
-
setNetmask
Defines the optional netmask.- Parameters:
netmask- the netmask to set
-
getVersion
public de.iip_ecosphere.platform.support.Version getVersion()Returns the optional service/protocol version offered.- Returns:
- the version (may be null)
-
setVersion
Defines the optional service/protocol version offered.- Parameters:
version- the version to set
-
setVersion
public void setVersion(de.iip_ecosphere.platform.support.Version version) Defines the optional service/protocol version offered.- Parameters:
version- the version to set
-