Class: EDI::Diagram::NodeCoords

Inherits:
Struct
  • Object
show all
Defined in:
lib/edi4r/diagrams.rb,
lib/edi4r/diagrams.rb

Overview

Node co-ordinates: A Struct consisting of the branch, its offset within the branch, and its instance counter inst_cnt .

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#branchObject

Returns the value of attribute branch

Returns:

  • (Object)

    the current value of branch


376
377
378
# File 'lib/edi4r/diagrams.rb', line 376

def branch
  @branch
end

#inst_cntObject

Returns the value of attribute inst_cnt

Returns:

  • (Object)

    the current value of inst_cnt


376
377
378
# File 'lib/edi4r/diagrams.rb', line 376

def inst_cnt
  @inst_cnt
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset


376
377
378
# File 'lib/edi4r/diagrams.rb', line 376

def offset
  @offset
end

Instance Method Details

#to_sObject


382
383
384
# File 'lib/edi4r/diagrams.rb', line 382

def to_s
  "<NodeCoords>"+self.branch.object_id.to_s+', '+self.offset.to_s+', '+self.inst_cnt.to_s
end