public class FixedDeviceSetHelper
extends java.lang.Object
Constructor and Description |
---|
FixedDeviceSetHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createFixedDeviceSetConfigString(java.net.InetAddress inetAddr,
int acceptorPort,
int beaconPort)
Creates the fixed device set config
String identifying a BlaubotEthernetFixedDeviceSetBeacon.FixedDeviceSetBlaubotDevice . |
static java.util.Set<BlaubotEthernetFixedDeviceSetBeacon.FixedDeviceSetBlaubotDevice> |
createFixedDeviceSetInstances(java.util.Set<java.lang.String> fixedDevicesSet)
|
static int |
getAcceptorPortFromFixedDeviceConfigString(java.lang.String configString)
Retrieve the acceptorPort out of a fixed device set config string.
|
static int |
getBeaconPortFromFixedDeviceConfigString(java.lang.String fixedDeviceConfigSring)
Retrieve the beaconPort out of a fixedDeviceConfigSring.
|
static java.net.InetAddress |
getInetAddressFromConfigString(java.lang.String fixedDeviceConfigSring)
Retrieve the InetAddress out of a fixedDeviceConfigSring.
|
static java.lang.String |
getIpAddressFromConfigString(java.lang.String fixedDeviceConfigSring)
Retrieve the ipAddress out of a fixedDeviceConfigSring.
|
public static java.lang.String createFixedDeviceSetConfigString(java.net.InetAddress inetAddr, int acceptorPort, int beaconPort)
String
identifying a BlaubotEthernetFixedDeviceSetBeacon.FixedDeviceSetBlaubotDevice
.inetAddr
- the ip addressacceptorPort
- the acceptor's portbeaconPort
- the beacon's portpublic static int getAcceptorPortFromFixedDeviceConfigString(java.lang.String configString)
configString
- extracts the acceptor port from an ethernet fixed device configStringpublic static int getBeaconPortFromFixedDeviceConfigString(java.lang.String fixedDeviceConfigSring)
fixedDeviceConfigSring
- extracts the beacon port from an ethernet fixed device config stringpublic static java.net.InetAddress getInetAddressFromConfigString(java.lang.String fixedDeviceConfigSring) throws java.net.UnknownHostException
fixedDeviceConfigSring
- extracts the InetAddress from an ethernet fixedDeviceConfigSringjava.net.UnknownHostException
- if the host inside the config string is unknown or invalidpublic static java.lang.String getIpAddressFromConfigString(java.lang.String fixedDeviceConfigSring)
fixedDeviceConfigSring
- extracts the ipaddress from an ethernet fixedDeviceConfigSringpublic static java.util.Set<BlaubotEthernetFixedDeviceSetBeacon.FixedDeviceSetBlaubotDevice> createFixedDeviceSetInstances(java.util.Set<java.lang.String> fixedDevicesSet) throws java.net.UnknownHostException
fixedDevicesSet
- set of fixed device info to be createdjava.net.UnknownHostException
- if any of the config strings contain an invalid or unknown hostname