Package de.dlr.proseo.planner.util
Klasse OrderPlanThread
java.lang.Object
java.lang.Thread
de.dlr.proseo.planner.util.OrderPlanThread
- Alle implementierten Schnittstellen:
Runnable
Thread handling the planning process of a single processing order, creating job steps, and updating its planning state
accordingly.
- Autor:
- Ernst Melchinger
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Feldübersicht
Von Klasse geerbte Felder java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungOrderPlanThread
(ProductionPlanner productionPlanner, OrderDispatcher orderDispatcher, long orderId, long facilityId, String name) Create a new OrderPlanThread. -
Methodenübersicht
Von Klasse geerbte Methoden java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Konstruktordetails
-
OrderPlanThread
public OrderPlanThread(ProductionPlanner productionPlanner, OrderDispatcher orderDispatcher, long orderId, long facilityId, String name) Create a new OrderPlanThread.- Parameter:
productionPlanner
- The production planner instanceorderDispatcher
- The order dispatcherorderId
- The ID of the processing order to planfacilityId
- The ID of the processing facility to run the ordername
- The name of the thread
-
-
Methodendetails
-
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. -
plan
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
-