X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fclamp%2Floop%2FLoop.java;h=2bf3decd60f02e18d8d99b9f06d010e90ac1875d;hb=fb4b25f6827accf6f975f9ca9a7aaee08d335c2f;hp=f185460cfdfec809594de61431821e0aff762db1;hpb=5c3a825851bb1a345620c5c4951726c5b94a0341;p=clamp.git diff --git a/src/main/java/org/onap/clamp/loop/Loop.java b/src/main/java/org/onap/clamp/loop/Loop.java index f185460c..2bf3decd 100644 --- a/src/main/java/org/onap/clamp/loop/Loop.java +++ b/src/main/java/org/onap/clamp/loop/Loop.java @@ -270,6 +270,17 @@ public class Loop extends AuditEntity implements Serializable { this.setSvgRepresentation(SvgLoopGenerator.getSvgImage(this)); } + /** + * This method removes an operational policy to the loop. + * It re-computes the Svg as well. + * + * @param opPolicy the operationalPolicy to add + */ + public void removeOperationalPolicy(OperationalPolicy opPolicy) { + operationalPolicies.remove(opPolicy); + this.setSvgRepresentation(SvgLoopGenerator.getSvgImage(this)); + } + /** * This method adds an micro service policy to the loop. * It re-computes the Svg as well.