diff --git a/Tasha/V4Modes/PerceivedTravelTimes/WalkAccessTransit.cs b/Tasha/V4Modes/PerceivedTravelTimes/WalkAccessTransit.cs index 24730ef1..5fb5e0b1 100644 --- a/Tasha/V4Modes/PerceivedTravelTimes/WalkAccessTransit.cs +++ b/Tasha/V4Modes/PerceivedTravelTimes/WalkAccessTransit.cs @@ -84,6 +84,12 @@ public class WalkAccessTransit : ITashaMode, IIterationSensitive [RunParameter("NonWorkerStudentTravelCostFactor", 0f, "The factor applied to the travel cost ($'s).")] public float NonWorkerStudentCostFactor; + [RunParameter("ChildFlag", 0f, "A factor to apply if the person is a child [0-10].")] + public float ChildFlag; + + [RunParameter("YouthFlag", 0f, "A factor to apply if the person is a child [11-15].")] + public float YouthFlag; + private ITripComponentData Network; [Parameter("Feasible", 1f, "Is the mode feasible?(1)")] @@ -161,6 +167,8 @@ public double CalculateV(ITrip trip) v += ZonalDensityForActivitiesArray[d]; break; } + v += p.Child ? ChildFlag : 0f; + v += p.Youth ? YouthFlag : 0f; v += GetPlanningDistrictConstant(trip.TripStartTime, originalZone.PlanningDistrict, destinationZone.PlanningDistrict); return v; }