Edge.java 643 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package classes;
  2. public class Edge {
  3. final float maxCapacity;
  4. float curCapacity;
  5. CpsObject A;
  6. CpsObject B;
  7. Edge(CpsObject A, CpsObject B, float maxCapacity){
  8. setA(A);
  9. setB(B);
  10. this.maxCapacity = maxCapacity;
  11. }
  12. /**
  13. * @return the capacity
  14. */
  15. public float getCapacity() {
  16. return maxCapacity;
  17. }
  18. /**
  19. * @return the a
  20. */
  21. public CpsObject getA() {
  22. return A;
  23. }
  24. /**
  25. * @param a the a to set
  26. */
  27. public void setA(CpsObject a) {
  28. A = a;
  29. }
  30. /**
  31. * @return the b
  32. */
  33. public CpsObject getB() {
  34. return B;
  35. }
  36. /**
  37. * @param b the b to set
  38. */
  39. public void setB(CpsObject b) {
  40. B = b;
  41. }
  42. }