Skip to content

Commit

Permalink
Merge pull request #3 from wsp-sag/bart-feat-mode-choice
Browse files Browse the repository at this point in the history
Add person type getter for mode choice
  • Loading branch information
i-am-sijia committed May 27, 2022
2 parents bcb6757 + ede30c6 commit d03566a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
Binary file modified core/projects/mtc/release/mtc.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,14 @@ private int[] getZoneTableIntColumn( TazDataIf tazDataManager, String fieldName

return ( tazDataManager.getZoneTableIntColumn( fieldName ) );
}

public String getPersonType() {
return person.getPersonType();
}

public int getPersonTypeNumber() {
return person.getPersonTypeNumber();
}


private void setupMethodIndexMap() {
Expand Down Expand Up @@ -231,6 +238,7 @@ private void setupMethodIndexMap() {
methodIndexMap.put( "getUseOwnedAV", 36);
methodIndexMap.put( "getOrigCounty", 37);
methodIndexMap.put( "getHhIncomeInDollars", 38);
methodIndexMap.put( "getPersonTypeNumber", 39);
}


Expand Down Expand Up @@ -280,6 +288,7 @@ public double getValueForIndex(int variableIndex, int arrayIndex) {
case 36: return getUseOwnedAV();
case 37: return getOrigCounty();
case 38: return getHhIncomeInDollars();
case 39: return getPersonTypeNumber();

default:
logger.error("method number = "+variableIndex+" not found");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,13 @@ private int[] getZoneTableIntColumn( TazDataIf tazDataManager, String fieldName
return ( tazDataManager.getZoneTableIntColumn( fieldName ) );
}

public String getPersonType() {
return person.getPersonType();
}

public int getPersonTypeNumber() {
return person.getPersonTypeNumber();
}


private void setupMethodIndexMap() {
Expand Down Expand Up @@ -290,6 +296,7 @@ private void setupMethodIndexMap() {
methodIndexMap.put("getUseOwnedAV", 41);
methodIndexMap.put("getTourModeIsRideHail", 42 );
methodIndexMap.put("getHhIncomeInDollars", 43);
methodIndexMap.put("getPersonTypeNumber", 44);


}
Expand Down Expand Up @@ -345,6 +352,7 @@ public double getValueForIndex(int variableIndex, int arrayIndex) {
case 41: return getUseOwnedAV();
case 42: return getTourModeIsRideHail();
case 43: return getHhIncomeInDollars();
case 44: return getPersonTypeNumber();

default:
logger.error("method number = "+variableIndex+" not found");
Expand Down
Binary file modified model-files/model/ModeChoice.xls
Binary file not shown.
Binary file modified model-files/model/TripModeChoice.xls
Binary file not shown.
Binary file modified model-files/runtime/mtc.jar
Binary file not shown.

0 comments on commit d03566a

Please sign in to comment.