24 lines
No EOL
398 B
Python
24 lines
No EOL
398 B
Python
"""
|
|
The task class.
|
|
"""
|
|
|
|
|
|
class Task:
|
|
"""
|
|
Base class for all built-in Tasks.
|
|
"""
|
|
|
|
def set_task_type(self, taskType):
|
|
self._taskType = taskType
|
|
|
|
def get_task_type(self):
|
|
"""
|
|
:return: the type set by set_type_task
|
|
"""
|
|
return self._taskType
|
|
|
|
def some_other_irrelevant_methods(self):
|
|
pass
|
|
|
|
def execute(self, msg):
|
|
pass |