Ejemplo n.º 1
0
 public Wire(DistribNode a, Producer b, double maxCurrent)
 {
     this.a            = a;
     this.b            = b;
     this.maxCurrent   = maxCurrent;
     cost              = b.getCost();
     this.activCurrent = b.getProduction();
 }
Ejemplo n.º 2
0
 public Wire(Producer a, DistribNode b, double maxCurrent)
 {
     this.a            = a;
     this.b            = b;
     this.maxCurrent   = maxCurrent;
     this.activCurrent = a.getProduction();
     cost = a.getCost();
 }
Ejemplo n.º 3
0
 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);
 }