JAVA: Unified Java Example names

Unified all Java examples to *match* <LIBRARY>[_otherstuf]_Example.java.
Note, a handful of the examples have a pseudo-random string for the
first component (see FlexSensor_Example.java, ideally this would be
Flex_Example.java).

This commit allows for quick development on a single sensor library
since a -DMODULE_LIST=mysensorlib now works with Java examples
(previously Java examples would fail generation when using
MODULE_LIST).

    * Renamed examples
    * Updated class names
    * Updated library descriptor .json files
    * Updated sample mapping file

TODO: Make this work like the C/C++ examples - grab the target library
name from the filename and grab all dependencies from that target
library.  Fix the handful of example names which don't conform.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2018-02-27 12:12:09 -08:00
parent 86e8471cad
commit c54d6de054
315 changed files with 5209 additions and 5168 deletions

View File

@ -1,39 +1,39 @@
{
"Library": "o2",
"Description": "O2 Oxygen Gas Sensor Library",
"Sensor Class":
{
"O2":
{
"Name": "Oxygen (O2) Concentration Sensor",
"Description": "The Grove O2 Oxygen Gas sensor measures the oxygen concentration in the air.",
"Aliases": ["o2"],
"Categories": ["gas", "oxygen"],
"Connections": ["analog"],
"Project Type": ["environmental", "prototyping"],
"Manufacturers": ["seeed"],
"Kits": [],
"Image": "o2.jpg",
"Examples":
{
"Java": ["O2Example.java"],
"Python": ["o2.py"],
"Node.js": ["o2.js"],
"C++": ["o2.cxx"],
"C": ["o2.c"]
},
"Specifications":
{
"Measurement Range": {"unit": "% Vol", "low": 0, "high": 25},
"Sensitivity": {"unit": "mA (in air)", "low": 0.1, "high": 0.3},
"Operating Temperature": {"unit": "degC", "low": -20, "high": 50}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/grove-gas-sensoro2-p-1541.html"],
"Datasheets": ["http://wiki.seeed.cc/Grove-Gas_Sensor-O2/"],
"Schematics": ["https://github.com/SeeedDocument/Grove_Gas_Sensor_O2/raw/master/resources/Schematics_O2.zip"]
}
}
}
}
{
"Library": "o2",
"Description": "O2 Oxygen Gas Sensor Library",
"Sensor Class":
{
"O2":
{
"Name": "Oxygen (O2) Concentration Sensor",
"Description": "The Grove O2 Oxygen Gas sensor measures the oxygen concentration in the air.",
"Aliases": ["o2"],
"Categories": ["gas", "oxygen"],
"Connections": ["analog"],
"Project Type": ["environmental", "prototyping"],
"Manufacturers": ["seeed"],
"Kits": [],
"Image": "o2.jpg",
"Examples":
{
"Java": ["O2_Example.java"],
"Python": ["o2.py"],
"Node.js": ["o2.js"],
"C++": ["o2.cxx"],
"C": ["o2.c"]
},
"Specifications":
{
"Measurement Range": {"unit": "% Vol", "low": 0, "high": 25},
"Sensitivity": {"unit": "mA (in air)", "low": 0.1, "high": 0.3},
"Operating Temperature": {"unit": "degC", "low": -20, "high": 50}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/grove-gas-sensoro2-p-1541.html"],
"Datasheets": ["http://wiki.seeed.cc/Grove-Gas_Sensor-O2/"],
"Schematics": ["https://github.com/SeeedDocument/Grove_Gas_Sensor_O2/raw/master/resources/Schematics_O2.zip"]
}
}
}
}