12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package classes;
- public class Edge {
- final float maxCapacity;
- float curCapacity;
-
- CpsObject A;
- CpsObject B;
-
-
-
- Edge(CpsObject A, CpsObject B, float maxCapacity){
- setA(A);
- setB(B);
- this.maxCapacity = maxCapacity;
- }
-
-
- /**
- * @return the capacity
- */
- public float getCapacity() {
- return maxCapacity;
- }
- /**
- * @return the a
- */
- public CpsObject getA() {
- return A;
- }
- /**
- * @param a the a to set
- */
- public void setA(CpsObject a) {
- A = a;
- }
- /**
- * @return the b
- */
- public CpsObject getB() {
- return B;
- }
- /**
- * @param b the b to set
- */
- public void setB(CpsObject b) {
- B = b;
- }
- }
|