Skip to content

Commit

Permalink
scrap also LKW-h / a
Browse files Browse the repository at this point in the history
  • Loading branch information
kt86 committed Jan 15, 2025
1 parent 686bed0 commit 2cbeacd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class StreetPhysicalEffectDataContainer {
private PhysicalEffect pvVehicleHours; //Personenverkehr (Pkw) (Fzg-h)
private PhysicalEffect pvVehicleKilometers; //Personenverkehr (Pkw) Fzg-km
private PhysicalEffect pvPersonHours; //Personenverkehr Personen-h
private PhysicalEffect gvVehicleHours; //Güterverkehr (Lkw) Fzg-h
private Double gvVehicleHours; //Güterverkehr (Lkw) Fzg-h ; Nicht differenziert nach Entfernung <50; >= 50km
private Double gvVehicleKilometers; //Güterverkehr (Lkw) Fzg-km

public StreetEmissionsDataContainer getEmissionsDataContainer() {
Expand Down Expand Up @@ -84,10 +84,10 @@ public int hashCode() {
result = 31 * result + (pvVehicleKilometers != null ? pvVehicleKilometers.hashCode() : 0);
return result;
}
public void setGvVehicleHours(PhysicalEffect gvVehicleHours){
public void setGvVehicleHours(Double gvVehicleHours){
this.gvVehicleHours = gvVehicleHours;
}
public PhysicalEffect getGvVehicleHours(){
public Double getGvVehicleHours(){
return gvVehicleHours;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ public static StreetPhysicalEffectDataContainer mapDocument(Document document) {
.ifPresent(i -> physicalEffectDataContainer.setPvVehicleKilometers(extractEffect(table.get(), i ) ) );

JSoupUtils.getFirstRowIndexWithText( table.get(), "Veränderung der Betriebsleistung Güterverkehr (GV)" )
.ifPresent( ii -> physicalEffectDataContainer.setGvVehicleKilometers( JSoupUtils.parseDoubleOrElseNull(JSoupUtils.getTextFromRowAndCol(table.get(), ii, 1) ) ) );
.ifPresent( ii -> physicalEffectDataContainer.setGvVehicleKilometers( JSoupUtils.parseDoubleOrElseNull(JSoupUtils.getTextFromRowAndCol(table.get(), ii, 1) ) ) );

JSoupUtils.getFirstRowIndexWithText( table.get(), "Veränderung der Fahrzeugeinsatzzeiten im GV" )
.ifPresent( ii -> physicalEffectDataContainer.setGvVehicleHours( JSoupUtils.parseDoubleOrElseNull(JSoupUtils.getTextFromRowAndCol(table.get(), ii, 1) ) ) );


return physicalEffectDataContainer;
}
Expand Down

0 comments on commit 2cbeacd

Please sign in to comment.