diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 797acea..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/LiftProject.iml b/LiftProject.iml index a948637..617f478 100644 --- a/LiftProject.iml +++ b/LiftProject.iml @@ -6,6 +6,7 @@ + diff --git a/src/main/java/Vezerlo.java b/src/main/java/Vezerlo.java index 976b5c1..8ef2a98 100644 --- a/src/main/java/Vezerlo.java +++ b/src/main/java/Vezerlo.java @@ -1,4 +1,4 @@ -public class Vezerlo { + public class Vezerlo { enum direction {UP, DOWN;}; private short floor; diff --git a/src/main/java/com/example/liftproject/bozso/kijelzok.java b/src/main/java/com/example/liftproject/bozso/kijelzok.java new file mode 100644 index 0000000..d84dae7 --- /dev/null +++ b/src/main/java/com/example/liftproject/bozso/kijelzok.java @@ -0,0 +1,126 @@ +package com.example.liftproject.bozso; + +public class kijelzok { + boolean istuzjelzo; + boolean issegelyHivo; + boolean istulsuly; + + boolean isfogglaltsag; + boolean isuzemenKivul; + + boolean isemelet_2; + boolean isemelet_1; + boolean isemelet_FSZ; + boolean isemelet_pince; + boolean isemelet_parkolo; + + int ajtoNyitas; + + public kijelzok() { + } + + public boolean isIstuzjelzo() { + return istuzjelzo; + } + + public void setIstuzjelzo(boolean istuzjelzo) { + this.istuzjelzo = istuzjelzo; + } + + public boolean isIssegelyHivo() { + return issegelyHivo; + } + + public void setIssegelyHivo(boolean issegelyHivo) { + this.issegelyHivo = issegelyHivo; + } + + public boolean isIstulsuly() { + return istulsuly; + } + + public void setIstulsuly(boolean istulsuly) { + this.istulsuly = istulsuly; + } + + public boolean isIsfogglaltsag() { + return isfogglaltsag; + } + + public void setIsfogglaltsag(boolean isfogglaltsag) { + this.isfogglaltsag = isfogglaltsag; + } + + public boolean isIsuzemenKivul() { + return isuzemenKivul; + } + + public void setIsuzemenKivul(boolean isuzemenKivul) { + this.isuzemenKivul = isuzemenKivul; + } + + public boolean isIsemelet_2() { + return isemelet_2; + } + + public void setIsemelet_2(boolean isemelet_2) { + this.isemelet_2 = isemelet_2; + } + + public boolean isIsemelet_1() { + return isemelet_1; + } + + public void setIsemelet_1(boolean isemelet_1) { + this.isemelet_1 = isemelet_1; + } + + public boolean isIsemelet_FSZ() { + return isemelet_FSZ; + } + + public void setIsemelet_FSZ(boolean isemelet_FSZ) { + this.isemelet_FSZ = isemelet_FSZ; + } + + public boolean isIsemelet_pince() { + return isemelet_pince; + } + + public void setIsemelet_pince(boolean isemelet_pince) { + this.isemelet_pince = isemelet_pince; + } + + public boolean isIsemelet_parkolo() { + return isemelet_parkolo; + } + + public void setIsemelet_parkolo(boolean isemelet_parkolo) { + this.isemelet_parkolo = isemelet_parkolo; + } + + public int getAjtoNyitas() { + return ajtoNyitas; + } + + public void setAjtoNyitas(int ajtoNyitas) { + this.ajtoNyitas = ajtoNyitas; + } + + @Override + public String toString() { + return "kijelzok{" + + "istuzjelzo=" + istuzjelzo + + ", issegelyHivo=" + issegelyHivo + + ", istulsuly=" + istulsuly + + ", isfogglaltsag=" + isfogglaltsag + + ", isuzemenKivul=" + isuzemenKivul + + ", isemelet_2=" + isemelet_2 + + ", isemelet_1=" + isemelet_1 + + ", isemelet_FSZ=" + isemelet_FSZ + + ", isemelet_pince=" + isemelet_pince + + ", isemelet_parkolo=" + isemelet_parkolo + + ", ajtoNyitas=" + ajtoNyitas + + '}'; + } +} diff --git a/src/main/java/com/example/liftproject/bozso/main.java b/src/main/java/com/example/liftproject/bozso/main.java new file mode 100644 index 0000000..5adcdf2 --- /dev/null +++ b/src/main/java/com/example/liftproject/bozso/main.java @@ -0,0 +1,7 @@ +package com.example.liftproject.bozso; + +public class main { + public static void main(String[] args) { + + } +} diff --git a/src/main/java/com/example/liftproject/bozso/vezerlo.java b/src/main/java/com/example/liftproject/bozso/vezerlo.java new file mode 100644 index 0000000..2490142 --- /dev/null +++ b/src/main/java/com/example/liftproject/bozso/vezerlo.java @@ -0,0 +1,81 @@ +package com.example.liftproject.bozso; + +public class vezerlo { + enum direction {UP, DOWN}; + private short floor; + private direction direction; + private boolean ismoving; + private boolean isOpenable; + private boolean isCloseable; + private boolean openDoorNow; + + public vezerlo() { + + } + + public vezerlo(short floor, vezerlo.direction direction, boolean ismoving) { + this.floor = floor; + this.direction = direction; + this.ismoving = ismoving; + } + + public short getFloor() { + return floor; + } + + public void setFloor(short floor) { + this.floor = floor; + } + + public vezerlo.direction getDirection() { + return direction; + } + + public void setDirection(vezerlo.direction direction) { + this.direction = direction; + } + + public boolean isIsmoving() { + return ismoving; + } + + public void setIsmoving(boolean ismoving) { + this.ismoving = ismoving; + } + + public boolean isOpenable() { + return isOpenable; + } + + public void setOpenable(boolean openable) { + isOpenable = openable; + } + + public boolean isCloseable() { + return isCloseable; + } + + public void setCloseable(boolean closeable) { + isCloseable = closeable; + } + + public boolean isOpenDoorNow() { + return openDoorNow; + } + + public void setOpenDoorNow(boolean openDoorNow) { + this.openDoorNow = openDoorNow; + } + + @Override + public String toString() { + return "vezerlo{" + + "floor=" + floor + + ", direction=" + direction + + ", ismoving=" + ismoving + + ", isOpenable=" + isOpenable + + ", isCloseable=" + isCloseable + + ", openDoorNow=" + openDoorNow + + '}'; + } +} diff --git a/src/test/java/com/example/liftproject/VezerloTest.java b/src/test/java/com/example/liftproject/VezerloTest.java new file mode 100644 index 0000000..ba6e9fd --- /dev/null +++ b/src/test/java/com/example/liftproject/VezerloTest.java @@ -0,0 +1,82 @@ +package com.example.liftproject; + +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class VezerloTest { + + @BeforeEach + void setUp() { + } + + @AfterEach + void tearDown() { + } + + @Test + void isOpenable() { + } + + @Test + void setOpenable() { + } + + @Test + void isCloseable() { + } + + @Test + void setCloseable() { + } + + @Test + void isOpenDoorNow() { + } + + @Test + void setOpenDoorNow() { + } + + @Test + void getFloor() { + } + + @Test + void setFloor() { + } + + @Test + void getDirection() { + } + + @Test + void setDirection() { + } + + @Test + void isMoving() { + } + + @Test + void setMoving() { + } + + @Test + void getLiftDoorState() { + } + + @Test + void isWeightLimitReached() { + } + + @Test + void getLiftPositionInfo() { + } + + @Test + void isUPSWorking() { + } +} \ No newline at end of file