Klasse OrderPlanThread

java.lang.Object
java.lang.Thread
de.dlr.proseo.planner.util.OrderPlanThread
Alle implementierten Schnittstellen:
Runnable

public class OrderPlanThread extends Thread
Thread handling the planning process of a single processing order, creating job steps, and updating its planning state accordingly.
Autor:
Ernst Melchinger
  • Konstruktordetails

    • OrderPlanThread

      public OrderPlanThread(ProductionPlanner productionPlanner, OrderDispatcher orderDispatcher, long orderId, long facilityId, String name)
      Create a new OrderPlanThread.
      Parameter:
      productionPlanner - The production planner instance
      orderDispatcher - The order dispatcher
      orderId - The ID of the processing order to plan
      facilityId - The ID of the processing facility to run the order
      name - The name of the thread
  • Methodendetails

    • getResultMessage

      public PlannerResultMessage getResultMessage()
      Get the result message of the planning.
      Gibt zurück:
      the resultMessage
    • run

      public void run()
      Starts the thread and initiates the planning process for the given order.
      Angegeben von:
      run in Schnittstelle Runnable
      Setzt außer Kraft:
      run in Klasse Thread
    • plan

      public PlannerResultMessage plan(long orderId) throws InterruptedException
      Plan the given order by creating job steps and updating its state.
      Parameter:
      orderId - The ID of the order to plan
      Gibt zurück:
      The result message of the planning
      Löst aus:
      InterruptedException