Package br.unip.aps.busca
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
ConstructorsConstructorDescriptionPropagacao(int mesesComparados, long casosComVizinho, long novosComVizinho, long casosSemVizinho, long novosSemVizinho, int municipiosNoGrafo, int arestas, long focosSemMunicipio) Creates an instance of aPropagacaorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintarestas()Returns the value of thearestasrecord component.longReturns the value of thecasosComVizinhorecord component.longReturns the value of thecasosSemVizinhorecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefocosSemMunicipiorecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themesesComparadosrecord component.intReturns the value of themunicipiosNoGraforecord component.longReturns the value of thenovosComVizinhorecord component.longReturns the value of thenovosSemVizinhorecord component.doublerazao()Quantas vezes mais provavel e o surgimento de focos quando um vizinho queimou no mes anterior.doubledoublefinal StringtoString()Returns a string representation of this record class.
-
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 aPropagacaorecord class.- Parameters:
mesesComparados- the value for themesesComparadosrecord componentcasosComVizinho- the value for thecasosComVizinhorecord componentnovosComVizinho- the value for thenovosComVizinhorecord componentcasosSemVizinho- the value for thecasosSemVizinhorecord componentnovosSemVizinho- the value for thenovosSemVizinhorecord componentmunicipiosNoGrafo- the value for themunicipiosNoGraforecord componentarestas- the value for thearestasrecord componentfocosSemMunicipio- the value for thefocosSemMunicipiorecord 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
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. -
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. -
equals
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 '=='. -
mesesComparados
public int mesesComparados()Returns the value of themesesComparadosrecord component.- Returns:
- the value of the
mesesComparadosrecord component
-
casosComVizinho
public long casosComVizinho()Returns the value of thecasosComVizinhorecord component.- Returns:
- the value of the
casosComVizinhorecord component
-
novosComVizinho
public long novosComVizinho()Returns the value of thenovosComVizinhorecord component.- Returns:
- the value of the
novosComVizinhorecord component
-
casosSemVizinho
public long casosSemVizinho()Returns the value of thecasosSemVizinhorecord component.- Returns:
- the value of the
casosSemVizinhorecord component
-
novosSemVizinho
public long novosSemVizinho()Returns the value of thenovosSemVizinhorecord component.- Returns:
- the value of the
novosSemVizinhorecord component
-
municipiosNoGrafo
public int municipiosNoGrafo()Returns the value of themunicipiosNoGraforecord component.- Returns:
- the value of the
municipiosNoGraforecord component
-
arestas
public int arestas()Returns the value of thearestasrecord component.- Returns:
- the value of the
arestasrecord component
-
focosSemMunicipio
public long focosSemMunicipio()Returns the value of thefocosSemMunicipiorecord component.- Returns:
- the value of the
focosSemMunicipiorecord component
-