linspector-old/lib/tasks/task.py

24 lines
398 B
Python
Raw Normal View History

2013-06-18 02:58:40 +02:00
"""
2013-06-19 03:26:25 +02:00
The task class.
2013-06-18 02:58:40 +02:00
"""
2013-06-18 01:50:01 +02:00
class Task:
2013-06-18 02:58:40 +02:00
"""
2013-06-18 01:50:01 +02:00
Base class for all built-in Tasks.
2013-06-18 02:58:40 +02:00
"""
2013-07-02 00:19:20 +02:00
2013-06-18 01:50:01 +02:00
def set_task_type(self, taskType):
2013-07-02 00:19:20 +02:00
self._taskType = taskType
2013-06-18 01:50:01 +02:00
def get_task_type(self):
2013-06-18 02:58:40 +02:00
"""
2013-06-19 03:26:25 +02:00
:return: the type set by set_type_task
2013-06-18 02:58:40 +02:00
"""
2013-06-18 01:50:01 +02:00
return self._taskType
2013-07-02 00:19:20 +02:00
def some_other_irrelevant_methods(self):
pass
def execute(self, msg):
2013-07-02 00:19:20 +02:00
pass