|
|
@ -98,9 +98,9 @@ public enum ForgeManager implements Runnable { |
|
|
|
public static void submit(WorkOrder workOrder) { |
|
|
|
public static void submit(WorkOrder workOrder) { |
|
|
|
|
|
|
|
|
|
|
|
workOrder.workOrderID = wordOrderCounter.incrementAndGet(); |
|
|
|
workOrder.workOrderID = wordOrderCounter.incrementAndGet(); |
|
|
|
|
|
|
|
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder); |
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
workOrder.slotCount = calcAvailableSlots(workOrder); |
|
|
|
workOrder.slotCount = calcAvailableSlots(workOrder); |
|
|
|
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Cost to execute this workOrder
|
|
|
|
// Cost to execute this workOrder
|
|
|
|
|
|
|
|
|
|
|
|