Fix startup
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / repository / Ric.java
index bfd8ef6..ffe493d 100644 (file)
@@ -20,8 +20,8 @@
 
 package org.oransc.policyagent.repository;
 
+import java.util.Vector;
 import org.oransc.policyagent.configuration.RicConfig;
-import org.oransc.policyagent.repository.Ric.RicState;
 
 /**
  * Represents the dynamic information about a NearRealtime-RIC.
@@ -51,6 +51,15 @@ public class Ric {
         state = newState;
     }
 
+    /**
+     * Gets the nodes managed by this Ric.
+     *
+     * @return a vector containing the nodes managed by this Ric.
+     */
+    public Vector<String> getManagedNodes() {
+        return ricConfig.managedElementIds();
+    }
+
     /**
      * Determines if the given node is managed by this Ric.
      *