Class: StateMachineChecker::CTL::Implication

Inherits:
BinaryFormula show all
Defined in:
lib/state_machine_checker/ctl/implication.rb

Overview

Logical implication.

Instance Method Summary collapse

Methods inherited from BinaryFormula

#atoms, #initialize

Methods inherited from Formula

#AU, #EU, #and, #implies, #or

Constructor Details

This class inherits a constructor from StateMachineChecker::CTL::BinaryFormula

Instance Method Details

#check(model) ⇒ CheckResult

Parameters:

Returns:


10
11
12
# File 'lib/state_machine_checker/ctl/implication.rb', line 10

def check(model)
  subformula1.and(subformula2).or(Not.new(subformula1)).check(model)
end

#to_sObject


14
15
16
# File 'lib/state_machine_checker/ctl/implication.rb', line 14

def to_s
  "(#{subformula1}) ⇒ (#{subformula2})"
end