ConfigurazionePolicyModel.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.core.controllo_traffico.model;

  21. import org.openspcoop2.core.controllo_traffico.ConfigurazionePolicy;

  22. import org.openspcoop2.generic_project.beans.AbstractModel;
  23. import org.openspcoop2.generic_project.beans.IField;
  24. import org.openspcoop2.generic_project.beans.Field;
  25. import org.openspcoop2.generic_project.beans.ComplexField;


  26. /**    
  27.  * Model ConfigurazionePolicy
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class ConfigurazionePolicyModel extends AbstractModel<ConfigurazionePolicy> {

  34.     public ConfigurazionePolicyModel(){
  35.    
  36.         super();
  37.    
  38.         this.ID_POLICY = new Field("id-policy",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  39.         this.BUILT_IN = new Field("built-in",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  40.         this.DESCRIZIONE = new Field("descrizione",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  41.         this.RISORSA = new Field("risorsa",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  42.         this.SIMULTANEE = new Field("simultanee",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  43.         this.VALORE = new Field("valore",java.lang.Long.class,"configurazione-policy",ConfigurazionePolicy.class);
  44.         this.VALORE_2 = new Field("valore2",java.lang.Long.class,"configurazione-policy",ConfigurazionePolicy.class);
  45.         this.VALORE_TIPO_BANDA = new Field("valore-tipo-banda",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  46.         this.VALORE_TIPO_LATENZA = new Field("valore-tipo-latenza",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  47.         this.MODALITA_CONTROLLO = new Field("modalita-controllo",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  48.         this.TIPO_INTERVALLO_OSSERVAZIONE_REALTIME = new Field("tipo-intervallo-osservazione-realtime",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  49.         this.TIPO_INTERVALLO_OSSERVAZIONE_STATISTICO = new Field("tipo-intervallo-osservazione-statistico",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  50.         this.INTERVALLO_OSSERVAZIONE = new Field("intervallo-osservazione",java.lang.Integer.class,"configurazione-policy",ConfigurazionePolicy.class);
  51.         this.FINESTRA_OSSERVAZIONE = new Field("finestra-osservazione",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  52.         this.TIPO_APPLICABILITA = new Field("tipo-applicabilita",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  53.         this.APPLICABILITA_CON_CONGESTIONE = new Field("applicabilita-con-congestione",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  54.         this.APPLICABILITA_DEGRADO_PRESTAZIONALE = new Field("applicabilita-degrado-prestazionale",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  55.         this.DEGRADO_AVG_TIME_MODALITA_CONTROLLO = new Field("degrado-avg-time-modalita-controllo",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  56.         this.DEGRADO_AVG_TIME_TIPO_INTERVALLO_OSSERVAZIONE_REALTIME = new Field("degrado-avg-time-tipo-intervallo-osservazione-realtime",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  57.         this.DEGRADO_AVG_TIME_TIPO_INTERVALLO_OSSERVAZIONE_STATISTICO = new Field("degrado-avg-time-tipo-intervallo-osservazione-statistico",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  58.         this.DEGRADO_AVG_TIME_INTERVALLO_OSSERVAZIONE = new Field("degrado-avg-time-intervallo-osservazione",java.lang.Integer.class,"configurazione-policy",ConfigurazionePolicy.class);
  59.         this.DEGRADO_AVG_TIME_FINESTRA_OSSERVAZIONE = new Field("degrado-avg-time-finestra-osservazione",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  60.         this.DEGRADO_AVG_TIME_TIPO_LATENZA = new Field("degrado-avg-time-tipo-latenza",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  61.         this.APPLICABILITA_STATO_ALLARME = new Field("applicabilita-stato-allarme",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  62.         this.ALLARME_NOME = new Field("allarme-nome",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  63.         this.ALLARME_STATO = new Field("allarme-stato",java.lang.Integer.class,"configurazione-policy",ConfigurazionePolicy.class);
  64.         this.ALLARME_NOT_STATO = new Field("allarme-not-stato",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  65.    
  66.     }
  67.    
  68.     public ConfigurazionePolicyModel(IField father){
  69.    
  70.         super(father);
  71.    
  72.         this.ID_POLICY = new ComplexField(father,"id-policy",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  73.         this.BUILT_IN = new ComplexField(father,"built-in",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  74.         this.DESCRIZIONE = new ComplexField(father,"descrizione",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  75.         this.RISORSA = new ComplexField(father,"risorsa",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  76.         this.SIMULTANEE = new ComplexField(father,"simultanee",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  77.         this.VALORE = new ComplexField(father,"valore",java.lang.Long.class,"configurazione-policy",ConfigurazionePolicy.class);
  78.         this.VALORE_2 = new ComplexField(father,"valore2",java.lang.Long.class,"configurazione-policy",ConfigurazionePolicy.class);
  79.         this.VALORE_TIPO_BANDA = new ComplexField(father,"valore-tipo-banda",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  80.         this.VALORE_TIPO_LATENZA = new ComplexField(father,"valore-tipo-latenza",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  81.         this.MODALITA_CONTROLLO = new ComplexField(father,"modalita-controllo",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  82.         this.TIPO_INTERVALLO_OSSERVAZIONE_REALTIME = new ComplexField(father,"tipo-intervallo-osservazione-realtime",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  83.         this.TIPO_INTERVALLO_OSSERVAZIONE_STATISTICO = new ComplexField(father,"tipo-intervallo-osservazione-statistico",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  84.         this.INTERVALLO_OSSERVAZIONE = new ComplexField(father,"intervallo-osservazione",java.lang.Integer.class,"configurazione-policy",ConfigurazionePolicy.class);
  85.         this.FINESTRA_OSSERVAZIONE = new ComplexField(father,"finestra-osservazione",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  86.         this.TIPO_APPLICABILITA = new ComplexField(father,"tipo-applicabilita",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  87.         this.APPLICABILITA_CON_CONGESTIONE = new ComplexField(father,"applicabilita-con-congestione",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  88.         this.APPLICABILITA_DEGRADO_PRESTAZIONALE = new ComplexField(father,"applicabilita-degrado-prestazionale",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  89.         this.DEGRADO_AVG_TIME_MODALITA_CONTROLLO = new ComplexField(father,"degrado-avg-time-modalita-controllo",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  90.         this.DEGRADO_AVG_TIME_TIPO_INTERVALLO_OSSERVAZIONE_REALTIME = new ComplexField(father,"degrado-avg-time-tipo-intervallo-osservazione-realtime",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  91.         this.DEGRADO_AVG_TIME_TIPO_INTERVALLO_OSSERVAZIONE_STATISTICO = new ComplexField(father,"degrado-avg-time-tipo-intervallo-osservazione-statistico",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  92.         this.DEGRADO_AVG_TIME_INTERVALLO_OSSERVAZIONE = new ComplexField(father,"degrado-avg-time-intervallo-osservazione",java.lang.Integer.class,"configurazione-policy",ConfigurazionePolicy.class);
  93.         this.DEGRADO_AVG_TIME_FINESTRA_OSSERVAZIONE = new ComplexField(father,"degrado-avg-time-finestra-osservazione",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  94.         this.DEGRADO_AVG_TIME_TIPO_LATENZA = new ComplexField(father,"degrado-avg-time-tipo-latenza",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  95.         this.APPLICABILITA_STATO_ALLARME = new ComplexField(father,"applicabilita-stato-allarme",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  96.         this.ALLARME_NOME = new ComplexField(father,"allarme-nome",java.lang.String.class,"configurazione-policy",ConfigurazionePolicy.class);
  97.         this.ALLARME_STATO = new ComplexField(father,"allarme-stato",java.lang.Integer.class,"configurazione-policy",ConfigurazionePolicy.class);
  98.         this.ALLARME_NOT_STATO = new ComplexField(father,"allarme-not-stato",boolean.class,"configurazione-policy",ConfigurazionePolicy.class);
  99.    
  100.     }
  101.    
  102.    

  103.     public IField ID_POLICY = null;
  104.      
  105.     public IField BUILT_IN = null;
  106.      
  107.     public IField DESCRIZIONE = null;
  108.      
  109.     public IField RISORSA = null;
  110.      
  111.     public IField SIMULTANEE = null;
  112.      
  113.     public IField VALORE = null;
  114.      
  115.     public IField VALORE_2 = null;
  116.      
  117.     public IField VALORE_TIPO_BANDA = null;
  118.      
  119.     public IField VALORE_TIPO_LATENZA = null;
  120.      
  121.     public IField MODALITA_CONTROLLO = null;
  122.      
  123.     public IField TIPO_INTERVALLO_OSSERVAZIONE_REALTIME = null;
  124.      
  125.     public IField TIPO_INTERVALLO_OSSERVAZIONE_STATISTICO = null;
  126.      
  127.     public IField INTERVALLO_OSSERVAZIONE = null;
  128.      
  129.     public IField FINESTRA_OSSERVAZIONE = null;
  130.      
  131.     public IField TIPO_APPLICABILITA = null;
  132.      
  133.     public IField APPLICABILITA_CON_CONGESTIONE = null;
  134.      
  135.     public IField APPLICABILITA_DEGRADO_PRESTAZIONALE = null;
  136.      
  137.     public IField DEGRADO_AVG_TIME_MODALITA_CONTROLLO = null;
  138.      
  139.     public IField DEGRADO_AVG_TIME_TIPO_INTERVALLO_OSSERVAZIONE_REALTIME = null;
  140.      
  141.     public IField DEGRADO_AVG_TIME_TIPO_INTERVALLO_OSSERVAZIONE_STATISTICO = null;
  142.      
  143.     public IField DEGRADO_AVG_TIME_INTERVALLO_OSSERVAZIONE = null;
  144.      
  145.     public IField DEGRADO_AVG_TIME_FINESTRA_OSSERVAZIONE = null;
  146.      
  147.     public IField DEGRADO_AVG_TIME_TIPO_LATENZA = null;
  148.      
  149.     public IField APPLICABILITA_STATO_ALLARME = null;
  150.      
  151.     public IField ALLARME_NOME = null;
  152.      
  153.     public IField ALLARME_STATO = null;
  154.      
  155.     public IField ALLARME_NOT_STATO = null;
  156.      

  157.     @Override
  158.     public Class<ConfigurazionePolicy> getModeledClass(){
  159.         return ConfigurazionePolicy.class;
  160.     }
  161.    
  162.     @Override
  163.     public String toString(){
  164.         if(this.getModeledClass()!=null){
  165.             return this.getModeledClass().getName();
  166.         }else{
  167.             return "N.D.";
  168.         }
  169.     }

  170. }