Skip to content

Commit

Permalink
Merge pull request #3498 from LBNL-UCB-STI/zn/#3494-concurrent-hashma…
Browse files Browse the repository at this point in the history
…p-physsim

switch to concurrent hashmap
  • Loading branch information
Xuan-1998 authored Mar 29, 2022
2 parents 7806b3e + 0443c55 commit 5c4bbc9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;

/*
Expand All @@ -36,8 +37,8 @@ public class Hao2018CaccRoadCapacityAdjustmentFunction implements RoadCapacityAd
private final boolean writeGraphs;
private final OutputDirectoryHierarchy controllerIO;
private final MultiValuedMap<Double, Double> caccCapacityIncrease = new HashSetValuedHashMap<>();
private final Map<String, Double> caccLinkCapacityIncrease = new HashMap<>();
private final Map<String, Double> allLinksCapacityIncrease = new HashMap<>();
private final Map<String, Double> caccLinkCapacityIncrease = new ConcurrentHashMap<>();
private final Map<String, Double> allLinksCapacityIncrease = new ConcurrentHashMap<>();
private final Optional<ICsvMapWriter> csvWriter;

private int numberOfMixedVehicleTypeEncountersOnCACCCategoryRoads = 0;
Expand Down

0 comments on commit 5c4bbc9

Please sign in to comment.