Projektarbeit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Devices.java 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package de.edotzlaff.schockwelle;
  2. public class Devices {
  3. private String ip;
  4. private boolean vibration;
  5. private long timestamp;
  6. private double breitengrad;
  7. private double laengengrad;
  8. private int amplitude;
  9. public Devices() {
  10. }
  11. public Devices(String ip, boolean vibration, long timestamp, double breitengrad, double laengengrad, int amplitude) {
  12. this.ip = ip;
  13. this.vibration = vibration;
  14. this.timestamp = timestamp;
  15. this.breitengrad = breitengrad;
  16. this.laengengrad = laengengrad;
  17. this.amplitude = amplitude;
  18. }
  19. public String getIp() {
  20. return ip;
  21. }
  22. public void setIp(String ip) {
  23. this.ip = ip;
  24. }
  25. public boolean isVibration() {
  26. return vibration;
  27. }
  28. public void setVibration(boolean vibration) {
  29. this.vibration = vibration;
  30. }
  31. public long getTimestamp() {
  32. return timestamp;
  33. }
  34. public void setTimestamp(long timestamp) {
  35. this.timestamp = timestamp;
  36. }
  37. public double getBreitengrad() {
  38. return breitengrad;
  39. }
  40. public void setBreitengrad(double breitengrad) {
  41. this.breitengrad = breitengrad;
  42. }
  43. public double getLaengengrad() {
  44. return laengengrad;
  45. }
  46. public void setLaengengrad(double laengengrad) {
  47. this.laengengrad = laengengrad;
  48. }
  49. public int getAmplitude() {
  50. return amplitude;
  51. }
  52. public void setAmplitude(int amplitude) {
  53. this.amplitude = amplitude;
  54. }
  55. }