Class: ADSL::FOL::IfThenElseEq

Inherits:
Object
  • Object
show all
Defined in:
lib/adsl/fol/first_order_logic.rb

Instance Method Summary collapse

Constructor Details

#initialize(iif, tthen, eelse) ⇒ IfThenElseEq

Returns a new instance of IfThenElseEq.



221
222
223
224
225
# File 'lib/adsl/fol/first_order_logic.rb', line 221

def initialize(iif, tthen, eelse)
  @iif = iif
  @tthen = tthen
  @eelse = eelse
end

Instance Method Details

#resolve_spassObject



227
228
229
# File 'lib/adsl/fol/first_order_logic.rb', line 227

def resolve_spass
  And.new(Equiv.new(@iif, @tthen), Equiv.new(Not.new(@iif), @eelse)).resolve_spass
end