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": "grovewfs",
"Description": "API for the Grove Water Flow Sensor",
"Sensor Class":
{
"GroveWFS":
{
"Name": "Water Flow Sensor",
"Description": "This sensor is used to measure water flow in liters per minute (LPM). It incorporates a Hall Effect sensor. The UPM module defines an interrupt routine to be triggered on each low pulse, keeping count. This device requires a 10K pull-up resistor for the signal line (yellow wire). There is a schematic diagram on the SeeedStudio site (3/2015): http://www.seeedstudio.com/wiki/index.php?title=G1/2_Water_Flow_sensor However, be careful when wiring this up - the schematic appears to have a bug in it: the lower left connection of the signal line (yellow) to Vcc (red) should not be there. The sensor can work with this connection, but probably not for very long.",
"Aliases": ["grovewfs"],
"Categories": ["liquid", "deprecated"],
"Connections": ["gpio"],
"Project Type": ["agriculture", "monitoring", "prototyping"],
"Manufacturers": ["seeed"],
"Kits": ["eak"],
"Image": "grovewfs.jpg",
"Examples":
{
"Java": ["GroveWFSSample.java"],
"Python": ["grovewfs.py"],
"Node.js": ["grovewfs.js"],
"C++": ["grovewfs.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 5, "high": 24},
"Operating Current": {"unit": "mA", "typ": 15},
"Water Pressure": {"unit": "MPa", "max": 2},
"Water Temperature": {"unit": "degC", "max": 120}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/G1%26amp%3B2%26quot%3B-Water-Flow-Sensor-p-635.html"],
"Datasheets": ["http://wiki.seeedstudio.com/wiki/G1/2_Water_Flow_sensor", "http://www.seeedstudio.com/wiki/images/b/b7/Water_flow_sensor_datasheet.pdf"],
"Schematics": []
}
}
}
}
{
"Library": "grovewfs",
"Description": "API for the Grove Water Flow Sensor",
"Sensor Class":
{
"GroveWFS":
{
"Name": "Water Flow Sensor",
"Description": "This sensor is used to measure water flow in liters per minute (LPM). It incorporates a Hall Effect sensor. The UPM module defines an interrupt routine to be triggered on each low pulse, keeping count. This device requires a 10K pull-up resistor for the signal line (yellow wire). There is a schematic diagram on the SeeedStudio site (3/2015): http://www.seeedstudio.com/wiki/index.php?title=G1/2_Water_Flow_sensor However, be careful when wiring this up - the schematic appears to have a bug in it: the lower left connection of the signal line (yellow) to Vcc (red) should not be there. The sensor can work with this connection, but probably not for very long.",
"Aliases": ["grovewfs"],
"Categories": ["liquid", "deprecated"],
"Connections": ["gpio"],
"Project Type": ["agriculture", "monitoring", "prototyping"],
"Manufacturers": ["seeed"],
"Kits": ["eak"],
"Image": "grovewfs.jpg",
"Examples":
{
"Java": ["GroveWFS_Example.java"],
"Python": ["grovewfs.py"],
"Node.js": ["grovewfs.js"],
"C++": ["grovewfs.cxx"],
"C": []
},
"Specifications":
{
"Operating Voltage": {"unit": "V", "low": 5, "high": 24},
"Operating Current": {"unit": "mA", "typ": 15},
"Water Pressure": {"unit": "MPa", "max": 2},
"Water Temperature": {"unit": "degC", "max": 120}
},
"Urls" :
{
"Product Pages": ["https://www.seeedstudio.com/G1%26amp%3B2%26quot%3B-Water-Flow-Sensor-p-635.html"],
"Datasheets": ["http://wiki.seeedstudio.com/wiki/G1/2_Water_Flow_sensor", "http://www.seeedstudio.com/wiki/images/b/b7/Water_flow_sensor_datasheet.pdf"],
"Schematics": []
}
}
}
}