コード例 #1
0
ファイル: Wire.cs プロジェクト: 195344/projet_labo_cinfo
 public Wire(DistribNode a, Producer b, double maxCurrent)
 {
     this.a            = a;
     this.b            = b;
     this.maxCurrent   = maxCurrent;
     cost              = b.getCost();
     this.activCurrent = b.getProduction();
 }
コード例 #2
0
ファイル: Wire.cs プロジェクト: 195344/projet_labo_cinfo
 public Wire(Producer a, DistribNode b, double maxCurrent)
 {
     this.a            = a;
     this.b            = b;
     this.maxCurrent   = maxCurrent;
     this.activCurrent = a.getProduction();
     cost = a.getCost();
 }
コード例 #3
0
ファイル: Wire.cs プロジェクト: 195344/Projet_POO
 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);
 }