import java.util.Map;
import java.util.Vector;
+import lombok.Getter;
+import lombok.Setter;
+
+import org.oransc.policyagent.clients.A1Client.A1ProtocolType;
import org.oransc.policyagent.configuration.RicConfig;
/**
*/
public class Ric {
private final RicConfig ricConfig;
- private RicState state = RicState.NOT_INITIATED;
+ @Getter
+ @Setter
+ private RicState state = RicState.UNDEFINED;
private Map<String, PolicyType> supportedPolicyTypes = new HashMap<>();
+ @Getter
+ @Setter
+ private A1ProtocolType protocolVersion = A1ProtocolType.UNKNOWN;
/**
* Creates the Ric. Initial state is {@link RicState.NOT_INITIATED}.
return ricConfig.name();
}
- public RicState state() {
- return state;
- }
-
- public void setState(RicState newState) {
- state = newState;
- }
-
public RicConfig getConfig() {
return this.ricConfig;
}
*/
public static enum RicState {
/**
- * The Ric has not been initiated yet.
+ * The agent view of the agent may be inconsistent.
*/
- NOT_INITIATED,
+ UNDEFINED,
/**
- * The Ric is working fine.
+ * The normal state. Policies can be configured.
*/
- ACTIVE,
+ IDLE,
/**
- * The Ric cannot be contacted.
+ * The Ric states are recovered.
*/
- NOT_REACHABLE, RECOVERING
+ RECOVERING
}
}