class TaskJuggler::TaskDependency

Attributes

gapDuration[RW]
gapLength[RW]
onEnd[RW]
task[R]
taskId[R]

Public Class Methods

new(taskId, onEnd) click to toggle source
# File lib/taskjuggler/TaskDependency.rb, line 20
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

Public Instance Methods

==(dep) click to toggle source
# File lib/taskjuggler/TaskDependency.rb, line 32
def ==(dep)
  @taskId == dep.taskId &&
  @task == dep.task &&
  @onEnd == dep.onEnd &&
  @gapDuration == dep.gapDuration &&
  @gapLength == dep.gapLength
end
resolve(project) click to toggle source
# File lib/taskjuggler/TaskDependency.rb, line 40
def resolve(project)
  @task = project.task(@taskId)
end