I am trying to do a similar simulation to this.
in addition, I would also want to generate graphs for the output i.e total number of cars leaving the car park garage.
I am facing the issue of "Description: Parameter type is not specified" under the "isThereParking" function from the solution above.
Also the error "Description: Void methods cannot return a value.- Function" for the "selectRandomParkinSpace" Function
What should be the return for both these functions?
Thank you for helping!
boolean
isThereParking( ~Object~ ) {
for(ParkingLot p : parkingSpaces){
if(p.nFree()>0)
return true;
}
return false;
}
Description: Syntax error, insert "... VariableDeclaratorId" to complete FormalParameterList. - Agent Type