Record Class EstudoPrevisao.Caso

java.lang.Object
java.lang.Record
br.unip.aps.ml.EstudoPrevisao.Caso
All Implemented Interfaces:
Serializable
Enclosing class:
EstudoPrevisao

public static record EstudoPrevisao.Caso(YearMonth mes, long real, double previsto, long maiorMesTreino, YearMonth maiorMesTreinoData, int maiorMunicipioMesTreino, int maiorMunicipioMesCaso, String municipioCaso, List<long[]> diario, double[] mediaDiariaAnteriores, double diasSemChuva, double diasSemChuvaAnteriores, double risco, double riscoAnteriores, List<String[]> municipios) extends Record implements Serializable
Estudo de caso de um mes.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Caso(YearMonth mes, long real, double previsto, long maiorMesTreino, YearMonth maiorMesTreinoData, int maiorMunicipioMesTreino, int maiorMunicipioMesCaso, String municipioCaso, List<long[]> diario, double[] mediaDiariaAnteriores, double diasSemChuva, double diasSemChuvaAnteriores, double risco, double riscoAnteriores, List<String[]> municipios)
    Creates an instance of a Caso record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<long[]>
    Returns the value of the diario record component.
    double
    Returns the value of the diasSemChuva record component.
    double
    Returns the value of the diasSemChuvaAnteriores record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the maiorMesTreino record component.
    Returns the value of the maiorMesTreinoData record component.
    int
    Returns the value of the maiorMunicipioMesCaso record component.
    int
    Returns the value of the maiorMunicipioMesTreino record component.
    double[]
    Returns the value of the mediaDiariaAnteriores record component.
    mes()
    Returns the value of the mes record component.
    Returns the value of the municipioCaso record component.
    Returns the value of the municipios record component.
    double
    Returns the value of the previsto record component.
    long
    Returns the value of the real record component.
    double
    Returns the value of the risco record component.
    double
    Returns the value of the riscoAnteriores record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Caso

      public Caso(YearMonth mes, long real, double previsto, long maiorMesTreino, YearMonth maiorMesTreinoData, int maiorMunicipioMesTreino, int maiorMunicipioMesCaso, String municipioCaso, List<long[]> diario, double[] mediaDiariaAnteriores, double diasSemChuva, double diasSemChuvaAnteriores, double risco, double riscoAnteriores, List<String[]> municipios)
      Creates an instance of a Caso record class.
      Parameters:
      mes - the value for the mes record component
      real - the value for the real record component
      previsto - the value for the previsto record component
      maiorMesTreino - the value for the maiorMesTreino record component
      maiorMesTreinoData - the value for the maiorMesTreinoData record component
      maiorMunicipioMesTreino - the value for the maiorMunicipioMesTreino record component
      maiorMunicipioMesCaso - the value for the maiorMunicipioMesCaso record component
      municipioCaso - the value for the municipioCaso record component
      diario - the value for the diario record component
      mediaDiariaAnteriores - the value for the mediaDiariaAnteriores record component
      diasSemChuva - the value for the diasSemChuva record component
      diasSemChuvaAnteriores - the value for the diasSemChuvaAnteriores record component
      risco - the value for the risco record component
      riscoAnteriores - the value for the riscoAnteriores record component
      municipios - the value for the municipios record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mes

      public YearMonth mes()
      Returns the value of the mes record component.
      Returns:
      the value of the mes record component
    • real

      public long real()
      Returns the value of the real record component.
      Returns:
      the value of the real record component
    • previsto

      public double previsto()
      Returns the value of the previsto record component.
      Returns:
      the value of the previsto record component
    • maiorMesTreino

      public long maiorMesTreino()
      Returns the value of the maiorMesTreino record component.
      Returns:
      the value of the maiorMesTreino record component
    • maiorMesTreinoData

      public YearMonth maiorMesTreinoData()
      Returns the value of the maiorMesTreinoData record component.
      Returns:
      the value of the maiorMesTreinoData record component
    • maiorMunicipioMesTreino

      public int maiorMunicipioMesTreino()
      Returns the value of the maiorMunicipioMesTreino record component.
      Returns:
      the value of the maiorMunicipioMesTreino record component
    • maiorMunicipioMesCaso

      public int maiorMunicipioMesCaso()
      Returns the value of the maiorMunicipioMesCaso record component.
      Returns:
      the value of the maiorMunicipioMesCaso record component
    • municipioCaso

      public String municipioCaso()
      Returns the value of the municipioCaso record component.
      Returns:
      the value of the municipioCaso record component
    • diario

      public List<long[]> diario()
      Returns the value of the diario record component.
      Returns:
      the value of the diario record component
    • mediaDiariaAnteriores

      public double[] mediaDiariaAnteriores()
      Returns the value of the mediaDiariaAnteriores record component.
      Returns:
      the value of the mediaDiariaAnteriores record component
    • diasSemChuva

      public double diasSemChuva()
      Returns the value of the diasSemChuva record component.
      Returns:
      the value of the diasSemChuva record component
    • diasSemChuvaAnteriores

      public double diasSemChuvaAnteriores()
      Returns the value of the diasSemChuvaAnteriores record component.
      Returns:
      the value of the diasSemChuvaAnteriores record component
    • risco

      public double risco()
      Returns the value of the risco record component.
      Returns:
      the value of the risco record component
    • riscoAnteriores

      public double riscoAnteriores()
      Returns the value of the riscoAnteriores record component.
      Returns:
      the value of the riscoAnteriores record component
    • municipios

      public List<String[]> municipios()
      Returns the value of the municipios record component.
      Returns:
      the value of the municipios record component