I am using an EVENT to get the speed of my transporter fleet using transporterFleet.getSpeed() every 1 second. Now, I want to get these value in a chart or Database.
I know getSpeed() returns the agent speed and not the max speed of my transporter. So, I also tried using transporterFleet.getMaximumSpeed(MPS), but it returns an error.
How can this be done?
Not sure what the actual question is. TransporterFleet has no way to get any speed, it is a fleet of transporters (a fleet cannot have speed). Do you want the speed of a transporter?
If so, you already have individual transporters as the AGV
agent type in your model. Put the event there and use getSpeed()
to get the speed of individual transporter agents whenever you want.
To test this, use traceln("transporter "+getIndex()+" has speed "+getSpeed());"
in your event :)