Making classes final to make inheritance impossible
[iot2.git] / iotjava / iotruntime / master / RouterConfig.java
index 8e23ce1fec62960015799baff0cac1e2a6c181a2..392fd74269ce613dec0673cb192aa3cf73cc9cb2 100644 (file)
@@ -62,7 +62,7 @@ public final class RouterConfig {
         * getPrintWriter() gets the right PrintWriter object to print policies to the right file
         *
         * @param   strConfigHost String hostname to be configured
-        * @return  void
+        * @return  PrintWriter
         */
        private PrintWriter getPrintWriter(String strConfigHost) {
 
@@ -159,6 +159,17 @@ public final class RouterConfig {
                }
        }
 
+       /**
+        * getAddressListObject() method returns the map from this class
+        * <p>
+        * This method is useful for MAC policy class so that it doesn't have
+        * to query the router again
+        */
+       public Map<String, String> getAddressListObject() {
+
+               return mapMACtoIPAdd;
+       }
+
        /**
         * getAddressList() method gets list of IP addresses
         * <p>