From 36337ccd809b2d8d749c6dc5024c861f2e78f6cb Mon Sep 17 00:00:00 2001 From: happymeal2024 Date: Sun, 11 May 2025 11:12:47 +0200 Subject: [PATCH] first commit --- .idea/.gitignore | 3 + .idea/compiler.xml | 13 ++++ .idea/encodings.xml | 7 ++ .idea/jarRepositories.xml | 20 +++++ .idea/misc.xml | 12 +++ .idea/vcs.xml | 6 ++ .mvn/jvm.config | 0 .mvn/maven.config | 0 pom.xml | 81 ++++++++++++++++++++ src/main/java/de/vimo/BluetoothMouse.java | 4 + src/main/java/de/vimo/BluetoothMouseApp.java | 7 ++ src/main/java/de/vimo/FieldOven.java | 14 ++++ src/main/java/de/vimo/Oven.java | 18 +++++ src/main/java/de/vimo/OvenApp.java | 9 +++ src/main/java/de/vimo/SizeOfField.java | 6 ++ src/main/java/de/vimo/Speaker.java | 41 ++++++++++ src/main/java/de/vimo/SpeakerApp.java | 15 ++++ src/main/java/de/vimo/Stove.java | 4 + src/main/java/de/vimo/StoveApp.java | 8 ++ src/site/site.xml | 26 +++++++ src/test/java/de/vimo/AppTest.java | 38 +++++++++ 21 files changed, 332 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 .mvn/jvm.config create mode 100644 .mvn/maven.config create mode 100644 pom.xml create mode 100644 src/main/java/de/vimo/BluetoothMouse.java create mode 100644 src/main/java/de/vimo/BluetoothMouseApp.java create mode 100644 src/main/java/de/vimo/FieldOven.java create mode 100644 src/main/java/de/vimo/Oven.java create mode 100644 src/main/java/de/vimo/OvenApp.java create mode 100644 src/main/java/de/vimo/SizeOfField.java create mode 100644 src/main/java/de/vimo/Speaker.java create mode 100644 src/main/java/de/vimo/SpeakerApp.java create mode 100644 src/main/java/de/vimo/Stove.java create mode 100644 src/main/java/de/vimo/StoveApp.java create mode 100644 src/site/site.xml create mode 100644 src/test/java/de/vimo/AppTest.java diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..0e40432 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..dab31a5 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.mvn/jvm.config b/.mvn/jvm.config new file mode 100644 index 0000000..e69de29 diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 0000000..e69de29 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..be0e64e --- /dev/null +++ b/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + + de.vimo + speaker + 1.0-SNAPSHOT + + speaker + A simple speaker. + + http://www.example.com + + + UTF-8 + 8 + 8 + + + + + junit + junit + 3.8.1 + + + + + + + + maven-clean-plugin + 3.4.0 + + + maven-site-plugin + 3.12.1 + + + maven-project-info-reports-plugin + 3.6.1 + + + + maven-resources-plugin + 3.3.1 + + + maven-compiler-plugin + 3.13.0 + + + maven-surefire-plugin + 3.3.0 + + + maven-jar-plugin + 3.4.2 + + + maven-install-plugin + 3.1.2 + + + maven-deploy-plugin + 3.1.2 + + + + + + + + + maven-project-info-reports-plugin + + + + diff --git a/src/main/java/de/vimo/BluetoothMouse.java b/src/main/java/de/vimo/BluetoothMouse.java new file mode 100644 index 0000000..ad5366f --- /dev/null +++ b/src/main/java/de/vimo/BluetoothMouse.java @@ -0,0 +1,4 @@ +package de.vimo; + +public class BluetoothMouse { +} diff --git a/src/main/java/de/vimo/BluetoothMouseApp.java b/src/main/java/de/vimo/BluetoothMouseApp.java new file mode 100644 index 0000000..3c6e28f --- /dev/null +++ b/src/main/java/de/vimo/BluetoothMouseApp.java @@ -0,0 +1,7 @@ +package de.vimo; + +public class BluetoothMouseApp { + public static void main(String[] args) { + BluetoothMouse tecknetMouse = new BluetoothMouse(); + } +} diff --git a/src/main/java/de/vimo/FieldOven.java b/src/main/java/de/vimo/FieldOven.java new file mode 100644 index 0000000..dcd5db4 --- /dev/null +++ b/src/main/java/de/vimo/FieldOven.java @@ -0,0 +1,14 @@ +package de.vimo; + +public class FieldOven { + private SizeOfField sizeOfField; + private int position; + + public FieldOven() { + + } + + public SizeOfField getSizeOfField() { + return sizeOfField; + } +} diff --git a/src/main/java/de/vimo/Oven.java b/src/main/java/de/vimo/Oven.java new file mode 100644 index 0000000..b979cc3 --- /dev/null +++ b/src/main/java/de/vimo/Oven.java @@ -0,0 +1,18 @@ +package de.vimo; + +public class Oven { + private FieldOven[] fieldOvens; + + public Oven() { + fieldOvens = new FieldOven[4]; + } + + public void initializeOven() { + fieldOvens[0] + } + + public void turnOn(FieldOven fieldOven) { + + } + +} diff --git a/src/main/java/de/vimo/OvenApp.java b/src/main/java/de/vimo/OvenApp.java new file mode 100644 index 0000000..367c544 --- /dev/null +++ b/src/main/java/de/vimo/OvenApp.java @@ -0,0 +1,9 @@ +package de.vimo; + +public class OvenApp { + public static void main(String[] args) { + Oven siemensOven = new Oven(); + siemensOven.turnOn(fieldDownLeft); + siemensOven.setField(fieldDownLeft, 3); + } +} diff --git a/src/main/java/de/vimo/SizeOfField.java b/src/main/java/de/vimo/SizeOfField.java new file mode 100644 index 0000000..9521a56 --- /dev/null +++ b/src/main/java/de/vimo/SizeOfField.java @@ -0,0 +1,6 @@ +package de.vimo; + +public enum SizeOfField { + + SMALL_CIRCLE, STANDARD_CIRCLE, BIG_CIRCLE, STANDARD_EXTENSION_CIRCLE +} diff --git a/src/main/java/de/vimo/Speaker.java b/src/main/java/de/vimo/Speaker.java new file mode 100644 index 0000000..88cb63a --- /dev/null +++ b/src/main/java/de/vimo/Speaker.java @@ -0,0 +1,41 @@ +package de.vimo; + +public class Speaker { + + private boolean isPowerButtonOn; + private boolean isBluetoothButtonOn; + private int soundLevel; + + public Speaker() { + isPowerButtonOn = false; + isBluetoothButtonOn = false; + soundLevel = 0; + } + + public void turnOnSpeaker() { + isPowerButtonOn = true; + } + + public void connectBluetooth() { + isBluetoothButtonOn = true; + } + + public void increaseSoundVolume(int incrementLevel) { + this.soundLevel = soundLevel + incrementLevel; + } + + public void decreaseSoundVolume(int decrementLevel) { + this.soundLevel = soundLevel - decrementLevel; + } + + public int getSoundLevel() { + return soundLevel; + } + + public String displaySpeaker() { + String result = "Power is " + isPowerButtonOn + + " Bluetooth is connected " + isBluetoothButtonOn + + " current Soundlevel is " + getSoundLevel(); + return result; + } +} diff --git a/src/main/java/de/vimo/SpeakerApp.java b/src/main/java/de/vimo/SpeakerApp.java new file mode 100644 index 0000000..f5644a5 --- /dev/null +++ b/src/main/java/de/vimo/SpeakerApp.java @@ -0,0 +1,15 @@ +package de.vimo; + + +public class SpeakerApp +{ + public static void main( String[] args ) + { + Speaker speakerSony = new Speaker(); + speakerSony.turnOnSpeaker(); + speakerSony.connectBluetooth(); + speakerSony.increaseSoundVolume(4); + speakerSony.decreaseSoundVolume(3); + System.out.println(speakerSony.displaySpeaker()); + } +} diff --git a/src/main/java/de/vimo/Stove.java b/src/main/java/de/vimo/Stove.java new file mode 100644 index 0000000..27c90a2 --- /dev/null +++ b/src/main/java/de/vimo/Stove.java @@ -0,0 +1,4 @@ +package de.vimo; + +public class Stove { +} diff --git a/src/main/java/de/vimo/StoveApp.java b/src/main/java/de/vimo/StoveApp.java new file mode 100644 index 0000000..b38c34d --- /dev/null +++ b/src/main/java/de/vimo/StoveApp.java @@ -0,0 +1,8 @@ +package de.vimo; + +public class StoveApp { + public static void main(String[] args) { + Stove siemensStove = new Stove(); + + } +} diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..038b62f --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,26 @@ + + + + + speaker + https://maven.apache.org/images/apache-maven-project.png + https://www.apache.org/ + + + + https://maven.apache.org/images/maven-logo-black-on-white.png + https://maven.apache.org/ + + + + org.apache.maven.skins + maven-fluido-skin + 1.7 + + + + + + + \ No newline at end of file diff --git a/src/test/java/de/vimo/AppTest.java b/src/test/java/de/vimo/AppTest.java new file mode 100644 index 0000000..8650642 --- /dev/null +++ b/src/test/java/de/vimo/AppTest.java @@ -0,0 +1,38 @@ +package de.vimo; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +}