Class: Arrolio::TextLayout::KnuthPlass::Breaker::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/arrolio/text_layout/knuth_plass/breaker.rb

Overview

Internal: a node in the dynamic programming graph.

Instance Attribute Summary collapse

Instance Attribute Details

#fitnessObject

Returns the value of attribute fitness

Returns:

  • (Object)

    the current value of fitness



72
73
74
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72

def fitness
  @fitness
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



72
73
74
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72

def line
  @line
end

#positionObject

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



72
73
74
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72

def position
  @position
end

#previousObject

Returns the value of attribute previous

Returns:

  • (Object)

    the current value of previous



72
73
74
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72

def previous
  @previous
end

#total_demeritsObject

Returns the value of attribute total_demerits

Returns:

  • (Object)

    the current value of total_demerits



72
73
74
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72

def total_demerits
  @total_demerits
end