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,40 +1,40 @@
{
"Library": "groveultrasonic",
"Description": "Grove Ultrasonic Sensor Library",
"Sensor Class":
{
"GroveUltraSonic":
{
"Name": "Ultrasonic Proximity Sensor",
"Description": "This Grove Ultrasonic sensor is a non-contact distance measurement module which is compatible with the Grove system. It is designed for easy modular project usage with industrial performance. Detection ranges from 3 cm (1.2\") to 4 m (13'1.5\") and works best when the object is within a 30 degree angle relative to the sensor.",
"Aliases": ["groveultrasonic"],
"Categories": ["proximity", "deprecated"],
"Connections": ["gpio"],
"Project Type": ["robotics", "prototyping"],
"Manufacturers": ["seeed"],
"Kits": [],
"Image": "groveultrasonic.jpg",
"Examples":
{
"Java": [],
"Python": [],
"Node.js": ["groveultrasonic.js"],
"C++": ["groveultrasonic.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 3.2, "high": 5.2},
"Operating Current": {"unit": "mA", "typ": 8},
"Measurement Range": {"unit": "cm", "low": 2, "high": 350}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/Grove-Ultrasonic-Ranger-p-960.html"],
"Datasheets": ["http://wiki.seeed.cc/Grove-Ultrasonic_Ranger/"],
"Schematics": []
}
}
}
}
{
"Library": "groveultrasonic",
"Description": "Grove Ultrasonic Sensor Library",
"Sensor Class":
{
"GroveUltraSonic":
{
"Name": "Ultrasonic Proximity Sensor",
"Description": "This Grove Ultrasonic sensor is a non-contact distance measurement module which is compatible with the Grove system. It is designed for easy modular project usage with industrial performance. Detection ranges from 3 cm (1.2\") to 4 m (13'1.5\") and works best when the object is within a 30 degree angle relative to the sensor.",
"Aliases": ["groveultrasonic"],
"Categories": ["proximity", "deprecated"],
"Connections": ["gpio"],
"Project Type": ["robotics", "prototyping"],
"Manufacturers": ["seeed"],
"Kits": [],
"Image": "groveultrasonic.jpg",
"Examples":
{
"Java": [],
"Python": [],
"Node.js": ["groveultrasonic.js"],
"C++": ["groveultrasonic.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 3.2, "high": 5.2},
"Operating Current": {"unit": "mA", "typ": 8},
"Measurement Range": {"unit": "cm", "low": 2, "high": 350}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/Grove-Ultrasonic-Ranger-p-960.html"],
"Datasheets": ["http://wiki.seeed.cc/Grove-Ultrasonic_Ranger/"],
"Schematics": []
}
}
}
}