Package dtk :: Package ui :: Module thread_pool :: Class MissionThread

Class MissionThread

source code


This class stands for a single mission in the thread pool.

Instance Methods
 
__init__(self)
Initialise the MissionThread.
source code
 
run(self)
The thread function.
source code
 
start_mission(self)
The mission thread function of MissionThread.
source code
 
get_mission_result(self)
Return the mission result.
source code

Inherited from threading.Thread: __repr__, daemon, getName, ident, isAlive, isDaemon, is_alive, join, name, setDaemon, setName, start

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

Initialise the MissionThread.

Overrides: object.__init__

run(self)

source code 

The thread function.

Overrides: threading.Thread.run

start_mission(self)

source code 

The mission thread function of MissionThread.

This function is MissionThread template, you should write your own implementation.

get_mission_result(self)

source code 

Return the mission result.

This function is MissionThread template, you should write your own implementation.

Returns:
If you don't want handle result, just return None.