New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New autocoder employing XML definition file format #527
Conversation
Codecov Report
@@ Coverage Diff @@
## dev-1.2.0 #527 +/- ##
============================================
Coverage ? 24.49%
Complexity ? 3003
============================================
Files ? 1298
Lines ? 45306
Branches ? 1917
============================================
Hits ? 11097
Misses ? 33629
Partials ? 580
Continue to review full report at Codecov.
|
This pull request introduces 2 alerts and fixes 1 when merging caa6133 into da475fa - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
caa6133
to
06ad4e2
Compare
This pull request introduces 2 alerts and fixes 10 when merging 06ad4e2 into 2cb1315 - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
d5848e9
to
ccd804a
Compare
This pull request introduces 2 alerts and fixes 10 when merging ccd804a into 2cb1315 - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
Is it intentional, that the generated code is commited to the repo? |
FYI, there is a nice library to support with java code generation: https://github.com/square/javapoet |
@@ -0,0 +1,108 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class seems not to be used. Is something missing from the PR?
I have been thinking about changing to this concept, but it's always been this way, and I've not bothered to change it. If you want to provide a PR, and it works ok, then that would be great :)
Thanks. The autocoders in this PR aren't new so I don't really anticipate changing this.
Thanks - looks like I moved the functions out of the class at some point in the past, so it's not used. I've removed it. |
ccd804a
to
e6df9bd
Compare
This pull request introduces 2 alerts and fixes 10 when merging e6df9bd into 2cb1315 - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
e6df9bd
to
4be095b
Compare
This pull request introduces 2 alerts and fixes 10 when merging 4be095b into 263da31 - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
@cdjackson I have started testing with the code from this PR; so far, things look good. We discussed that it could be good to include these changes together with the changes necessary for the manufacturer-specific clusters, so I will simply rebase my PR for the manufacturer-specific clusters on this PR. |
Thanks Henning - sounds good.
…Sent from my iPhone
On 22 Feb 2019, at 08:34, Henning Sudbrock ***@***.***> wrote:
@cdjackson I have started testing with the code from this PR; so far, things look good.
We discussed that it could be good to include these changes together with the changes necessary for the manufacturer-specific clusters, so I will simply rebase my PR for the manufacturer-specific clusters on this PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Chris, I am currently developing in openHAB based on this branch, also for testing it some more. What would be helpful is support for client-side attributes, as otherwise discoveries always run into a NPE (the node property discoverer tries to read the FW version, which fails as this is a client-side attribute that is not yet written into the attribute list of the So, if you happen to push updates to this branch, this would be helpful for me :) (But I can work around this in the time being...) |
out.println(" public boolean isTransactionMatch(ZigBeeCommand request, ZigBeeCommand response) {"); | ||
if (command.response.matchers.isEmpty()) { | ||
out.println(" return (response instanceof " + command.response.command + ")"); | ||
out.println(" & ((ZdoRequest) request).getDestinationAddress().equals(((" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo: This should be &&
here (one &
is missing).
This pull request introduces 2 alerts and fixes 8 when merging 5ada35f into ec8c99e - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
This pull request introduces 3 alerts and fixes 8 when merging ea3327e into cfca6e7 - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
bb47da3
to
22f8c83
Compare
This pull request fixes 8 alerts when merging 22f8c83 into cfca6e7 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
22f8c83
to
d47fce4
Compare
This pull request fixes 8 alerts when merging d47fce4 into 1671d47 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
d47fce4
to
5c4c587
Compare
This pull request fixes 8 alerts when merging 5c4c587 into edcce46 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
…methods Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
5c4c587
to
d364c8e
Compare
This pull request fixes 8 alerts when merging d364c8e into f14fc50 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
New autocoder employing XML definition file format Signed-off-by: Chris Jackson <chris@cd-jackson.com>
New autocoder employing XML definition file format Signed-off-by: Chris Jackson <chris@cd-jackson.com>
New autocoder employing XML definition file format Signed-off-by: Chris Jackson <chris@cd-jackson.com>
New autocoder employing XML definition file format Signed-off-by: Chris Jackson <chris@cd-jackson.com>
New autocoder employing XML definition file format Signed-off-by: Chris Jackson <chris@cd-jackson.com>
New autocoder employing XML definition file format Signed-off-by: Chris Jackson <chris@cd-jackson.com>
This PR is a rewrite of the autocoder. Primarily, it changes from an
MD
format to anXML
format. The MD file was getting unmanageable in size as more clusters are added, and it is also more difficult to parse and add new constructs.This may change the name of some methods due to the way the file is parsed - eg
Iascie
is now formatted in methods/fields asIasCie
andZoneID
is nowZoneId
so this may break some implementations (sorry!).There may also be some changes to commands and attributes as these are now marked with a direction (eg wether an attribute resides in the client or server). This is one of the drivers behind this change - ie to allow a future enhancement which supports different attributes for clients and servers, as required by some clusters.
Currently this PR adds attributes for the server. This needs to be resolved as the OTA is implemented as a client on the device, so this will cause it to not work right now!
@hsudbrock FYI. I still need to test this - it generates code that is pretty much the same as before, but there might be some changes...
Signed-off-by: Chris Jackson chris@cd-jackson.com