Sha256: b9fd33456eb074a6c9f9467b73f467feba0f4762e5b0383926149b4bb1b29c85

Contents?: true

Size: 980 Bytes

Versions: 5

Compression:

Stored size: 980 Bytes

Contents

#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = TaskDependency.rb -- The TaskJuggler III Project Management Software
#
# Copyright (c) 2006, 2007, 2008, 2009, 2010 by Chris Schlaeger <cs@kde.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#

class TaskJuggler

  class TaskDependency

    attr_accessor :onEnd, :gapDuration, :gapLength
    attr_reader :taskId, :task

    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

    def resolve(project)
      @task = project.task(@taskId)
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
taskjuggler-0.0.8 lib/TaskDependency.rb
taskjuggler-0.0.7 lib/TaskDependency.rb
taskjuggler-0.0.6 lib/TaskDependency.rb
taskjuggler-0.0.5 lib/TaskDependency.rb
taskjuggler-0.0.4 lib/TaskDependency.rb