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,45 +1,45 @@
{
"Library": "adis16448",
"Description": "Industrial Grade Ten Degrees of Freedom Inertial Sensor",
"Sensor Class":
{
"ADIS16448":
{
"Name": "API for the Analog Devices ADIS16448 Accelerometer",
"Description": "This is an industrial-grade accelerometer by Analog Devices.",
"Aliases": ["adis16448"],
"Categories": ["imu"],
"Connections": ["spi"],
"Project Type": ["prototyping", "industrial"],
"Manufacturers": ["generic"],
"Kits": [],
"Examples":
{
"Java": [],
"Python": [],
"Node.js": ["adis16448.js"],
"C++": ["adis16448.cxx"],
"C": []
},
"Specifications":
{
"Working Voltage": {"unit": "v", "low": 3.15, "high": 3.45},
"Working Current": {"unit": "mA", "low": 76, "high": 104}
},
"Platforms":
{
"Intel Joule Module":
{
"Notes": ["Requires pull-up resistors with carrier board"],
"Images": [""]
}
},
"Urls" :
{
"Product Pages": ["http://www.analog.com/en/products/sensors/inertial-measurement-units/adis16448.html"],
"Datasheets": ["http://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16448.pdf"],
"Schematics": []
}
}
}
}
{
"Library": "adis16448",
"Description": "Industrial Grade Ten Degrees of Freedom Inertial Sensor",
"Sensor Class":
{
"ADIS16448":
{
"Name": "API for the Analog Devices ADIS16448 Accelerometer",
"Description": "This is an industrial-grade accelerometer by Analog Devices.",
"Aliases": ["adis16448"],
"Categories": ["imu"],
"Connections": ["spi"],
"Project Type": ["prototyping", "industrial"],
"Manufacturers": ["generic"],
"Kits": [],
"Examples":
{
"Java": [],
"Python": [],
"Node.js": ["adis16448.js"],
"C++": ["adis16448.cxx"],
"C": []
},
"Specifications":
{
"Working Voltage": {"unit": "v", "low": 3.15, "high": 3.45},
"Working Current": {"unit": "mA", "low": 76, "high": 104}
},
"Platforms":
{
"Intel Joule Module":
{
"Notes": ["Requires pull-up resistors with carrier board"],
"Images": [""]
}
},
"Urls" :
{
"Product Pages": ["http://www.analog.com/en/products/sensors/inertial-measurement-units/adis16448.html"],
"Datasheets": ["http://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16448.pdf"],
"Schematics": []
}
}
}
}