# File lib/taskjuggler/TaskDependency.rb, line 19 def initialize(taskId, onEnd) @taskId = taskId @task = nil # Specifies whether the dependency is relative to the start or the # end of the dependent task. @onEnd = onEnd # The gap duration is stored in seconds of calendar time. @gapDuration = 0 # The gap length is stored in number of scheduling slots. @gapLength = 0 end
# File lib/taskjuggler/TaskDependency.rb, line 31 def ==(dep) @taskId == dep.taskId && @task == dep.task && @onEnd == dep.onEnd && @gapDuration == dep.gapDuration && @gapLength == dep.gapLength end
# File lib/taskjuggler/TaskDependency.rb, line 39 def resolve(project) @task = project.task(@taskId) end