示例#1
0
 public override void Start()
 {
     productionState = 2;
     IsWorking       = true;
     alertMessage    = String.Format("La centrale {0} a été démarrée", GetName);
     OutputLine.SetPriorityLevel(GetPriorityLevel);
 }
示例#2
0
 public SolarPowerPlant(string name, Weather meteo) : base(name)
 {
     SetPriorityLevel(PLGasPowerPlant);
     OutputLine.SetPriorityLevel(GetPriorityLevel);
     this.meteo           = meteo;
     constantProduction   = false;
     adjustableProduction = false;
     Start();
 }
示例#3
0
 public NuclearPowerPlant(string name, Market market) : base(name)
 {
     SetPriorityLevel(PLGasPowerPlant);
     OutputLine.SetPriorityLevel(GetPriorityLevel);
     this.market          = market;
     constantProduction   = true;
     adjustableProduction = false;
     Start();                                 // mise en marche automatique au moment de la création de la centrale
 }
示例#4
0
 public GasPowerPlant(string name, Market market) : base(name)
 {
     SetPriorityLevel(PLGasPowerPlant);
     OutputLine.SetPriorityLevel(GetPriorityLevel);
     this.market          = market;
     constantProduction   = true;
     adjustableProduction = false;
     Start();
 }
示例#5
0
 public PurchaseAbroad(string name, Market market) : base(name)
 {
     SetPriorityLevel(PLGasPowerPlant);
     OutputLine.SetPriorityLevel(GetPriorityLevel);
     OutputLine.SetIsMarketLine(true);
     //OutputLine.GetInputNode.SetHasMarket(true);
     //OutputLine.GetOutputeNode.SetHasMarket(true);
     OutPutNode.SetHasMarket(true);
     //OutputLine.GetInputNode.SetMyMarket(this);
     OutPutNode.SetMyMarket(this);
     this.market = market;
     Start();
 }
示例#6
0
 public override void Stop()
 {
     productionState = 3;
     alertMessage    = String.Format("La centrale {0} a été stoppée", GetName);
     OutputLine.SetPriorityLevel(7);
 }