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": "gp2y0a",
"Description": "API for the GP2Y0A family of IR Proximity Sensors",
"Sensor Class":
{
"GP2Y0A":
{
"Name": "Analog Infrared (IR) Based Distance Sensor",
"Description": "Sensors of this family return an analog voltage corresponding to the distance of an object from the sensor. The voltage is lower when objects are far away; the voltage increases as objects get closer to the sensor.",
"Aliases": ["gp2y0a"],
"Categories": ["proximity", "light"],
"Connections": ["analog"],
"Project Type": ["prototyping", "robotics"],
"Manufacturers": ["seeed"],
"Kits": [],
"Image": "gp2y0a.jpg",
"Examples":
{
"Java": ["Gp2y0aExample.java"],
"Python": ["gp2y0a.py"],
"Node.js": ["gp2y0a.js"],
"C++": ["gp2y0a.cxx"],
"C": ["gp2y0a.c"]
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 2.5, "typ": 5, "high": 7},
"Operating Current": {"unit": "mA", "typ": 33, "max": 50},
"Measurement Range": {"unit": "cm", "low": 10, "high": 80}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/Grove-80cm-Infrared-Proximity-Sensor-p-788.html"],
"Datasheets": ["http://wiki.seeed.cc/Grove-80cm_Infrared_Proximity_Sensor/"],
"Schematics": []
}
}
}
}
{
"Library": "gp2y0a",
"Description": "API for the GP2Y0A family of IR Proximity Sensors",
"Sensor Class":
{
"GP2Y0A":
{
"Name": "Analog Infrared (IR) Based Distance Sensor",
"Description": "Sensors of this family return an analog voltage corresponding to the distance of an object from the sensor. The voltage is lower when objects are far away; the voltage increases as objects get closer to the sensor.",
"Aliases": ["gp2y0a"],
"Categories": ["proximity", "light"],
"Connections": ["analog"],
"Project Type": ["prototyping", "robotics"],
"Manufacturers": ["seeed"],
"Kits": [],
"Image": "gp2y0a.jpg",
"Examples":
{
"Java": ["Gp2y0a_Example.java"],
"Python": ["gp2y0a.py"],
"Node.js": ["gp2y0a.js"],
"C++": ["gp2y0a.cxx"],
"C": ["gp2y0a.c"]
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 2.5, "typ": 5, "high": 7},
"Operating Current": {"unit": "mA", "typ": 33, "max": 50},
"Measurement Range": {"unit": "cm", "low": 10, "high": 80}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/Grove-80cm-Infrared-Proximity-Sensor-p-788.html"],
"Datasheets": ["http://wiki.seeed.cc/Grove-80cm_Infrared_Proximity_Sensor/"],
"Schematics": []
}
}
}
}