aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Emulations
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-09-22 18:23:40 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-09-22 18:23:40 +0300
commitcd5a926df30ea7e7a4f4f4a55d71b43ec7aee3e1 (patch)
tree9120c194b18b4f7e3e781803971684673d26a970 /Software/Visual_Studio/Tango.Emulations
parent8e49a8041391c9aa946060aed2c538b1ce958a68 (diff)
downloadTango-cd5a926df30ea7e7a4f4f4a55d71b43ec7aee3e1.tar.gz
Tango-cd5a926df30ea7e7a4f4f4a55d71b43ec7aee3e1.zip
Implemented auto process selection on color space volume.
Implemented number of units on Device. Fixed issue with color conversion process index. Increased max volume to 200 on PPC. Implemented Thread cloning on MS!
Diffstat (limited to 'Software/Visual_Studio/Tango.Emulations')
-rw-r--r--Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
index 06e340d1d..cfd9a59f5 100644
--- a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
+++ b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
@@ -648,10 +648,11 @@ namespace Tango.Emulations.Emulators
double progress = 0;
_cancelJob = false;
bool message_sent = false;
+ double length = job.Segments.Sum(x => x.Length) * (Math.Max(job.NumberOfUnits, 1));
Task.Factory.StartNew(() =>
{
- while (progress < job.Length + job.ProcessParameters.DryerBufferLength * ProcessParametersTable.DRYER_METERS_PER_CYCLE && !_cancelJob)
+ while (progress < length + job.ProcessParameters.DryerBufferLength * ProcessParametersTable.DRYER_METERS_PER_CYCLE && !_cancelJob)
{
var status = new PMR.Printing.JobStatus();
status.Progress = progress;
@@ -682,7 +683,7 @@ namespace Tango.Emulations.Emulators
}
}
- progress += Math.Min((centimeter_per_second / 1000d), (job.Length + job.ProcessParameters.DryerBufferLength * ProcessParametersTable.DRYER_METERS_PER_CYCLE) - progress);
+ progress += Math.Min((centimeter_per_second / 1000d), (length + job.ProcessParameters.DryerBufferLength * ProcessParametersTable.DRYER_METERS_PER_CYCLE) - progress);
Thread.Sleep(100);
}
@@ -714,7 +715,7 @@ namespace Tango.Emulations.Emulators
{
Status = new PMR.Printing.JobStatus()
{
- Progress = job.Length + job.ProcessParameters.DryerBufferLength * ProcessParametersTable.DRYER_METERS_PER_CYCLE,
+ Progress = length + job.ProcessParameters.DryerBufferLength * ProcessParametersTable.DRYER_METERS_PER_CYCLE,
}
}, request.Container.Token, !_cancelJob);
@@ -725,7 +726,7 @@ namespace Tango.Emulations.Emulators
{
Status = new PMR.Printing.JobStatus()
{
- Progress = job.Length + job.ProcessParameters.DryerBufferLength * ProcessParametersTable.DRYER_METERS_PER_CYCLE,
+ Progress = length + job.ProcessParameters.DryerBufferLength * ProcessParametersTable.DRYER_METERS_PER_CYCLE,
}
}, _current_job_resume_token, !_cancelJob);