Sha256: 763b3f69142ef5f8f5cff607b1615d87f33bf3a0d13a22918c4b79fff7a82f98

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

module Asposetasksjava
  module AssignmentVariance
    def initialize()
        data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
                
        # Instantiate project object
        project = Rjb::import('com.aspose.tasks.Project').new(data_dir + 'test_tasks.mpp')

        resource_assignments = project.getResourceAssignments().toList()

        # Parse through all the collected resource assignments
        i = 0
        while i < resource_assignments.size()
          ra = resource_assignments.get(i)
          puts "Work Variance: " + ra.get(Rjb::import('com.aspose.tasks.Asn').WORK_VARIANCE).toString()
          puts "Cost Variance: " + ra.get(Rjb::import('com.aspose.tasks.Asn').COST_VARIANCE).toString()
          puts "Start Variance: " + ra.get(Rjb::import('com.aspose.tasks.Asn').START_VARIANCE).toString()
          puts "Finish Variance: " + ra.get(Rjb::import('com.aspose.tasks.Asn').FINISH_VARIANCE).toString()
          puts "--------------------------------------------------------"
          i +=1
        end    
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/ResourceAssignments/assignmentvariance.rb