In class AssignPrivatAVs, enter car ownership and market shares for private AVs, truck AVs
The rate of car ownership, in our model represented by the access to a private car rather than actual ownership, as well as the percentage of private cars and freight vehicles that are capable of autonomous operation is set for each ASTRA_Scenario
(A or B) and each year
(x >=2050, 2050> x >=2040, 2040> x >=2030, x <2030) in the class AssignPrivatAVs
.
To set these scenario components for a simulation the ASTRA_Scenario
and the year
must be specified as required options in the command to execute the simulation.
**BUT BUT BUT... THE VALUES IN AssignPrivatAVs
ARE CURRENTLY MOSTLY PLACEHOLDERS! **
Thus, when TP5 sends us these values by the end of May, they must be entered into AssignPrivatAVs
in the correct places.
It's the value below which the random double r
needs to be that must be adjusted to reflect the inputs from TP5.
An example showing how AVs are assigned:
`else if (ASTRA_Scenario.equals("A")&& year >= 2030){
if(carAvailability.equals(string1)|| carAvailability.equals(string2)){
double r = random.nextDouble();
if (r <= 0.99500) {//produces "true" 99.50% of the time
person.getAttributes().putAttribute(AV_AVAILABILITY_ATTRIBUTE,"car");
person.getAttributes().putAttribute("carAvail", carAvailability);
} else {
person.getAttributes().putAttribute(AV_AVAILABILITY_ATTRIBUTE,"prav5");
person.getAttributes().putAttribute("carAvail", "never");
}......................`
All the other assignments are made similarly.
In this Google Sheets document https://drive.google.com/file/d/1eWo2SWfnKiNVDdwpE0Tuh5Ll78TWkqUl/view?usp=sharing , the "fleet" (meaning absolute amount of private cars in Switzerland) sizes TP5 sends as Input are translated into the appropriate percentages.
I assumed that for Scenario B they would just send us different fleet sizes, so I set up the Google Sheet to calculate the % of car "owners" from Scenario A that would keep their cars, and thus those who would not.
Freight agents are changed to av freight agents by a similar method.
I have attached the PRELIMINARY values TP5 sent us back at the end of April. Hopefully what they will send at the end of this week will be similar.