public Guid ProcessRock(RockType rockType, double weight) { var rockJob = new RockJob(rockType, weight, this); _jobCatalogue.Add(rockJob.JobId, rockJob); _processJobs.Add(rockJob); return(rockJob.JobId); }
public override void ProcessRock(RockJob rockJob) { double variableChange = RandomDouble(20.0, 30.0); var preProcessWeight = rockJob.CurrentWeight; rockJob.CurrentWeight = Math.Round(rockJob.CurrentWeight - ((rockJob.CurrentWeight / 100) * variableChange), 2); rockJob.ProcessTime += preProcessWeight * ProcessTimePerKilo; Console.WriteLine("RockCrusher process time {0}", rockJob.ProcessTime); }
public override void ProcessRock(RockJob rockJob) { double variableChange = RandomDouble(MinProcessDegredation, MaxProcessDegredation); var preProcessWeight = rockJob.CurrentWeight; rockJob.CurrentWeight = Math.Round(rockJob.CurrentWeight - ((rockJob.CurrentWeight / 100) * variableChange), 2); rockJob.ProcessTime += preProcessWeight * ProcessTimePerKilo; Console.WriteLine("RockSmoother process time {0}", rockJob.ProcessTime); }
public abstract void ProcessRock(RockJob rockJob);
private void ProcessJob(RockJob processJob) { _rockJobProcessor.Process(processJob); }