gama-platform / gama.experimental

Home of experimental plugins for GAMA
13 stars 6 forks source link

Wrong casting with nb obstacles in Pedestrian model #16

Closed agrignard closed 2 years ago

agrignard commented 4 years ago

In Pedestrain moduel change the number of obstacle to a value greater than 0

Run the model

We get the following error

2 occurrences in 2 agents at cycle 0: Java error: wrong casting
in 
ClassCastException: msi.gaml.species.GamlSpecies cannot be cast to java.util.Collection
escape.gaml.skills.PedestrianSkill.primWalk(PedestrianSkill.java:254)
gaml.additions.GamlAdditions.lambda$45(GamlAdditions.java:92)
msi.gaml.compilation.GamaHelper.run(GamaHelper.java:43)
msi.gaml.compilation.IGamaHelper.run(IGamaHelper.java:35)
msi.gaml.statements.PrimitiveStatement.privateExecuteIn(PrimitiveStatement.java:92)
msi.gaml.statements.AbstractStatement.executeOn(AbstractStatement.java:41)
msi.gaml.statements.AbstractStatementSequence.executeOn(AbstractStatementSequence.java:46)
in agents people16, Simulation 0

GAMA 1.8 Official release.

benoitgaudou commented 2 years ago

Won't fix as the pedestrian moved to the core