Class Index [+]

Quicksearch

TaskJuggler::ResourceListRE

This specialization of TableReport implements a resource listing. It generates a list of resources that can optionally have the assigned tasks nested underneath each resource line.

Public Class Methods

new(report) click to toggle source

Create a new object and set some default values.

    # File lib/taskjuggler/reports/ResourceListRE.rb, line 27
27:     def initialize(report)
28:       super
29:       @table = ReportTable.new
30:     end

Public Instance Methods

generateIntermediateFormat() click to toggle source

Generate the table in the intermediate format.

    # File lib/taskjuggler/reports/ResourceListRE.rb, line 33
33:     def generateIntermediateFormat
34:       super
35: 
36:       setReportPeriod
37: 
38:       # Prepare the resource list.
39:       resourceList = PropertyList.new(@project.resources)
40:       resourceList.setSorting(@report.get('sortResources'))
41:       resourceList = filterResourceList(resourceList, nil,
42:                                         @report.get('hideResource'),
43:                                         @report.get('rollupResource'),
44:                                         @report.get('openNodes'))
45:       resourceList.query = @report.project.reportContexts.last.query
46:       resourceList.sort!
47: 
48:       # Prepare the task list. Don't filter it yet! It would break the
49:       # *_() LogicalFunctions.
50:       taskList = PropertyList.new(@project.tasks)
51:       taskList.setSorting(@report.get('sortTasks'))
52:       taskList.query = @report.project.reportContexts.last.query
53:       taskList.sort!
54: 
55:       adjustReportPeriod(taskList, @report.get('scenarios'),
56:                          @report.get('columns'))
57: 
58:       # Generate the table header.
59:       @report.get('columns').each do |columnDescr|
60:         generateHeaderCell(columnDescr)
61:       end
62: 
63:       # Generate the list.
64:       generateResourceList(resourceList, taskList, nil)
65:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.