X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=pce%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fpce%2Fnetworkanalyzer%2FPceResult.java;fp=pce%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fpce%2Fnetworkanalyzer%2FPceResult.java;h=c35b94b06fdda48f105a7819e462aea2e65fd4e3;hb=7e175bf72bc28db4299b1fd76e6d01bdb0854d0f;hp=e9b6350205eb1f9fc63b473ff14ed8dbee6af279;hpb=90f7343d69fd5629f28eddae873ab3d2571ec46a;p=transportpce.git diff --git a/pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceResult.java b/pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceResult.java index e9b635020..c35b94b06 100644 --- a/pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceResult.java +++ b/pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceResult.java @@ -8,9 +8,11 @@ package org.opendaylight.transportpce.pce.networkanalyzer; +import java.math.BigDecimal; import java.util.List; import java.util.Map; import org.opendaylight.transportpce.common.ResponseCodes; +import org.opendaylight.transportpce.common.fixedflex.GridConstant; import org.opendaylight.yang.gen.v1.http.org.openroadm.service.format.rev190531.ServiceFormat; import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev201126.path.description.AToZDirection; import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev201126.path.description.ZToADirection; @@ -23,11 +25,13 @@ public class PceResult { private String calcMessage = "503 Calculator Unavailable"; private boolean calcStatus = false; private String responseCode = ResponseCodes.RESPONSE_FAILED; - private long resultWavelength = -1; + private long resultWavelength = GridConstant.IRRELEVANT_WAVELENGTH_NUMBER; private Map resultTribPort; private Map> resultTribSlot; private Integer resultTribSlotNb = -1; private String serviceType = ""; + private BigDecimal minFreq; + private BigDecimal maxFreq; // for now it is constant returned as received from A-end private long rate = -1; @@ -42,9 +46,6 @@ public class PceResult { private AToZDirection atozdirection = null; private ZToADirection ztoadirection = null; - public PceResult() { - } - public void setRC(String rc) { switch (rc) { case ResponseCodes.RESPONSE_OK : @@ -163,4 +164,36 @@ public class PceResult { this.serviceType = serviceType; } + /** + * Get the minimal frequency. + * @return the minFreq. + */ + public BigDecimal getMinFreq() { + return minFreq; + } + + /** + * Set the minimal frequency. + * @param minFreq the minFreq to set. + */ + public void setMinFreq(BigDecimal minFreq) { + this.minFreq = minFreq; + } + + /** + * Get the maximal frequency. + * @return the maxFreq. + */ + public BigDecimal getMaxFreq() { + return maxFreq; + } + + /** + * Set the maximal frequency. + * @param maxFreq the maxFreq to set. + */ + public void setMaxFreq(BigDecimal maxFreq) { + this.maxFreq = maxFreq; + } + }