Class: Coopy::TableComparisonState

Inherits:
Object
  • Object
show all
Defined in:
lib/lib/coopy/table_comparison_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTableComparisonState

Returns a new instance of TableComparisonState.



7
8
9
# File 'lib/lib/coopy/table_comparison_state.rb', line 7

def initialize
  self.reset
end

Instance Attribute Details

#aObject

Returns the value of attribute a.



12
13
14
# File 'lib/lib/coopy/table_comparison_state.rb', line 12

def a
  @a
end

#a_metaObject

Returns the value of attribute a_meta.



22
23
24
# File 'lib/lib/coopy/table_comparison_state.rb', line 22

def a_meta
  @a_meta
end

#alignmentObject

Returns the value of attribute alignment.



24
25
26
# File 'lib/lib/coopy/table_comparison_state.rb', line 24

def alignment
  @alignment
end

#bObject

Returns the value of attribute b.



13
14
15
# File 'lib/lib/coopy/table_comparison_state.rb', line 13

def b
  @b
end

#b_metaObject

Returns the value of attribute b_meta.



23
24
25
# File 'lib/lib/coopy/table_comparison_state.rb', line 23

def b_meta
  @b_meta
end

#child_orderObject

Returns the value of attribute child_order.



26
27
28
# File 'lib/lib/coopy/table_comparison_state.rb', line 26

def child_order
  @child_order
end

#childrenObject

Returns the value of attribute children.



25
26
27
# File 'lib/lib/coopy/table_comparison_state.rb', line 25

def children
  @children
end

#compare_flagsObject

Returns the value of attribute compare_flags.



20
21
22
# File 'lib/lib/coopy/table_comparison_state.rb', line 20

def compare_flags
  @compare_flags
end

#completedObject

Returns the value of attribute completed.



14
15
16
# File 'lib/lib/coopy/table_comparison_state.rb', line 14

def completed
  @completed
end

#has_same_columnsObject

Returns the value of attribute has_same_columns.



18
19
20
# File 'lib/lib/coopy/table_comparison_state.rb', line 18

def has_same_columns
  @has_same_columns
end

#has_same_columns_knownObject

Returns the value of attribute has_same_columns_known.



19
20
21
# File 'lib/lib/coopy/table_comparison_state.rb', line 19

def has_same_columns_known
  @has_same_columns_known
end

#is_equalObject

Returns the value of attribute is_equal.



16
17
18
# File 'lib/lib/coopy/table_comparison_state.rb', line 16

def is_equal
  @is_equal
end

#is_equal_knownObject

Returns the value of attribute is_equal_known.



17
18
19
# File 'lib/lib/coopy/table_comparison_state.rb', line 17

def is_equal_known
  @is_equal_known
end

#pObject

Returns the value of attribute p.



11
12
13
# File 'lib/lib/coopy/table_comparison_state.rb', line 11

def p
  @p
end

#p_metaObject

Returns the value of attribute p_meta.



21
22
23
# File 'lib/lib/coopy/table_comparison_state.rb', line 21

def p_meta
  @p_meta
end

#run_to_completionObject

Returns the value of attribute run_to_completion.



15
16
17
# File 'lib/lib/coopy/table_comparison_state.rb', line 15

def run_to_completion
  @run_to_completion
end

Instance Method Details

#get_metaObject



41
42
43
44
45
# File 'lib/lib/coopy/table_comparison_state.rb', line 41

def get_meta 
  @p_meta = @p.get_meta if @p != nil && @p_meta == nil
  @a_meta = @a.get_meta if @a != nil && @a_meta == nil
  @b_meta = @b.get_meta if @b != nil && @b_meta == nil
end

#resetObject



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/lib/coopy/table_comparison_state.rb', line 28

def reset 
  @completed = false
  @run_to_completion = true
  @is_equal_known = false
  @is_equal = false
  @has_same_columns = false
  @has_same_columns_known = false
  @compare_flags = nil
  @alignment = nil
  @children = nil
  @child_order = nil
end