From 442bb3c2d0ca9c6ecf3ecf5d85dc8fec725a204c Mon Sep 17 00:00:00 2001 From: Jerry Flood Date: Mon, 1 Apr 2019 13:27:05 -0400 Subject: Define interface to minizinc engine Issue-ID: OPTFRA-436 Change-Id: Icf450f06d37f6035a620b3f22a5c186f4923d63c Signed-off-by: Jerry Flood --- cmso-optimizer/pom.xml | 5 + .../src/main/docker/assembly/cmso-files.xml | 1 - .../src/main/java/org/onap/observations/Mdc.java | 2 +- .../availability/timewindows/RecurringWindows.java | 1 - .../clients/optimizer/models/ElementSlot.java | 98 ++++++++++ .../optimizer/models/OptimizerOutResults.java | 46 +++++ .../optimizer/models/OptimizerOutSchedule.java | 60 ++++++ .../clients/optimizer/models/OptimizerOutYaml.java | 65 +++++++ .../optimizer/models/OptimizerParameters.java | 206 +++++++++++++++++++++ .../optimizer/models/OptimizerResponseUtility.java | 81 ++++++++ .../optimizer/models/OptimizerSchedule.java | 63 +++++++ .../clients/optimizer/models/Results.java | 46 +++++ .../clients/ticketmgt/TicketMgtRequestManager.java | 30 +-- .../optimizer/service/rs/models/ChangeWindow.java | 14 ++ cmso-optimizer/src/test/data/resultsTest001.yaml | 28 +++ .../clients/optimizer/models/ResultsTest.java | 40 ++++ .../service/rs/models/ChangeWindowTest.java | 53 ++++++ 17 files changed, 821 insertions(+), 18 deletions(-) create mode 100644 cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/ElementSlot.java create mode 100644 cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/OptimizerOutResults.java create mode 100644 cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/OptimizerOutSchedule.java create mode 100644 cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/OptimizerOutYaml.java create mode 100644 cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/OptimizerParameters.java create mode 100644 cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/OptimizerResponseUtility.java create mode 100644 cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/OptimizerSchedule.java create mode 100644 cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/Results.java create mode 100644 cmso-optimizer/src/test/data/resultsTest001.yaml create mode 100644 cmso-optimizer/src/test/java/org/onap/optf/cmso/optimizer/clients/optimizer/models/ResultsTest.java create mode 100644 cmso-optimizer/src/test/java/org/onap/optf/cmso/optimizer/service/rs/models/ChangeWindowTest.java diff --git a/cmso-optimizer/pom.xml b/cmso-optimizer/pom.xml index 8db7eb2..b609de5 100644 --- a/cmso-optimizer/pom.xml +++ b/cmso-optimizer/pom.xml @@ -205,6 +205,11 @@ + + org.yaml + snakeyaml + + diff --git a/cmso-optimizer/src/main/docker/assembly/cmso-files.xml b/cmso-optimizer/src/main/docker/assembly/cmso-files.xml index 37804ec..2e3f19e 100644 --- a/cmso-optimizer/src/main/docker/assembly/cmso-files.xml +++ b/cmso-optimizer/src/main/docker/assembly/cmso-files.xml @@ -1,5 +1,4 @@