GraphDataSet.java 1014 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package DataSets;
  2. import java.util.Hashtable;
  3. import classes.AbstractCpsObject;
  4. /*
  5. * a class which contains one AbstractCpsObject and a corresponding Hashtable
  6. * for the properties "total Consumption", "total Produktion" and "number of activated Elements"
  7. * so far...
  8. */
  9. public class GraphDataSet {
  10. Hashtable<String, PropertyDataSet> propertyTable;
  11. AbstractCpsObject cpsObject;
  12. public GraphDataSet(AbstractCpsObject obj){
  13. cpsObject = obj;
  14. propertyTable = new Hashtable<String, PropertyDataSet>();
  15. }
  16. public GraphDataSet(AbstractCpsObject obj, Hashtable<String, PropertyDataSet> ht){
  17. cpsObject = obj;
  18. propertyTable = ht;
  19. }
  20. public void setObject(AbstractCpsObject aco){
  21. cpsObject = aco;
  22. }
  23. public void setPropertyTable(Hashtable<String, PropertyDataSet> ht){
  24. propertyTable = ht;
  25. }
  26. public AbstractCpsObject getObject(){
  27. return cpsObject;
  28. }
  29. public Hashtable<String, PropertyDataSet> getPropertytTable(){
  30. return propertyTable;
  31. }
  32. }