FloatSensor.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package de.tu_darmstadt.tk.SmartHomeNetworkSim.core.devices;
  2. /**
  3. * Interface for float sensors
  4. *
  5. * @author Andreas T. Meyer-Berg
  6. */
  7. public interface FloatSensor {
  8. // Information Name
  9. /**
  10. * Name of the sensor reading
  11. * @param name name of the sensed information
  12. */
  13. public void setFSinfoName(String name);
  14. /**
  15. * Return the sensor reading name
  16. * @return name of the sensed information
  17. */
  18. public String getFSinfoName();
  19. /**
  20. * Get max sensor value
  21. * @return max value
  22. */
  23. public float getFSmax();
  24. /**
  25. * Set max sensor value
  26. * @param max new maximum value
  27. */
  28. public void setFSmax(float max);
  29. /**
  30. * Get min sensor value
  31. * @return minimum value
  32. */
  33. public float getFSmin();
  34. /**
  35. * Set min sensor value
  36. * @param min new minimum value
  37. */
  38. public void setFSmin(float min);
  39. /**
  40. * Return the current value of the sensor
  41. * @return value
  42. */
  43. public float getFSval();
  44. /**
  45. * Set the current value of the sensor
  46. * @param val new value
  47. */
  48. public void setFSval(float val);
  49. }