Skip to content

Commit d2b9aea

Browse files
committed
MasterDB and Node test.
1 parent e6269cf commit d2b9aea

24 files changed

+1205
-355
lines changed

plc4j/tools/app/app-libs/src/main/java/org/apache/plc4x/app/api/DeviceRecord.java

+127-14
Original file line numberDiff line numberDiff line change
@@ -27,51 +27,164 @@
2727
import java.util.UUID;
2828
import org.openide.util.Lookup;
2929

30-
30+
/*
31+
*
32+
*/
3133
public interface DeviceRecord extends Lookup.Provider {
3234

33-
public void setDeviceName(String name);
34-
String getDeviceName();
35+
/*
36+
*
37+
*/
38+
public void setDeviceName(String name);
39+
40+
/*
41+
*
42+
*/
43+
public String getDeviceName();
44+
45+
/*
46+
*
47+
*/
48+
public void setDeviceDescription(String desc);
3549

36-
public void setDeviceDescription(String desc);
50+
/*
51+
*
52+
*/
3753
public String getDeviceDescription();
3854

39-
public void setUUID(UUID uuid);
55+
/*
56+
*
57+
*/
58+
public void setUUID(UUID uuid);
59+
60+
/*
61+
*
62+
*/
4063
public UUID getUUID();
4164

42-
public void setProtocolCode(UUID protocol);
65+
/*
66+
*
67+
*/
68+
public void setProtocolCode(UUID protocol);
69+
70+
/*
71+
*
72+
*/
4373
public UUID getProtocolCode();
4474

45-
public void setTreeLocation(UUID treenode);
75+
/*
76+
*
77+
*/
78+
public void setTreeLocation(UUID treenode);
79+
80+
/*
81+
*
82+
*/
4683
public UUID getTreeLocation();
4784

85+
/*
86+
*
87+
*/
4888
public void setEnable(Boolean enable);
89+
90+
/*
91+
*
92+
*/
4993
public Boolean getEnable();
5094

95+
/*
96+
*
97+
*/
5198
public void setPropertie(String id, String str);
99+
100+
/*
101+
*
102+
*/
52103
public String getPropertie(String id);
53-
public Map<String, String> getProperties();
54104

105+
/*
106+
*
107+
*/
108+
public Map<String, String> getProperties();
109+
110+
/*
111+
*
112+
*/
55113
public void addTagGroup(TagGroupRecord tagg);
56-
public Collection<TagGroupRecord> getTagGroups();
57-
public Optional<TagGroupRecord> getTagGroup(TagGroupRecord tagg);
114+
115+
/*
116+
*
117+
*/
118+
public Optional<TagGroupRecord> getTagGroup(TagGroupRecord tagg);
119+
120+
/*
121+
*
122+
*/
58123
public Optional<TagGroupRecord> getTagGroup(UUID uuid);
59-
public Optional<TagGroupRecord> getTagGroup(String name);
60-
public void removeTagGroup(TagGroupRecord device);
61124

125+
/*
126+
*
127+
*/
128+
public Optional<TagGroupRecord> getTagGroup(String name);
129+
130+
/*
131+
*
132+
*/
133+
public Collection<TagGroupRecord> getTagGroups();
134+
135+
/*
136+
*
137+
*/
138+
public void removeTagGroup(TagGroupRecord device);
62139

140+
/*
141+
*
142+
*/
63143
public void addPropertyChangeListener(PropertyChangeListener listener);
144+
145+
/*
146+
*
147+
*/
64148
public void removePropertyChangeListener(PropertyChangeListener listener);
65-
149+
150+
/*
151+
*
152+
*/
66153
public int getTransmits();
154+
155+
/*
156+
*
157+
*/
67158
public int getReceives();
159+
160+
/*
161+
*
162+
*/
68163
public int getErrors();
69164

70-
public int getNumberOfTagGroups();
165+
/*
166+
*
167+
*/
168+
public int getNumberOfTagGroups();
169+
170+
/*
171+
*
172+
*/
71173
public int getNumberOfTags();
72174

175+
/*
176+
*
177+
*/
73178
public Instant getStartInstant();
179+
180+
/*
181+
*
182+
*/
74183
public Instant getCurrentInstant();
184+
185+
/*
186+
*
187+
*/
75188
public Instant getLastUpdateInstant();
76189

77190

plc4j/tools/app/app-libs/src/main/java/org/apache/plc4x/app/api/DriverRecord.java

+105-14
Original file line numberDiff line numberDiff line change
@@ -29,48 +29,139 @@
2929
import org.apache.plc4x.java.api.PlcDriver;
3030
import org.openide.util.Lookup;
3131

32-
32+
/*
33+
*
34+
*/
3335
public interface DriverRecord extends Lookup.Provider {
3436

35-
// Configuration section
37+
/*
38+
*
39+
*/
40+
public void setProtocolCode(String protocol);
3641

37-
public void setProtocolCode(String protocol);
42+
/*
43+
*
44+
*/
3845
public String getProtocolCode();
3946

40-
public void setProtocolName(String name);
41-
String getProtocolName();
47+
/*
48+
*
49+
*/
50+
public void setProtocolName(String name);
4251

43-
public void setUUID(UUID uuid);
52+
/*
53+
*
54+
*/
55+
public String getProtocolName();
56+
57+
/*
58+
*
59+
*/
60+
public void setUUID(UUID uuid);
61+
62+
/*
63+
*
64+
*/
4465
public UUID getUUID();
4566

67+
/*
68+
*
69+
*/
4670
public PlcDriver getPlcDriver();
4771

72+
/*
73+
*
74+
*/
4875
public void setEnable(Boolean enable);
76+
77+
/*
78+
*
79+
*/
4980
public Boolean getEnable();
5081

82+
/*
83+
*
84+
*/
5185
public void addDevice(DeviceRecord device);
52-
public Collection<DeviceRecord> getDevices();
53-
public Optional<DeviceRecord> getDevice(DeviceRecord uuid);
86+
87+
/*
88+
*
89+
*/
90+
public Optional<DeviceRecord> getDevice(DeviceRecord uuid);
91+
92+
/*
93+
*
94+
*/
5495
public Optional<DeviceRecord> getDevice(UUID uuid);
55-
public Optional<DeviceRecord> getDevice(String name);
96+
97+
/*
98+
*
99+
*/
100+
public Optional<DeviceRecord> getDevice(String name);
101+
102+
/*
103+
*
104+
*/
105+
public Collection<DeviceRecord> getDevices();
106+
107+
/*
108+
*
109+
*/
56110
public void removeDevice(DeviceRecord device);
57111

112+
/*
113+
*
114+
*/
58115
public void addPropertyChangeListener(PropertyChangeListener listener);
59-
public void removePropertyChangeListener(PropertyChangeListener listener);
60-
61-
public HashMap<UUID, DeviceRecord> getMapDevices();
62-
63116

117+
/*
118+
*
119+
*/
120+
public void removePropertyChangeListener(PropertyChangeListener listener);
121+
122+
/*
123+
*
124+
*/
64125
public int getTransmits();
126+
127+
/*
128+
*
129+
*/
65130
public int getReceives();
131+
132+
/*
133+
*
134+
*/
66135
public int getErrors();
67136

137+
/*
138+
*
139+
*/
68140
public int getNumberOfDevice();
69-
public int getNumberOfTagGroups();
141+
142+
/*
143+
*
144+
*/
145+
public int getNumberOfTagGroups();
146+
147+
/*
148+
*
149+
*/
70150
public int getNumberOfTags();
71151

152+
/*
153+
*
154+
*/
72155
public Instant getStartInstant();
156+
157+
/*
158+
*
159+
*/
73160
public Instant getCurrentInstant();
161+
162+
/*
163+
*
164+
*/
74165
public Instant getLastUpdateInstant();
75166

76167
}

0 commit comments

Comments
 (0)