Commit 699402c
authored
Feature/cdutz/go ads ng (Streamlining of PLC4X API in PLC4Go and PLC4J) (apache#576)
refactor(api): Refactored the API to use the Term "Tag" instead of "Field" and streamlined the PLC4J and PLC4Go APIs
* chore(protocols): Added a pointer to a possibly interesting protocol specification.
- renamed the property "len" to "strLen" to avoid problems in Go
* feat(ads): ADS Auto-Discovery
First working version that correctly sends out the requests to all valid IPs and then correctly processes the responses
* feat(ads): ADS Auto-Discovery
- Switched to using a pre-allocated buffer
* feat(ads): ADS Auto-Discovery
- Made the buffer allocation actually work nicely.
* feat(protocols): Added a pointer to a possibly interesting protocol specification.
- Got the parsing of data-type and symbol-table working
- Tweaked the way the endianess is handles.
* refactor(api) PLC4J API refactoring
- PlcBrowseItem's getChildren is now a Map
- PlcBrowseRequest now has a executeWithInterceptor method
- PlcBrowseResponse now supports multiple queries and therefore has:
- a getQueryNames() method
- the getResponseCode method was replaced with a getResponseCode(queryName) method
- the getValues() method was replaced with a getValues(queryName) method
- PlcField:
- Removed the getDefaultJavaType() as PlcValueType provides this
- replaced String getPlcDataType() with PlcValueType getPlcValueType()
- replaced int getNumberOfElements() with List<ArrayInfo> getArrayInfo()
- A new type PlcQuery for being the base of Browse queries
- PlcValueType now provides a default java type for each constant
Protocols:
- Extended the data-types of the following protocols to allow mapping to the PlcValueTypes of the API module:
- canopen
- genericcan
Adjusted the rest of the codebase accordingly.
* refactor(api) PLC4Go API refactoring
- Continued porting the PLC4Go API to be on par with the updated PLC4J API
- Started porting most of the existing code, but espeically the Browse parts still need quite some work.
* refactor(api) PLC4Go API refactoring
- Finished implementing the multi-level-array-info-parsing
* refactor(api) PLC4Go API refactoring
- Continued cleaning up the code after the changes.
* refactor(api) PLC4Go API refactoring
- Continued cleaning up the code after the changes.
* refactor(api) PLC4Go API refactoring
- Continued cleaning up the code after the changes.
* refactor(api) PLC4Go API refactoring
- Finished cleaning the compilation up
next will be getting the tests back green
* refactor(api) PLC4Go API refactoring
- Finished fixing the go tests.
* fix(test) Not all tests are executed when enabling the "jenkins-build" or the "with-all-tests" profiles.
- Got the "all-tests" profile working again.
* fix(test) Not all tests are executed when enabling the "jenkins-build" or the "with-all-tests" profiles.
- Got the RandomPackagesTest working again
- Currently commented out the "0-termination" in the ReadBufferByteBased
- Got the libpcapNg detection working on aarch64 mac
* fix(test) Fix RandomPackagesTest
- Changed the ReadBufferByteBased to react on a system property "disable-string-0-termination" to make it work with the 0-terminating byte-buffer.
* fix(test) Fix RandomPackagesTest
- Changed the ReadBufferByteBased to react on a system property "disable-string-0-termination" to make it work with the 0-terminating byte-buffer.
* fix(test) Fix error in WriteBufferByteBased, which output the padding bytes before the string
-
* fix(test) Fix error in WriteBufferByteBased, which output the padding bytes before the string
- Removed the disabling of 0-termination in the RandomPackageTest
- Added some comments on the reading and writing of strings (expected format)
* refactor(api) PLC4J API refactoring
- Updated the builders to use the new addField and addFieldAddress naming
* refactor(api) PLC4J API refactoring
- Applied Sebasitan's feedback
* refactor(api) PLC4J API refactoring
- Applied Sebasitan's feedback
* refactor(api) PLC4J API refactoring
- Applied Sebasitan's feedback
* refactor(api) PLC4J API refactoring
- Renamed Field -> Tag in PLC4J
* refactor(api) PLC4J API refactoring
- Renamed Field -> Tag in PLC4J
* refactor(api) PLC4J API refactoring
- Renamed Field -> Tag in PLC4C
* refactor(api) PLC4Go API refactoring
- Updated generated code for PLC4Go
* refactor(api) PLC4J API refactoring
- Removed getPlcValueType and getArrayInfo from the PlcBrowseItem as this information is in the Tag
- Removed the PlcBrowseItemArrayInfo type, as this is replaced by ArrayInfo
* refactor(api) PLC4Go API refactoring
- Continued the refactoring with PLC4Go
* refactor(api) PLC4Go API refactoring
- Continued the refactoring with PLC4Go1 parent 807419e commit 699402c
File tree
3,000 files changed
+22410
-27715
lines changed- code-generation
- language-go/src/main
- java/org/apache/plc4x/language/go
- resources/templates/go
- language-java/src/main/resources/templates/java
- protocol-base-mspec/src/main/antlr4/org/apache/plc4x/plugins/codegenerator/language/mspec
- plc4c
- api/include/plc4c
- drivers
- plc4x/src
- simulated/src
- examples
- hello-world-modbus/src
- hello-world-s7/src
- generated-sources/plc4x
- include
- src
- spi/src
- plc4go
- assets/testing/protocols
- ads
- eip
- modbus/tcp
- s7
- examples
- ads
- knx
- discovery
- groupAddressRead
- subscribe
- read
- write
- internal
- ads
- bacnetip
- cbus
- eip
- knxnetip
- modbus
- s7
- simulated
- pkg/api
- cache
- model
- values
- protocols
- abeth/readwrite/model
- ads
- discovery/readwrite
- model
- readwrite/model
- bacnetip/readwrite/model
- cbus/readwrite/model
- df1/readwrite/model
- eip/readwrite/model
- firmata/readwrite/model
- knxnetip/readwrite/model
- modbus/readwrite/model
- s7/readwrite/model
- simulated/readwrite/model
- spi
- default
- interceptors
- model
- testutils
- transports/tcp
- utils
- values
- tests/drivers/tests
- tools/plc4xbrowser/ui
- plc4j
- api/src
- main/java/org/apache/plc4x/java/api
- exceptions
- messages
- model
- types
- value
- test/java/org/apache/plc4x/java/api
- authentication
- connection
- exceptions
- messages
- mock
- specific
- drivers
- ab-eth/src/main/java/org/apache/plc4x/java/abeth
- field
- protocol
- tag
- types
- ads/src
- main/java/org/apache/plc4x/java/ads
- field
- model
- protocol
- tag
- test/java/org/apache/plc4x/protocol/ads
- bacnet/src
- main/java/org/apache/plc4x/java/bacnetip
- ede
- model
- field
- protocol
- tag
- test/java/org/apache/plc4x/java/bacnetip
- c-bus/src/main/java/org/apache/plc4x/java/cbus
- canopen/src
- main/java/org/apache/plc4x/java/canopen
- field
- protocol
- tag
- test/java/org/apache/plc4x/java/canopen
- tag
- transport
- can/src
- main/java/org/apache/plc4x/java/can/generic
- protocol
- tag
- test/java/org/apache/plc4x/java/can/generic
- tag
- eip
- src/main/java/org/apache/plc4x/java/eip/readwrite
- field
- protocol
- tag
- firmata/src/main/java/org/apache/plc4x/java/firmata/readwrite
- context
- field
- model
- protocol
- tag
- knxnetip/src
- main/java/org/apache/plc4x/java/knxnetip
- field
- model
- protocol
- tag
- test/java/org/apache/plc4x/java/knxnetip
- mock/src/main/java/org/apache/plc4x/java/mock
- connection
- tag
- modbus/src
- main/java/org/apache/plc4x/java/modbus
- ascii
- protocol
- base
- field
- protocol
- tag
- readwrite/utils
- rtu
- protocol
- tcp
- protocol
- test/java/org/apache/plc4x/java/modbus
- opcua/src
- main/java/org/apache/plc4x/java/opcua
- field
- optimizer
- protocol
- tag
- test/java/org/apache/plc4x/java/opcua
- protocol
- plc4x/src
- main/java/org/apache/plc4x/java/plc4x
- protocol
- tag
- test/java/org/apache/plc4x/java/plc4x
- profinet/src
- main/java/org/apache/plc4x/java/profinet
- field
- tag
- test/java/org/apache/plc4x/java/profinet
- s7/src
- main/java/org/apache/plc4x/java/s7
- events
- readwrite
- field
- optimizer
- protocol
- tag
- types
- test
- java/org/apache/plc4x/java/s7/readwrite
- field
- tag
- resources/tests
- simulated/src
- main/java/org/apache/plc4x/java/simulated
- connection
- field
- tag
- types
- test/java/org/apache/plc4x/java/simulated
- connection
- field
- tag
- examples
- hello-cloud-azure/src/main/java/org/apache/plc4x/java/examples/cloud/azure
- hello-cloud-google/src/main/java/org/apache/plc4x/java/examples/cloud/google
- hello-connectivity-mqtt/src/main/java/org/apache/plc4x/java/examples/connectivity/mqtt
- model
- hello-discovery/src/main/java/org/apache/plc4x/java/examples/hellodiscovery
- hello-influx-data-collection
- src/main/java/org/apache/plc4x/java/examples/helloinflux
- hello-integration-iotdb/src/main/java/org/apache/plc4x/java/examples/integration/iotdb
- hello-kafka-connect-elasticsearch/kafka-connect-config
- hello-nats/src/main/java/org/apache/plc4x/java/examples/hellonats
- hello-opm/src/main/java/org/apache/plc4x/java/examples/helloopm
- hello-webservice/src/main/java/org/apache/plc4x/java/examples/hellowebservice
- hello-world-kotlin/src/main/kotlin/org/apache/plc4x/java/examples/hellokotlin
- hello-world-plc4x-discover-and-browse/src/main/java/org/apache/plc4x/java/examples/helloplc4x/discoverandbrowse
- hello-world-plc4x-read/src/main/java/org/apache/plc4x/java/examples/helloplc4x/read
- hello-world-plc4x-subscribe/src/main/java/org/apache/plc4x/java/examples/helloplc4x/subscribe
- hello-world-plc4x-write/src/main/java/org/apache/plc4x/java/examples/helloplc4x/write
- plc4j-s7event/src/main/java/org/apache/plc4x/examples/plc4j/s7event
- poll-loop/src/main/java/org/apache/plc4x/java/examples/pollloop
- integrations
- apache-calcite/src
- main/java/org/apache/plc4x
- test/resources
- apache-camel/src
- main/java/org/apache/plc4x/camel
- test/java/org/apache/plc4x/camel
- apache-kafka
- config
- src
- main/java/org/apache/plc4x/kafka
- config
- test/java/org/apache/plc4x/kafka
- config
- properties
- apache-nifi
- nifi-plc4x-processors/src/main/java/org/apache/plc4x/nifi
- record
- util
- opcua-server/src
- main/java/org/apache/plc4x/java/opcuaserver/backend
- test/java/org/apache/plc4x/java/opcuaserver
- spi/src/main/java/org/apache/plc4x/java/spi
- connection
- generation
- messages
- utils
- model
- optimizer
- transaction
- values
- tools
- connection-cache/src
- main/java/org/apache/plc4x/java/utils/connectionpool2
- test/java/org/apache/plc4x/java/utils/connectionpool2
- opm/src
- main/java/org/apache/plc4x/java/opm
- test/java/org/apache/plc4x/java/opm
- plc4x-server/src/main/java/org/apache/plc4x/java/tools/plc4xserver/protocol
- scraper/src
- main/java/org/apache/plc4x/java/scraper
- config
- triggeredscraper
- triggeredscraper
- triggerhandler
- collector
- test
- java/org/apache/plc4x/java
- s7
- scraper
- config
- triggeredscraper/triggerhandler
- resources
- ui/src/main/java/org/apache/plc4x/java/ui
- utils
- plc-simulator/src/main/java/org/apache/plc4x/simulator/server/bacnet/protocol
- test-utils/src/main/java/org/apache/plc4x/test
- driver/internal
- api
- handlers
- manual
- migration
- parserserializer
- plc4net/drivers/knxnetip/src/drivers/knxnetip/readwrite/model
- protocols
- ads/src
- main/resources/protocols/ads
- test/resources/protocols/ads
- canopen/src
- main/resources/protocols/can
- test/resources/protocols/canopen
- eip/src
- main/resources/protocols/eip
- test/resources/protocols/eip
- genericcan/src/main/resources/protocols/can
- modbus/src/test/resources/protocols/modbus/tcp
- plc4x/src
- main/resources/protocols/plc4x/v0
- test/resources/protocols/plc4x
- s7/src/test/resources/protocols/s7
- sandbox
- code-gen
- src
- main
- antlr4
- java/org/apache/plc4x/codegen
- api
- ast
- python
- util
- resources
- test
- java/org/apache/plc4x/codegen
- ast
- util
- resources
- discovery/src/main/java/org/apache/plc4x/java/discovery
- test-java-df1-driver/src
- main/java/org/apache/plc4x/java/df1
- field
- protocol
- types
- test/java/org/apache/plc4x/protocol/df1
- src/main/script
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
3,000 files changed
+22410
-27715
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
62 | 70 | | |
63 | 71 | | |
64 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| |||
712 | 722 | | |
713 | 723 | | |
714 | 724 | | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
715 | 729 | | |
716 | 730 | | |
717 | 731 | | |
| |||
1540 | 1554 | | |
1541 | 1555 | | |
1542 | 1556 | | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
1543 | 1574 | | |
Lines changed: 2 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
| 750 | + | |
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | 765 | | |
769 | 766 | | |
770 | 767 | | |
| |||
799 | 796 | | |
800 | 797 | | |
801 | 798 | | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | 799 | | |
807 | 800 | | |
808 | 801 | | |
| |||
897 | 890 | | |
898 | 891 | | |
899 | 892 | | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | 893 | | |
905 | 894 | | |
906 | 895 | | |
| |||
943 | 932 | | |
944 | 933 | | |
945 | 934 | | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | 935 | | |
952 | 936 | | |
953 | 937 | | |
| |||
1066 | 1050 | | |
1067 | 1051 | | |
1068 | 1052 | | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | 1053 | | |
1074 | 1054 | | |
1075 | 1055 | | |
| |||
1092 | 1072 | | |
1093 | 1073 | | |
1094 | 1074 | | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | 1075 | | |
1100 | 1076 | | |
1101 | 1077 | | |
| |||
1107 | 1083 | | |
1108 | 1084 | | |
1109 | 1085 | | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | 1086 | | |
1115 | 1087 | | |
1116 | 1088 | | |
| |||
1153 | 1125 | | |
1154 | 1126 | | |
1155 | 1127 | | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | 1128 | | |
1160 | 1129 | | |
1161 | 1130 | | |
| |||
1223 | 1192 | | |
1224 | 1193 | | |
1225 | 1194 | | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | 1195 | | |
1230 | 1196 | | |
1231 | 1197 | | |
| |||
1571 | 1537 | | |
1572 | 1538 | | |
1573 | 1539 | | |
1574 | | - | |
| 1540 | + | |
1575 | 1541 | | |
1576 | 1542 | | |
1577 | 1543 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
183 | | - | |
| 181 | + | |
184 | 182 | | |
185 | 183 | | |
186 | 184 | | |
| |||
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
200 | | - | |
| 198 | + | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments