Skip to content

Commit 7af8bac

Browse files
authored
Implementing a PID Controller in Java (#583)
1 parent 3cb0034 commit 7af8bac

31 files changed

+1027
-0
lines changed
Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<parent>
4+
<artifactId>articles</artifactId>
5+
<groupId>com.pivovarit</groupId>
6+
<version>1.0-SNAPSHOT</version>
7+
</parent>
8+
<modelVersion>4.0.0</modelVersion>
9+
<artifactId>hamming-error-correction</artifactId>
10+
<build>
11+
<plugins>
12+
<plugin>
13+
<artifactId>maven-surefire-plugin</artifactId>
14+
<version>3.5.2</version>
15+
</plugin>
16+
<plugin>
17+
<groupId>org.jetbrains.kotlin</groupId>
18+
<artifactId>kotlin-maven-plugin</artifactId>
19+
<version>${kotlin.version}</version>
20+
<executions>
21+
<execution>
22+
<id>process-sources</id>
23+
<phase>process-sources</phase>
24+
<goals>
25+
<goal>compile</goal>
26+
</goals>
27+
<configuration>
28+
<sourceDirs>
29+
<sourceDir>${project.basedir}/src/test/java</sourceDir>
30+
<sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
31+
</sourceDirs>
32+
</configuration>
33+
</execution>
34+
<execution>
35+
<id>process-test-sources</id>
36+
<phase>test-compile</phase>
37+
<goals>
38+
<goal>test-compile</goal>
39+
</goals>
40+
<configuration>
41+
<sourceDirs>
42+
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
43+
<sourceDir>${project.basedir}/src/test/java</sourceDir>
44+
</sourceDirs>
45+
</configuration>
46+
</execution>
47+
<execution>
48+
<id>compile</id>
49+
<phase>compile</phase>
50+
<goals>
51+
<goal>compile</goal>
52+
</goals>
53+
<configuration>
54+
<sourceDirs>
55+
<source>src/main/java</source>
56+
<source>src/main/kotlin</source>
57+
<source>target/generated-sources/jmh</source>
58+
</sourceDirs>
59+
</configuration>
60+
</execution>
61+
<execution>
62+
<id>test-compile</id>
63+
<phase>test-compile</phase>
64+
<goals>
65+
<goal>test-compile</goal>
66+
</goals>
67+
<configuration>
68+
<sourceDirs>
69+
<source>src/test/java</source>
70+
<source>src/test/kotlin</source>
71+
</sourceDirs>
72+
</configuration>
73+
</execution>
74+
</executions>
75+
<configuration>
76+
<jvmTarget>1.8</jvmTarget>
77+
</configuration>
78+
</plugin>
79+
<plugin>
80+
<groupId>org.codehaus.mojo</groupId>
81+
<artifactId>exec-maven-plugin</artifactId>
82+
<version>3.6.3</version>
83+
<executions>
84+
<execution>
85+
<phase>process-sources</phase>
86+
<goals>
87+
<goal>java</goal>
88+
</goals>
89+
<configuration>
90+
<includePluginDependencies>true</includePluginDependencies>
91+
<mainClass>org.openjdk.jmh.generators.bytecode.JmhBytecodeGenerator</mainClass>
92+
<arguments>
93+
<argument>${project.basedir}/target/classes/</argument>
94+
<argument>${project.basedir}/target/generated-sources/jmh/</argument>
95+
<argument>${project.basedir}/target/classes/</argument>
96+
<argument>${jmh.generator}</argument>
97+
</arguments>
98+
</configuration>
99+
</execution>
100+
</executions>
101+
<dependencies>
102+
<dependency>
103+
<groupId>org.openjdk.jmh</groupId>
104+
<artifactId>jmh-generator-bytecode</artifactId>
105+
<version>${jmh.version}</version>
106+
</dependency>
107+
</dependencies>
108+
</plugin>
109+
<plugin>
110+
<groupId>org.codehaus.mojo</groupId>
111+
<artifactId>build-helper-maven-plugin</artifactId>
112+
<version>3.6.1</version>
113+
<executions>
114+
<execution>
115+
<id>add-source</id>
116+
<phase>process-sources</phase>
117+
<goals>
118+
<goal>add-source</goal>
119+
</goals>
120+
<configuration>
121+
<sources>
122+
<source>${project.basedir}/target/generated-sources/jmh</source>
123+
</sources>
124+
</configuration>
125+
</execution>
126+
</executions>
127+
</plugin>
128+
<plugin>
129+
<artifactId>maven-compiler-plugin</artifactId>
130+
<version>3.14.1</version>
131+
<executions>
132+
<execution>
133+
<id>compile</id>
134+
<phase>compile</phase>
135+
<goals>
136+
<goal>compile</goal>
137+
</goals>
138+
</execution>
139+
<execution>
140+
<id>testCompile</id>
141+
<phase>test-compile</phase>
142+
<goals>
143+
<goal>testCompile</goal>
144+
</goals>
145+
</execution>
146+
</executions>
147+
<configuration>
148+
<compilerVersion>${javac.target}</compilerVersion>
149+
<source>${javac.target}</source>
150+
<target>${javac.target}</target>
151+
<compilerArgument>-proc:none</compilerArgument>
152+
</configuration>
153+
</plugin>
154+
<plugin>
155+
<artifactId>maven-shade-plugin</artifactId>
156+
<version>3.6.1</version>
157+
<executions>
158+
<execution>
159+
<phase>package</phase>
160+
<goals>
161+
<goal>shade</goal>
162+
</goals>
163+
<configuration>
164+
<finalName>benchmarks</finalName>
165+
<transformers>
166+
<transformer>
167+
<mainClass>org.openjdk.jmh.Main</mainClass>
168+
</transformer>
169+
</transformers>
170+
<filters>
171+
<filter>
172+
<artifact>*:*</artifact>
173+
<excludes>
174+
<exclude>META-INF/*.SF</exclude>
175+
<exclude>META-INF/*.DSA</exclude>
176+
<exclude>META-INF/*.RSA</exclude>
177+
</excludes>
178+
</filter>
179+
</filters>
180+
</configuration>
181+
</execution>
182+
</executions>
183+
</plugin>
184+
</plugins>
185+
</build>
186+
<dependencies>
187+
<dependency>
188+
<groupId>org.junit.jupiter</groupId>
189+
<artifactId>junit-jupiter-engine</artifactId>
190+
<version>6.0.2</version>
191+
<scope>test</scope>
192+
<exclusions>
193+
<exclusion>
194+
<artifactId>junit-platform-engine</artifactId>
195+
<groupId>org.junit.platform</groupId>
196+
</exclusion>
197+
<exclusion>
198+
<artifactId>junit-jupiter-api</artifactId>
199+
<groupId>org.junit.jupiter</groupId>
200+
</exclusion>
201+
<exclusion>
202+
<artifactId>apiguardian-api</artifactId>
203+
<groupId>org.apiguardian</groupId>
204+
</exclusion>
205+
</exclusions>
206+
</dependency>
207+
<dependency>
208+
<groupId>org.junit.jupiter</groupId>
209+
<artifactId>junit-jupiter-params</artifactId>
210+
<version>6.0.2</version>
211+
<scope>test</scope>
212+
<exclusions>
213+
<exclusion>
214+
<artifactId>junit-jupiter-api</artifactId>
215+
<groupId>org.junit.jupiter</groupId>
216+
</exclusion>
217+
<exclusion>
218+
<artifactId>apiguardian-api</artifactId>
219+
<groupId>org.apiguardian</groupId>
220+
</exclusion>
221+
</exclusions>
222+
</dependency>
223+
<dependency>
224+
<groupId>org.assertj</groupId>
225+
<artifactId>assertj-core</artifactId>
226+
<version>3.27.7</version>
227+
<scope>test</scope>
228+
<exclusions>
229+
<exclusion>
230+
<artifactId>byte-buddy</artifactId>
231+
<groupId>net.bytebuddy</groupId>
232+
</exclusion>
233+
</exclusions>
234+
</dependency>
235+
<dependency>
236+
<groupId>org.openjdk.jmh</groupId>
237+
<artifactId>jmh-generator-annprocess</artifactId>
238+
<version>1.37</version>
239+
<scope>provided</scope>
240+
</dependency>
241+
<dependency>
242+
<groupId>org.jetbrains.kotlin</groupId>
243+
<artifactId>kotlin-test</artifactId>
244+
<version>2.3.0</version>
245+
<scope>test</scope>
246+
</dependency>
247+
</dependencies>
248+
<properties>
249+
<jmh.version>1.37</jmh.version>
250+
<jmh.generator>default</jmh.generator>
251+
<kotlin.version>2.3.0</kotlin.version>
252+
</properties>
253+
</project>

0 commit comments

Comments
 (0)