Class: PgVerify::Model::VariableState

Inherits:
Object
  • Object
show all
Defined in:
lib/pg-verify/model/simulation/variable_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec, success, trace) ⇒ VariableState

Returns a new instance of VariableState.



8
9
10
# File 'lib/pg-verify/model/simulation/variable_state.rb', line 8

def initialize(spec, success, trace)
    
end

Instance Attribute Details

#value_mapObject

Returns the value of attribute value_map.



6
7
8
# File 'lib/pg-verify/model/simulation/variable_state.rb', line 6

def value_map
  @value_map
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/pg-verify/model/simulation/variable_state.rb', line 16

def failure?()
    return !@success
end

#success?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/pg-verify/model/simulation/variable_state.rb', line 12

def success?
    return @success
end