Hello,

I want to create a time plot with an car_agent speed in real time, but I can not find a way to do this without creating the plot in the Agent itself.

In the plot I added agent.getSpeed(), but I get the error bellow

Description: Cannot make a static reference to the non-static method getSpeed() from the type B_N_agent. Location: Busteni/Main/level/plot - Time Plot

Please help

Kind regards,

More Alexandru Ionut Radu's questions See All
Similar questions and discussions