is it possible to define more vehicle data items from Vehicle APIs in Fleetboard? - fleetboard

The Vehicle API is based on the listener pattern for the Fleetboard. there are limited Vehicle data items from Vehicle APIs like :
Accelerator Pedal Position
Ambient Temperature
Brake Pedal
Clutch Pedal
Coolant Temperature
Cruise Control
Current Fuel Consumption
Driver ID
Engine Speed
FMS standard version number
Fuel Level
Power Takeoff State
Service Distance
Total Engine Hours
Total Fuel
Total Vehicle Distance
Vehicle Identification Number
Vehicle Speed
Vehicle Weight
What are the possibilities to get other vehicle data items from APIs ?

Probably the existing API will extended in the future but currently the documented values are the only ones that are available.
There is no possibility to directly access vehicle data that is not available in the APIs.

you cannot get more vehicle data. The API is the only way to get data from the vehicle.
best regards

Related

Duplicate a model #Anylogic

I'm working on a family practitioner model, my goal is to model the population of a city and all of the family practitioners in that given city by taking into account the distribution of the treatment time and the arrival schedule of patients etc... I've started with a basic model with two practitioners and a small population.
Basic Model
Now if im going to model all of the 10k practitioners by duplicating the same blocks its gonna be like undoable, the other solution is to add more units in the resourcepool which does not model the real situation because basicly every family practitioner have his own queue and increasing the resourcepool is like modelling 'n' family practitioner in the same clinic with the same shared queue of patients. Is there any other solution? (first time using anylogic so im basicly a newbie)
thanks
You need to change your model architecture fundamentally. Practitioners become a custom agent type, you create a population of them and provide a flow chart in that agent type. Then, you can have 10k of them each with their own flow chart.
Strongly recommend you do all the tutorials in the help first to get a better understanding of the capabilities of AnyLogic. Having some blocks on Main is really just 0.1% of what the tool is capable of :)

Traffic Flow regarding Anylogic

I'm an undergrad student in the Philippines and were currently using Anylogic Software for our thesis. May I ask how to put a chart/time plot that consists the traffic flow (vehicle per hour) so that we can justify that our study area is congested? Thank you and have a good day.
The are a number of options you can use but the simplest option is to count the total number of cars in the system.
For this simply add a Road Network Descriptor and select the road network you want it to represent
Then you add a time plot, and set the value that needs to be plotted as roadNetworkDescriptor.size() and set the update time to hour

Track driven distance of transporters in Anylogic

I have modelled a fleet of AGVs as agents through TransporterFleet and TransportControl blocks.
The AGVs navigate in free space between different conveyors and their home locations.
Is it possible in Anylogic to track the driven distance for each AGV?
The Transporter API includes a getDistanceTravelled() function since version 8.5.2
Try using the "Logging" feature as that typically tracks the distance covered by agents in your model.
If it doesn't work for free-space AGVs, you have to record it manually (recurring event every x time-units)

How to make Anylogic simulations run faster?

I have a model with agents: cars, passengers and petrol stations. The population size of the cars is 500 and there are 5 petrol stations. The passengers here are generated randomly and I have capped the passengers on the map to be at a maximum of 500 at any point in time (the limit here is set to be the same as the population size of the cars).
However, the simulation speed is running really slow (like 1-2s/sec) on virtual mode. Could this be due to the complicated model built or are there any ways on how we can speed up the running time of the simulation?
Many factors can slow your model, here are just some ideas:
Do you use Pedestrian agent types for your passengers? Try not to, unless ped dynamics are crucial
do you use conditional transitions? They are evualated at every event in the model and can slow it. You can always replace them with message-based transitions easily
Do you use the road traffic library? Again, only apply it if car dynamics are really necessary, else revert to the process library
Do you read/write a lot of data during the sim run to the dbase or an external file? Avoid that and do it at the start/end
Also, it could just be inefficient coding. You can check that using a Java profiler. Easiest is to use the one that comes with any Java JDK.
Good luck

Trying to retrieve road speed limit from drivers current location

I am trying to retrieve current speed limit of a given road location data is passed to the Open Street Maps api every 2-3 seconds as the vehicle is in motion.
I have tried the code below using [around] however it only outputs results when the radius is at least 2500 metres
i am seeking to have a an area that is closer to 10 meters to determine the current speed limit of the vehicles location.
If there is an alternative endpoint to achieve the above so that is more robust and responsive please advise
i am basically wanting to replicate what i see on navigation apps where the speed limit value updates within 1-2 seconds of a vehicle passing a new speed sign of value different to the previous speed zone being driven in
I would appreciate any assistance to resolve this issue.
https://lz4.overpass-api.de/api/interpreter?
data=[out:json];nodemaxspeed;out%20meta;