2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.controlloop;
23 import java.time.Instant;
24 import java.util.HashMap;
27 import com.google.gson.annotations.SerializedName;
29 public class VirtualControlLoopEvent extends ControlLoopEvent {
34 private static final long serialVersionUID = -5752405682246066226L;
35 private Instant closedLoopAlarmStart;
36 private Instant closedLoopAlarmEnd;
37 @SerializedName("AAI")
38 private Map<String, String> aai = new HashMap<>();
40 public VirtualControlLoopEvent() {
43 public VirtualControlLoopEvent(VirtualControlLoopEvent event) {
48 if (event.aai != null) {
49 this.aai = new HashMap<>(event.aai);
51 this.closedLoopAlarmStart = event.closedLoopAlarmStart;
52 this.closedLoopAlarmEnd = event.closedLoopAlarmEnd;
55 public Instant getClosedLoopAlarmStart() {
56 return closedLoopAlarmStart;
59 public void setClosedLoopAlarmStart(Instant closedLoopAlarmStart) {
60 this.closedLoopAlarmStart = closedLoopAlarmStart;
63 public Instant getClosedLoopAlarmEnd() {
64 return closedLoopAlarmEnd;
67 public void setClosedLoopAlarmEnd(Instant closedLoopAlarmEnd) {
68 this.closedLoopAlarmEnd = closedLoopAlarmEnd;
71 public Map<String, String> getAAI() {
75 public void setAAI(Map<String, String> aai) {