Class TaskJuggler::TaskDependency
In: lib/taskjuggler/TaskDependency.rb
Parent: Object

Methods

==   new   resolve  

Attributes

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

Public Class methods

[Source]

# File lib/taskjuggler/TaskDependency.rb, line 21
    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

[Source]

# File lib/taskjuggler/TaskDependency.rb, line 33
    def ==(dep)
      @taskId == dep.taskId &&
      @task == dep.task &&
      @onEnd == dep.onEnd &&
      @gapDuration == dep.gapDuration &&
      @gapLength == dep.gapLength
    end

[Source]

# File lib/taskjuggler/TaskDependency.rb, line 41
    def resolve(project)
      @task = project.task(@taskId)
    end

[Validate]