Sha256: bdbb7ed8e3963de1be2d4fc78c33797423219ea29b200728c4560ea667298b51
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = TaskDependency.rb -- The TaskJuggler III Project Management Software # # Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 # by Chris Schlaeger <cs@taskjuggler.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 ==(dep) @taskId == dep.taskId && @task == dep.task && @onEnd == dep.onEnd && @gapDuration == dep.gapDuration && @gapLength == dep.gapLength end def resolve(project) @task = project.task(@taskId) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taskjuggler-3.7.2 | lib/taskjuggler/TaskDependency.rb |
taskjuggler-3.7.1 | lib/taskjuggler/TaskDependency.rb |
taskjuggler-3.6.0 | lib/taskjuggler/TaskDependency.rb |