Record Class ServicoGeografico.Propagacao

java.lang.Object
java.lang.Record
br.unip.aps.busca.ServicoGeografico.Propagacao
Enclosing class:
ServicoGeografico

public static record ServicoGeografico.Propagacao(int mesesComparados, long casosComVizinho, long novosComVizinho, long casosSemVizinho, long novosSemVizinho, int municipiosNoGrafo, int arestas, long focosSemMunicipio) extends Record
Os focos "pulam" para o vizinho? Compara o surgimento de focos com e sem vizinho em chamas no mes anterior.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Propagacao(int mesesComparados, long casosComVizinho, long novosComVizinho, long casosSemVizinho, long novosSemVizinho, int municipiosNoGrafo, int arestas, long focosSemMunicipio)
    Creates an instance of a Propagacao record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the arestas record component.
    long
    Returns the value of the casosComVizinho record component.
    long
    Returns the value of the casosSemVizinho record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the focosSemMunicipio record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the mesesComparados record component.
    int
    Returns the value of the municipiosNoGrafo record component.
    long
    Returns the value of the novosComVizinho record component.
    long
    Returns the value of the novosSemVizinho record component.
    double
    Quantas vezes mais provavel e o surgimento de focos quando um vizinho queimou no mes anterior.
    double
     
    double
     
    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

    • Propagacao

      public Propagacao(int mesesComparados, long casosComVizinho, long novosComVizinho, long casosSemVizinho, long novosSemVizinho, int municipiosNoGrafo, int arestas, long focosSemMunicipio)
      Creates an instance of a Propagacao record class.
      Parameters:
      mesesComparados - the value for the mesesComparados record component
      casosComVizinho - the value for the casosComVizinho record component
      novosComVizinho - the value for the novosComVizinho record component
      casosSemVizinho - the value for the casosSemVizinho record component
      novosSemVizinho - the value for the novosSemVizinho record component
      municipiosNoGrafo - the value for the municipiosNoGrafo record component
      arestas - the value for the arestas record component
      focosSemMunicipio - the value for the focosSemMunicipio record component
  • Method Details

    • taxaComVizinho

      public double taxaComVizinho()
    • taxaSemVizinho

      public double taxaSemVizinho()
    • razao

      public double razao()
      Quantas vezes mais provavel e o surgimento de focos quando um vizinho queimou no mes anterior.
    • 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. All components in this record class 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.
    • mesesComparados

      public int mesesComparados()
      Returns the value of the mesesComparados record component.
      Returns:
      the value of the mesesComparados record component
    • casosComVizinho

      public long casosComVizinho()
      Returns the value of the casosComVizinho record component.
      Returns:
      the value of the casosComVizinho record component
    • novosComVizinho

      public long novosComVizinho()
      Returns the value of the novosComVizinho record component.
      Returns:
      the value of the novosComVizinho record component
    • casosSemVizinho

      public long casosSemVizinho()
      Returns the value of the casosSemVizinho record component.
      Returns:
      the value of the casosSemVizinho record component
    • novosSemVizinho

      public long novosSemVizinho()
      Returns the value of the novosSemVizinho record component.
      Returns:
      the value of the novosSemVizinho record component
    • municipiosNoGrafo

      public int municipiosNoGrafo()
      Returns the value of the municipiosNoGrafo record component.
      Returns:
      the value of the municipiosNoGrafo record component
    • arestas

      public int arestas()
      Returns the value of the arestas record component.
      Returns:
      the value of the arestas record component
    • focosSemMunicipio

      public long focosSemMunicipio()
      Returns the value of the focosSemMunicipio record component.
      Returns:
      the value of the focosSemMunicipio record component