12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- package classes;
- public class CpsEdge {
- float maxCapacity;
- float flow;
-
- CpsObject A;
- CpsObject B;
- public CpsEdge(CpsObject A, CpsObject B){
- setA(A);
- setB(B);
- this.A.AddConnection(this);
- this.B.AddConnection(this);
- this.maxCapacity = 100;
- }
-
-
- /**
- * @return the capacity
- */
- public float getCapacity() {
- return maxCapacity;
- }
- /**
- * @param cap the Capacity to set
- */
- public void setCapacity(float cap) {
- this.maxCapacity = cap;
- }
- /**
- * @return the flow
- */
- public float getFlow() {
- return flow;
- }
- /**
- * @param flow the flow to set
- */
- public void setFlow(float flow) {
- this.flow = flow;
- }
-
- /**
- * @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;
- }
- }
|