public override void PrepareReplication() { base.PrepareReplication(); // Setup component for the next replication VykladacBIsDisabled = !((MySimulation)MySim).BuyUnloader; VykladacAIsOccupied = false; VykladacAIsOccupied = false; RealWorkingA = 0; RealWorkingB = 0; StartedWorkingA = 0; StartedWorkingB = 0; // odobratie prvkov z radu if (!AutaStavbaQueue.IsEmpty()) { AutaStavbaQueue.Dequeue(); } MaterialNaStavbe = Constants.MaterialAtBuilding; WaitingTimePerCar.Clear(); LengthOfQueue.Clear(); AutaStavbaQueue.Clear(); MessageStavbaQueue.Clear(); //VykladacBIsDisabled = FormAgentSimulation.UnloaderBDisabled; // vycisti statistiku odoberania materialu OdoberMaterial = new Stat(); PocetUspesnyExport = 0; PocetExport = 0; CarAtUnloaderA = null; CarAtUnloaderB = null; }
public override void PrepareReplication() { base.PrepareReplication(); // odoberie vozidla z radu if (!AutaSkladkaQueue.IsEmpty()) { AutaSkladkaQueue.Dequeue(); } RealWorkingA = 0; RealWorkingB = 0; StartedWorkingA = 0; StartedWorkingB = 0; WaitingTimePerCar.Clear(); LengthOfQueue.Clear(); AutaSkladkaQueue.Clear(); MessageSkladkaQueue.Clear(); MaterialNaSkladke = Constants.MaterialAtDepo; Material = Settings.Constants.MaterialToLoad; NakladacAIsOccupied = false; NakladacBIsOccupied = false; fullLoad = false; }