Package br.unip.aps.geo
Record Class PerfilMunicipio
java.lang.Object
java.lang.Record
br.unip.aps.geo.PerfilMunicipio
public record PerfilMunicipio(String nome, String nomeInpe, long total, List<Contagem> porAno, List<PerfilMunicipio.Mes> porMes, List<Contagem> biomas, int posicao, int municipiosComFocos, double areaKm2, double latitude, double longitude, List<Contagem> vizinhosComFocos, int vizinhos)
extends Record
Ficha de um municipio: focos por ano e por mes, bioma, posicao no ranking do estado e vizinhos com focos.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordFocos de um mes do periodo. -
Constructor Summary
ConstructorsConstructorDescriptionPerfilMunicipio(String nome, String nomeInpe, long total, List<Contagem> porAno, List<PerfilMunicipio.Mes> porMes, List<Contagem> biomas, int posicao, int municipiosComFocos, double areaKm2, double latitude, double longitude, List<Contagem> vizinhosComFocos, int vizinhos) Creates an instance of aPerfilMunicipiorecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleareaKm2()Returns the value of theareaKm2record component.Bioma com mais focos no municipio, ou vazio.biomas()Returns the value of thebiomasrecord component.static PerfilMunicipiode(List<FocoIncendio> focos, String municipio) Monta a ficha a partir dos focos; o nome pode vir do INPE ou do IBGE (caixa e acentos sao ignorados).doubleFocos por 1.000 km² de area territorial (NaN quando o municipio nao esta na malha do IBGE).final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublelatitude()Returns the value of thelatituderecord component.doubleReturns the value of thelongituderecord component.intReturns the value of themunicipiosComFocosrecord component.nome()Returns the value of thenomerecord component.nomeInpe()Returns the value of thenomeInperecord component.pico()Mes com mais focos (o primeiro, em caso de empate), ou null se nao houve focos.porAno()Returns the value of theporAnorecord component.porMes()Returns the value of theporMesrecord component.intposicao()Returns the value of theposicaorecord component.static List<PerfilMunicipio> todos(List<FocoIncendio> focos) Fichas de todos os municipios com focos, do que mais queimou para o que menos queimou.final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.doublevariacao()Variacao percentual entre o primeiro e o ultimo ano (NaN se o primeiro ano nao teve focos).intvizinhos()Returns the value of thevizinhosrecord component.Returns the value of thevizinhosComFocosrecord component.
-
Constructor Details
-
PerfilMunicipio
public PerfilMunicipio(String nome, String nomeInpe, long total, List<Contagem> porAno, List<PerfilMunicipio.Mes> porMes, List<Contagem> biomas, int posicao, int municipiosComFocos, double areaKm2, double latitude, double longitude, List<Contagem> vizinhosComFocos, int vizinhos) Creates an instance of aPerfilMunicipiorecord class.- Parameters:
nome- the value for thenomerecord componentnomeInpe- the value for thenomeInperecord componenttotal- the value for thetotalrecord componentporAno- the value for theporAnorecord componentporMes- the value for theporMesrecord componentbiomas- the value for thebiomasrecord componentposicao- the value for theposicaorecord componentmunicipiosComFocos- the value for themunicipiosComFocosrecord componentareaKm2- the value for theareaKm2record componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componentvizinhosComFocos- the value for thevizinhosComFocosrecord componentvizinhos- the value for thevizinhosrecord component
-
-
Method Details
-
de
Monta a ficha a partir dos focos; o nome pode vir do INPE ou do IBGE (caixa e acentos sao ignorados). -
todos
Fichas de todos os municipios com focos, do que mais queimou para o que menos queimou. -
densidade
public double densidade()Focos por 1.000 km² de area territorial (NaN quando o municipio nao esta na malha do IBGE). -
biomaPrincipal
Bioma com mais focos no municipio, ou vazio. -
pico
Mes com mais focos (o primeiro, em caso de empate), ou null se nao houve focos. -
variacao
public double variacao()Variacao percentual entre o primeiro e o ultimo ano (NaN se o primeiro ano nao teve focos). -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
nome
Returns the value of thenomerecord component.- Returns:
- the value of the
nomerecord component
-
nomeInpe
Returns the value of thenomeInperecord component.- Returns:
- the value of the
nomeInperecord component
-
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
porAno
Returns the value of theporAnorecord component.- Returns:
- the value of the
porAnorecord component
-
porMes
Returns the value of theporMesrecord component.- Returns:
- the value of the
porMesrecord component
-
biomas
Returns the value of thebiomasrecord component.- Returns:
- the value of the
biomasrecord component
-
posicao
public int posicao()Returns the value of theposicaorecord component.- Returns:
- the value of the
posicaorecord component
-
municipiosComFocos
public int municipiosComFocos()Returns the value of themunicipiosComFocosrecord component.- Returns:
- the value of the
municipiosComFocosrecord component
-
areaKm2
public double areaKm2()Returns the value of theareaKm2record component.- Returns:
- the value of the
areaKm2record component
-
latitude
public double latitude()Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
longitude
public double longitude()Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
vizinhosComFocos
Returns the value of thevizinhosComFocosrecord component.- Returns:
- the value of the
vizinhosComFocosrecord component
-
vizinhos
public int vizinhos()Returns the value of thevizinhosrecord component.- Returns:
- the value of the
vizinhosrecord component
-