Skip to content

Commit

Permalink
double-checked since the beginning of time :) (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
neuma authored and Joschka Bischoff committed Aug 24, 2018
1 parent c403407 commit eeeb2fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions matsim/src/main/java/org/matsim/core/network/LinkImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@
this.freespeed = freespeed;
this.checkFreespeedSemantics();
this.capacity = capacity;
this.checkCapacitiySemantics();
this.checkCapacitiySemantics();
this.checkCapacitySemantics();
this.nofLanes = lanes;
this.checkNumberOfLanesSemantics();
if (this.from.equals(this.to) && (loopWarnCnt < maxLoopWarnCnt)) {
Expand All @@ -111,7 +110,7 @@
}
}

private void checkCapacitiySemantics() {
private void checkCapacitySemantics() {
/*
* I see no reason why a freespeed and a capacity of zero should not be
* allowed! joh 9may2008
Expand Down Expand Up @@ -194,7 +193,7 @@ public final boolean setToNode(final Node node) {
@Override
public void setCapacity(double capacityPerNetworkCapcityPeriod){
this.capacity = capacityPerNetworkCapcityPeriod;
this.checkCapacitiySemantics();
this.checkCapacitySemantics();
}

@Override
Expand Down

0 comments on commit eeeb2fa

Please sign in to comment.