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": "ecs1030",
"Description": "ECS1030 Electricity Sensor Library",
"Sensor Class":
{
"ECS1030":
{
"Name": "Non-Invasive Current Sensor",
"Description": "This non-invasive current sensor can be clamped around the supply line of an electrical load to tell you how much current is passing through it. It does this by acting as an inductor and responding to the magnetic field around a current-carrying conductor. This particular current sensor measures a load up to 30 A, which makes it great for building your own energy monitors.",
"Aliases": ["ecs1030"],
"Categories": ["meter", "electric"],
"Connections": ["analog"],
"Project Type": ["industrial"],
"Manufacturers": ["sparkfun"],
"Kits": [],
"Image": "ecs1030.jpg",
"Examples":
{
"Java": [],
"Python": [],
"Node.js": [],
"C++": ["ecs1030.cxx"],
"C": []
},
"Specifications":
{
"Measurable Current": {"unit": "V", "low": 1, "nominal": 30, "maximum": 60},
"Operating Temperature": {"unit": "degC", "low": -40, "high": 65}
},
"Urls" :
{
"Product Pages": ["https://www.sparkfun.com/products/11005"],
"Datasheets": ["https://cdn.sparkfun.com/datasheets/Sensors/Current/ECS1030-L72-SPEC.pdf"],
"Schematics": []
}
}
}
}
{
"Library": "ecs1030",
"Description": "ECS1030 Electricity Sensor Library",
"Sensor Class":
{
"ECS1030":
{
"Name": "Non-Invasive Current Sensor",
"Description": "This non-invasive current sensor can be clamped around the supply line of an electrical load to tell you how much current is passing through it. It does this by acting as an inductor and responding to the magnetic field around a current-carrying conductor. This particular current sensor measures a load up to 30 A, which makes it great for building your own energy monitors.",
"Aliases": ["ecs1030"],
"Categories": ["meter", "electric"],
"Connections": ["analog"],
"Project Type": ["industrial"],
"Manufacturers": ["sparkfun"],
"Kits": [],
"Image": "ecs1030.jpg",
"Examples":
{
"Java": [],
"Python": [],
"Node.js": [],
"C++": ["ecs1030.cxx"],
"C": []
},
"Specifications":
{
"Measurable Current": {"unit": "V", "low": 1, "nominal": 30, "maximum": 60},
"Operating Temperature": {"unit": "degC", "low": -40, "high": 65}
},
"Urls" :
{
"Product Pages": ["https://www.sparkfun.com/products/11005"],
"Datasheets": ["https://cdn.sparkfun.com/datasheets/Sensors/Current/ECS1030-L72-SPEC.pdf"],
"Schematics": []
}
}
}
}