TrackedDataSet.java 925 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package classes;
  2. import java.awt.Color;
  3. public class TrackedDataSet {
  4. //Property Integers
  5. public static final int CONSUMPTION = 0;
  6. public static final int PRODUCTION = 1;
  7. public static final int ACTIVATED_ELEMENTS = 2;
  8. //Variables of the Data Set
  9. private AbstractCpsObject cps;
  10. private int property;
  11. private Color color;
  12. /**
  13. * Data Set for the StatisticGraoh
  14. *
  15. * @param cps
  16. * the cps Object
  17. * @param property
  18. * which value should be tracked
  19. * @param color
  20. * color of the line in the graph
  21. */
  22. public TrackedDataSet(AbstractCpsObject cps, int property, Color color) {
  23. this.cps = cps;
  24. this.property = property;
  25. this.color = color;
  26. }
  27. public AbstractCpsObject getCpsObject() {
  28. return this.cps;
  29. }
  30. public int getProperty() {
  31. return this.property;
  32. }
  33. public Color getColor() {
  34. return this.color;
  35. }
  36. }