clean some compilation warnings
[transportpce.git] / servicehandler / src / main / java / org / opendaylight / transportpce / servicehandler / validation / checks / CheckCoherencyHardSoft.java
1 /*
2  * Copyright © 2017 Orange, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.transportpce.servicehandler.validation.checks;
10
11 import org.opendaylight.yang.gen.v1.http.org.openroadm.routing.constrains.rev161014.routing.constraints.HardConstraints;
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.routing.constrains.rev161014.routing.constraints.SoftConstraints;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
15
16 /**
17  * Class to check coherency between hard and soft constraints.
18  *
19  */
20 public final class CheckCoherencyHardSoft {
21
22     private static final Logger LOG = LoggerFactory.getLogger(CheckCoherencyHardSoft.class);
23
24     /**
25      * function to check coherency between hard and soft constraints.
26      * @param hard Hard Constraints
27      * @param soft Soft Constraints
28      *
29      * @return  <code> true </code>  if coherent
30      *          <code> false </code> else
31      */
32     public static boolean check(HardConstraints hard, SoftConstraints soft) {
33         boolean result = false;
34         if (hard != null && soft != null) {
35             /*
36              * Check coherency with hard/soft constraints
37              * hard/soft include/exclude coherency
38              *
39              */
40         } else {
41             LOG.info("HardConstraints or/and  SoftConstraints is null !");
42             result = true;
43         }
44         return result;
45     }
46
47     private CheckCoherencyHardSoft() {
48     }
49
50 }