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 20
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 30
def readyForScheduling?(scenarioIdx)
  @data[scenarioIdx].readyForScheduling?
end