DecoratedCable.java 521 B

1234567891011121314151617181920212223242526
  1. package ui.model;
  2. import classes.Edge;
  3. public class DecoratedCable {
  4. public enum CableState{
  5. Working, Burned
  6. }
  7. private Edge model;
  8. private CableState state;
  9. private float flowEnergy;
  10. public DecoratedCable(Edge edge, CableState state, float flowEnergy){
  11. this.model = edge;
  12. this.state = state;
  13. this.flowEnergy = flowEnergy;
  14. }
  15. public Edge getModel() {
  16. return model;
  17. }
  18. public CableState getState() {
  19. return state;
  20. }
  21. public float getFlowEnergy() {
  22. return flowEnergy;
  23. }
  24. }