Drone delivery
This repository contains examples and resources for the drone delivery project.
Interaction between Benchmark and Visualisation
The benchmark analyse the execution trace of the Schedule component. From this analysis, it will produce data for a visualisation (i.e. charts). How to pass data from benchmark component to a visualisation component? Via the JSON format, with a JSON file or a JSON string representation. So the benchmark analyse the trace (text file) and produces a JSON description of its analysis that will be consummed by the visualisation. In the POJOToJson folder you will find a way to convert a Plain Old Java Object (POJO) that describes something (a raw metric, a comparison, an evolution, ...) into a JSON Object and its description. Then, in the JSONToChart folder you will find a way to use these results in JSON format to draw charts (using Google Chart).
You can find resources about JSON here, here, here and here
Visualisation
You can use Google Chart for visualisation since it is a simple, trusted, and a well documented one. You will find the different types of charts here. Here are examples of charts that can be usefull in our context:
- PieChart to represent a proportion between measured metric
- LineChart to represent a evolution, usually over time
- ColumnChart to compare different series on different metrics
- CandleStick to focus on variation. CandleStick chart is also called Box plot or Boite à moustache in french.
Feel free to use other charts or customise these one as long as you do that to underline what you want to show in this chart. Remember that a chart is a visual representation of results obtained in a scientific way through an experiment done to demonstrate or try something very specific. (yes. all of that.)
In the official documentation of each chart, you can hit the 'Code it yourself on JSFiddle' button. You will end on the JSFiddle website that allows one to test html/css/js code quickly and, in our case, see how a particular chart behave or wait as input.
In the JSONToChart folder you will find an example drawing a dashboard from a string representation of a JSON Object