public override void Start() { productionState = 2; IsWorking = true; alertMessage = String.Format("La centrale {0} a été démarrée", GetName); OutputLine.SetPriorityLevel(GetPriorityLevel); }
public SolarPowerPlant(string name, Weather meteo) : base(name) { SetPriorityLevel(PLGasPowerPlant); OutputLine.SetPriorityLevel(GetPriorityLevel); this.meteo = meteo; constantProduction = false; adjustableProduction = false; Start(); }
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 }
public GasPowerPlant(string name, Market market) : base(name) { SetPriorityLevel(PLGasPowerPlant); OutputLine.SetPriorityLevel(GetPriorityLevel); this.market = market; constantProduction = true; adjustableProduction = false; Start(); }
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(); }
public override void Stop() { productionState = 3; alertMessage = String.Format("La centrale {0} a été stoppée", GetName); OutputLine.SetPriorityLevel(7); }