CpsEdge.java 896 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package classes;
  2. public class CpsEdge {
  3. float maxCapacity;
  4. float flow;
  5. CpsObject A;
  6. CpsObject B;
  7. public CpsEdge(CpsObject A, CpsObject B){
  8. setA(A);
  9. setB(B);
  10. this.maxCapacity = 100;
  11. }
  12. /**
  13. * @return the capacity
  14. */
  15. public float getCapacity() {
  16. return maxCapacity;
  17. }
  18. /**
  19. * @param cap the Capacity to set
  20. */
  21. public void setCapacity(float cap) {
  22. this.maxCapacity = cap;
  23. }
  24. /**
  25. * @return the flow
  26. */
  27. public float getFlow() {
  28. return flow;
  29. }
  30. /**
  31. * @param flow the flow to set
  32. */
  33. public void setFlow(float flow) {
  34. this.flow = flow;
  35. }
  36. /**
  37. * @return the a
  38. */
  39. public CpsObject getA() {
  40. return A;
  41. }
  42. /**
  43. * @param a the a to set
  44. */
  45. public void setA(CpsObject a) {
  46. A = a;
  47. }
  48. /**
  49. * @return the b
  50. */
  51. public CpsObject getB() {
  52. return B;
  53. }
  54. /**
  55. * @param b the b to set
  56. */
  57. public void setB(CpsObject b) {
  58. B = b;
  59. }
  60. }