public Wire(DistribNode a, Producer b, double maxCurrent) { this.a = a; this.b = b; this.maxCurrent = maxCurrent; cost = b.getCost(); this.activCurrent = b.getProduction(); }
public Wire(Producer a, DistribNode b, double maxCurrent) { this.a = a; this.b = b; this.maxCurrent = maxCurrent; this.activCurrent = a.getProduction(); cost = a.getCost(); }
public Wire(Producer a, DistribNode b, double maxCurrent) { this.number = n; n++; this.a = a; this.b = b; this.maxCurrent = maxCurrent; a.setWire(this); b.setWire(this); }