X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=benchmarks%2Fother%2FZigbeeTest%2FIoTAddress.java;fp=benchmarks%2Fother%2FZigbeeTest%2FIoTAddress.java;h=0000000000000000000000000000000000000000;hb=8e565033fd19c4696f67862ade27f0ebbacf5682;hp=8e82847bf093178329f9e16633e7d863e9940720;hpb=1af9249ca8ff8f6bfd7444ad1a9196bc83c8838a;p=iot2.git diff --git a/benchmarks/other/ZigbeeTest/IoTAddress.java b/benchmarks/other/ZigbeeTest/IoTAddress.java deleted file mode 100644 index 8e82847..0000000 --- a/benchmarks/other/ZigbeeTest/IoTAddress.java +++ /dev/null @@ -1,77 +0,0 @@ - -// Java packages -import java.net.Socket; -import java.net.ServerSocket; -import java.net.InetAddress; -import java.net.UnknownHostException; - -/** Class IoTAddress is a wrapper class to pass - * IoTSet of any addresses from master to slave - * - * @author Rahmadi Trimananda - * @version 1.0 - * @since 2016-04-22 - */ -public class IoTAddress { - - /** - * IoTDeviceAddress class properties - */ - protected final InetAddress inetAddress; - - /** - * Class constructor - * - * @param sAddress String address - */ - public IoTAddress(String sAddress) throws UnknownHostException { - - inetAddress = InetAddress.getByName(sAddress); - } - - /** - * getHostAddress() method - * - * @return String - */ - public String getHostAddress() { - - return inetAddress.getHostAddress(); - - } - - /** - * getHostName() method - * - * @return String - */ - public String getHostName() { - - return inetAddress.getHostName(); - - } - - /** - * getUrl() method - * - * @return String - */ - public String getURL(String strURLComplete) { - - //e.g. http:// + inetAddress.getHostAddress() + strURLComplete - // http://192.168.2.254/cgi-bin/mjpg/video.cgi? - return "http://" + inetAddress.getHostAddress() + strURLComplete; - - } - - /** - * getCompleteAddress() method - * - * @return String - */ - public String getCompleteAddress() { - - return inetAddress.toString(); - - } -}