1 package com.example.furt.myapplication;
3 import android.graphics.Paint;
5 import java.util.ArrayList;
8 public class FormulaNot extends GenericFormula implements Formula{
20 public String Draw(int p)
23 return "¬"+Operand.Draw(20);
25 return("¬("+Operand.Draw(20)+")");
28 public List<IntroductionRule> introductionRules(){
29 List<IntroductionRule> nodes=new ArrayList<IntroductionRule>();
30 RuleIntroduction notIntro=new RuleIntroduction("¬i",4);
31 Node notN=new Node(new FormulaBOT());
32 List<Formula> notHP=new ArrayList<Formula>();
34 notN.addHPFormula(notHP,true);
35 Node thisNode=new Node(this);
36 thisNode.addChild(notN);
37 notIntro.tempRule=thisNode;
41 public List<EliminationRule> EliminationRules()
43 List<EliminationRule> nodes=new ArrayList<EliminationRule>();
44 nodes.add(new RuleNotElimination(this));
49 public boolean Fill(Formula Filler) {
50 if(Operand.toString().equals("_")) {
54 return Operand.Fill(Filler);
58 public boolean setCursor() {
59 return Operand.setCursor();
63 public Formula duplicate() {
64 return new FormulaNot(Operand.duplicate());