Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jun 6, 2024
1 parent 64f9dd1 commit afcfd92
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
name = "activity-sampling",
description = "Create activities by sampling from survey data"
)
public class RunActivitySampling implements MATSimAppCommand, PersonAlgorithm {
public final class RunActivitySampling implements MATSimAppCommand, PersonAlgorithm {

private static final Logger log = LogManager.getLogger(RunActivitySampling.class);
private final CsvOptions csv = new CsvOptions(CSVFormat.Predefined.Default);
Expand Down Expand Up @@ -173,6 +173,9 @@ public void run(Person person) {
}
}

/**
* Copy attributes from csv record to person.
*/
public void copyAttributes(CSVRecord row, Person person) {
PersonUtils.setCarAvail(person, row.get("car_avail").equals("True") ? "always" : "never");
PersonUtils.setLicence(person, row.get("driving_license").toLowerCase());
Expand Down

0 comments on commit afcfd92

Please sign in to comment.