Class: TaskJuggler::Task
- Inherits:
-
PropertyTreeNode
- Object
- PropertyTreeNode
- TaskJuggler::Task
- Defined in:
- lib/taskjuggler/Task.rb
Instance Attribute Summary
Attributes inherited from PropertyTreeNode
#adoptees, #children, #data, #id, #name, #parent, #project, #propertySet, #sequenceNo, #sourceFileInfo, #subId
Instance Method Summary collapse
-
#initialize(project, id, name, parent) ⇒ Task
constructor
A new instance of Task.
- #readyForScheduling?(scenarioIdx) ⇒ Boolean
Methods inherited from PropertyTreeNode
#[], #[]=, #addChild, #adopt, #all, #allLeaves, #ancestors, #attributeDefinition, #backupAttributes, #checkFailsAndWarnings, #container?, #deep_clone, #force, #fullId, #get, #getAdopted, #getAttribute, #getBSIndicies, #getIndicies, #inheritAttributes, #inherited, #isChildOf?, #kids, #leaf?, #level, #levelSeqNo, #logicalId, #method_missing, #modified?, #parents, #provided, #ptn, #query_alert, #query_alertmessages, #query_alertsummaries, #query_alerttrend, #query_children, #query_journal, #query_journalmessages, #query_journalsummaries, #removeReferences, #restoreAttributes, #root, #set, #to_s
Methods included from MessageHandler
#critical, #debug, #error, #fatal, #info, #warning
Constructor Details
#initialize(project, id, name, parent) ⇒ Task
Returns a new instance of Task.
21 22 23 24 25 26 27 28 29 |
# File 'lib/taskjuggler/Task.rb', line 21 def initialize(project, id, name, parent) super(project.tasks, id, name, parent) project.addTask(self) @data = Array.new(@project.scenarioCount, nil) @project.scenarioCount.times do |i| TaskScenario.new(self, i, @scenarioAttributes[i]) end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TaskJuggler::PropertyTreeNode
Instance Method Details
#readyForScheduling?(scenarioIdx) ⇒ Boolean
31 32 33 |
# File 'lib/taskjuggler/Task.rb', line 31 def readyForScheduling?(scenarioIdx) @data[scenarioIdx].readyForScheduling? end |