Package svs_simulation :: Package ai_lib :: Module tasks :: Class Task
[show private | hide private]
[frames | no frames]

Class Task

Known Subclasses:
CompositeTask

Generic task.
Method Summary
  __init__(self, agent)
  activate(self)
Logic to run when the task is activated.
  activateIfInactive(self)
Reactivates the task if Task.status is task_state.INACTIVE.
  addSubtask(self, subtask)
Adds new subtask.
  handleEvent(self, event)
Handles events from game system.
  hasFailed(self)
  isActive(self)
  isComplete(self)
  isInactive(self)
  process(self)
Logic to run each update-step.
  reactivateIfFailed(self)
If Task.status is task_state.FAILED this method sets it to inactive so that the task will be reactivated (replanned) on the next update-step.
  terminate(self)
Logic to run prior to the task's destruction.

Method Details

activate(self)

Logic to run when the task is activated.

activateIfInactive(self)

Reactivates the task if Task.status is task_state.INACTIVE.

addSubtask(self, subtask)

Adds new subtask.

handleEvent(self, event)

Handles events from game system.

process(self)

Logic to run each update-step.

reactivateIfFailed(self)

If Task.status is task_state.FAILED this method sets it to inactive so that the task will be reactivated (replanned) on the next update-step.

terminate(self)

Logic to run prior to the task's destruction.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:26 2005 http://epydoc.sf.net