1 package com.example.furt.myapplication;
3 public class RuleNotElimination implements EliminationRule
6 public String getName()
11 RuleNotElimination(FormulaNot F)
16 public Node createNodes(Formula F,askFormula ask)
19 if ((C.toString().equals("⊥"))&&(F==null ||F==Fn.Operand)) //top-down con nodo attuale bottom o bottom-up con nodi attuali Fn e !Fn
21 Node elNode=new Node(Fn);
22 Node cNode=new Node(Fn.Operand);
23 Node rNode=new Node(C);
24 rNode.addChild(elNode);
25 rNode.addChild(cNode);
26 rNode.ruleName=ruleName;