RisultatoVerificaPolicy.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */

  20. package org.openspcoop2.pdd.core.controllo_traffico;

  21. import org.openspcoop2.core.controllo_traffico.constants.TipoRisorsa;

  22. /**    
  23.  * RisultatoVerificaPolicy
  24.  *
  25.  * @author Poli Andrea (poli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */
  29. public class RisultatoVerificaPolicy {

  30.     private TipoRisorsa risorsa;
  31.     private boolean simultanee;
  32.    
  33.     private boolean violata;
  34.    
  35.     private boolean erroreGenerico;
  36.    
  37.     private boolean nonApplicabile;
  38.    
  39.     private String descrizione;
  40.    
  41.     private boolean applicabilitaCongestione;
  42.     private boolean applicabilitaDegradoPrestazionale;
  43.     private boolean applicabilitaStatoAllarme;
  44.    
  45.     private boolean warningOnly;
  46.    
  47.     private Long maxValueBeforeNormalizing;
  48.     private Long maxValue;
  49.     private Long actualValue;
  50.     private Long msBeforeResetCounters; // solo nel caso di finestra corrente
  51.     private Long msWindow; // solo nel caso di finestra corrente
  52.     private boolean remainingZeroValue = true;
  53.    
  54.     public boolean isViolata() {
  55.         return this.violata;
  56.     }
  57.     public void setViolata(boolean violata) {
  58.         this.violata = violata;
  59.     }
  60.     public boolean isNonApplicabile() {
  61.         return this.nonApplicabile;
  62.     }
  63.     public void setNonApplicabile(boolean nonApplicabile) {
  64.         this.nonApplicabile = nonApplicabile;
  65.     }
  66.     public boolean isWarningOnly() {
  67.         return this.warningOnly;
  68.     }
  69.     public void setWarningOnly(boolean warningOnly) {
  70.         this.warningOnly = warningOnly;
  71.     }
  72.     public boolean isErroreGenerico() {
  73.         return this.erroreGenerico;
  74.     }
  75.     public void setErroreGenerico(boolean erroreGenerico) {
  76.         this.erroreGenerico = erroreGenerico;
  77.     }
  78.     public boolean isSimultanee() {
  79.         return this.simultanee;
  80.     }
  81.     public void setSimultanee(boolean simultanee) {
  82.         this.simultanee = simultanee;
  83.     }
  84.     public TipoRisorsa getRisorsa() {
  85.         return this.risorsa;
  86.     }
  87.     public void setRisorsa(TipoRisorsa risorsa) {
  88.         this.risorsa = risorsa;
  89.     }
  90.     public String getDescrizione() {
  91.         return this.descrizione;
  92.     }
  93.     public void setDescrizione(String descrizione) {
  94.         this.descrizione = descrizione;
  95.     }
  96.     public boolean isApplicabilitaCongestione() {
  97.         return this.applicabilitaCongestione;
  98.     }
  99.     public void setApplicabilitaCongestione(boolean applicabilitaCongestione) {
  100.         this.applicabilitaCongestione = applicabilitaCongestione;
  101.     }
  102.     public boolean isApplicabilitaDegradoPrestazionale() {
  103.         return this.applicabilitaDegradoPrestazionale;
  104.     }
  105.     public void setApplicabilitaDegradoPrestazionale(boolean applicabilitaDegradoPrestazionale) {
  106.         this.applicabilitaDegradoPrestazionale = applicabilitaDegradoPrestazionale;
  107.     }
  108.     public boolean isApplicabilitaStatoAllarme() {
  109.         return this.applicabilitaStatoAllarme;
  110.     }
  111.     public void setApplicabilitaStatoAllarme(boolean applicabilitaStatoAllarme) {
  112.         this.applicabilitaStatoAllarme = applicabilitaStatoAllarme;
  113.     }
  114.    
  115.     public Long getMaxValueBeforeNormalizing() {
  116.         return this.maxValueBeforeNormalizing;
  117.     }
  118.     public void setMaxValueBeforeNormalizing(Long maxValueBeforeNormalizing) {
  119.         this.maxValueBeforeNormalizing = maxValueBeforeNormalizing;
  120.     }
  121.     public Long getMaxValue() {
  122.         return this.maxValue;
  123.     }
  124.     public void setMaxValue(Long maxValue) {
  125.         this.maxValue = maxValue;
  126.     }
  127.     public Long getActualValue() {
  128.         return this.actualValue;
  129.     }
  130.     public void setActualValue(Long actualValue) {
  131.         this.actualValue = actualValue;
  132.     }
  133.     public Long getMsBeforeResetCounters() {
  134.         return this.msBeforeResetCounters;
  135.     }
  136.     public void setMsBeforeResetCounters(Long secondBeforeResetCounters) {
  137.         this.msBeforeResetCounters = secondBeforeResetCounters;
  138.     }
  139.     public Long getMsWindow() {
  140.         return this.msWindow;
  141.     }
  142.     public void setMsWindow(Long msWindow) {
  143.         this.msWindow = msWindow;
  144.     }
  145.     public boolean isRemainingZeroValue() {
  146.         return this.remainingZeroValue;
  147.     }
  148.     public void setRemainingZeroValue(boolean remainingZeroValue) {
  149.         this.remainingZeroValue = remainingZeroValue;
  150.     }
  151.    
  152. }