Class: MppReader::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/mpp_reader/relation.rb

Overview

A dependency link between two tasks. type is one of :finish_start, :start_start, :finish_finish, :start_finish; lag is a Duration.

Constant Summary collapse

TYPES =
{ 0 => :finish_finish, 1 => :finish_start,
2 => :start_finish, 3 => :start_start }.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#lagObject

Returns the value of attribute lag.



8
9
10
# File 'lib/mpp_reader/relation.rb', line 8

def lag
  @lag
end

#predecessor_task_unique_idObject

Returns the value of attribute predecessor_task_unique_id.



8
9
10
# File 'lib/mpp_reader/relation.rb', line 8

def predecessor_task_unique_id
  @predecessor_task_unique_id
end

#successor_task_unique_idObject

Returns the value of attribute successor_task_unique_id.



8
9
10
# File 'lib/mpp_reader/relation.rb', line 8

def successor_task_unique_id
  @successor_task_unique_id
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/mpp_reader/relation.rb', line 8

def type
  @type
end

#unique_idObject

Returns the value of attribute unique_id.



8
9
10
# File 'lib/mpp_reader/relation.rb', line 8

def unique_id
  @unique_id
end