class TaskJuggler::Task

Public Class Methods

new(project, id, name, parent) click to toggle source
Calls superclass method TaskJuggler::PropertyTreeNode::new
# File lib/taskjuggler/Task.rb, line 21
def initialize(project, id, name, parent)
  super(project.tasks, id, name, parent)
  project.addTask(self)

  @data = Array.new(@project.scenarioCount, nil)
  @project.scenarioCount.times do |i|
    TaskScenario.new(self, i, @scenarioAttributes[i])
  end
end

Public Instance Methods

readyForScheduling?(scenarioIdx) click to toggle source
# File lib/taskjuggler/Task.rb, line 31
def readyForScheduling?(scenarioIdx)
  @data[scenarioIdx].readyForScheduling?
end