Fixing program structure; now accepting multiple policy files; cross-checking referen...
[iot2.git] / iotjava / iotpolicy / tree / RequiresDecl.java
index 5a921550178f7e65495ae1d99ef23e90d8121e6b..417015598731c73e022226818c2ea12f51535b29 100644 (file)
@@ -15,12 +15,7 @@ import java.util.Set;
  * @version     1.0
  * @since       2016-09-20
  */
-public class RequiresDecl {
-
-       /**
-        * Class properties
-        */
-       private String origInt;
+public class RequiresDecl extends Declaration {
 
        /**
         * A "requires" statement:
@@ -29,6 +24,10 @@ public class RequiresDecl {
         * In this data structure we will record its new interface name, i.e. CameraWithCaptureAndData
         *              and its required capabilities, i.e. VideoRecording and ImageCapture.
         */
+
+       /**
+        * Class properties
+        */
        private Map<String,List<String>> mapRequires;
 
        /**
@@ -36,14 +35,14 @@ public class RequiresDecl {
         */
        public RequiresDecl() {
 
-               origInt = null;
+               super();
                mapRequires = new HashMap<String,List<String>>();
        }
 
 
        public RequiresDecl(String _origInt) {
 
-               origInt = _origInt;
+               super(_origInt);
                mapRequires = new HashMap<String,List<String>>();
        }