|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrevisionlogic.ISent
ISent is an abstract class with a specific interface and some default implementations for sentences. The concrete subclasses of ISent must implement functions specified in the interface and may override ISent's default implementations.
Field Summary | |
static int |
ATOM
An int indicating the atomic sentence type. |
static int |
BIIMP
An int indicating the biconditional sentence type. |
static int |
CONJ
An int indicating the conjunction sentence type. |
static int |
CONT
An int indicating the contradiction sentence type. |
static int |
DIS
An int indicating the disjunction sentence type. |
static int |
IMP
An int indicating the implication sentence type. |
static int |
NEG
An int indicating the negation sentence type. |
static int |
TAUT
An int indicating the tautological sentence type. |
Constructor Summary | |
ISent()
|
Method Summary | |
abstract java.lang.Object |
clone()
Creates and returns a clone of this sentence. |
(package private) abstract ISent |
conjunctionsIn()
Returns a reference to an equivalent ISent sentence, in which the outer conjunction signs are moved inside in the DNF transformation. |
(package private) abstract ISent |
disjunctionsIn()
Returns a reference to an equivalent ISent sentence, in which the outer disjunction signs are moved inside in the CNF transformation. |
abstract boolean |
equals(java.lang.Object s)
Checks if this sentence equals s . |
(package private) abstract java.util.HashSet |
getAtoms()
Returns a set consisting of the literals of this sentence. |
ISent |
getCNF()
Returns a reference to an equivalence ISent sentence after the cnf transformation. |
ISent |
getCNFUI()
Returns a reference to an equivalence ISent sentence after the cnf transformation. |
(package private) abstract int |
getDepth()
Returns the depth (levels of nesting) of this sentence. |
(package private) java.lang.String |
getDIMACSFormat(boolean isCNF)
Returns the DIMACS string representation of this sentence as an input to the external satisfiability solver. |
ISent |
getDNFUI()
Returns a reference to an equivalence ISent sentence after the dnf transformation. |
java.lang.String |
getLabel()
Returns the string representation of this sentence. |
(package private) abstract java.lang.StringBuffer |
getLabelSB()
Returns a string buffer holding the string representation of this sentence. |
abstract int |
getType()
Returns the type of this sentence. |
(package private) abstract ISent |
implicationsOut()
Returns a reference to an equivalent ISent sentence, in which, all the implications have been replaced with disjunctions, and all the biconditionals with a conjunction of two disjunctions. |
boolean |
isConsistent()
Checks if this sentence is consistent and satisfiable. |
(package private) boolean |
isConsistent(ISent s0)
Checks if this sentence is consistent with s0 . |
(package private) boolean |
isConsistent(java.util.Vector v)
Checks if this sentence is consistent with the conjunction of the sentences in v . |
static boolean |
isInconsistentSList(ISent cnfForm)
Checks if the CNF sentence cnfForm is consistent and satisfiable. |
(package private) boolean |
isprConsistent()
Checks if this CNF sentence is consistent and satisfiable. |
(package private) abstract ISent |
negationsIn()
Returns a reference to an equivalent ISent sentence, in which the negation signs appear only on the literals. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ATOM
public static final int NEG
public static final int CONJ
public static final int DIS
public static final int IMP
public static final int BIIMP
public static final int TAUT
public static final int CONT
Constructor Detail |
public ISent()
Method Detail |
abstract ISent implicationsOut()
This is an abstract method specification for the concrete subclasses of ISent.
abstract ISent negationsIn()
This is an abstract method specification for the concrete subclasses of ISent.
abstract ISent disjunctionsIn()
This is an abstract method specification for the concrete subclasses of ISent.
abstract ISent conjunctionsIn()
This is an abstract method specification for the concrete subclasses of ISent.
abstract int getDepth()
This is an abstract method specification for the concrete subclasses of ISent.
abstract java.lang.StringBuffer getLabelSB()
This is an abstract method specification for the concrete subclasses of ISent.
abstract java.util.HashSet getAtoms()
This is an abstract method specification for the concrete subclasses of ISent.
public abstract boolean equals(java.lang.Object s)
s
.This is an abstract method specification for the concrete subclasses of ISent.
s
is a sentence of the same type with equal operands, false otherwise.public abstract int getType()
This is an abstract method specification for the concrete subclasses of ISent.
public abstract java.lang.Object clone()
This is an abstract method specification for the concrete subclasses of ISent.
public java.lang.String getLabel()
This is the default implementation for sentences.
public ISent getCNFUI()
This is the default implementation for sentences. This method is invoked only by the ListSent constructors.
public ISent getDNFUI()
This is the default implementation for sentences. This method is invoked only by the ListSent constructors.
public boolean isConsistent()
public static boolean isInconsistentSList(ISent cnfForm)
cnfForm
is consistent and satisfiable.
cnfForm
- a reference to the CNF sentence to be checked for satisfiability.
cnfForm
is consistent and satisfiable.boolean isConsistent(ISent s0)
s0
.
s0
- a reference to the sentence to be checked against this sentence.
s0
, false otherwise.boolean isConsistent(java.util.Vector v)
v
.
v
- the Vector of sentences whose conjunction are to be checked against this sentence.
v
,
false otherwise.boolean isprConsistent()
This method can be invoked only by ISent instances already in the CNF format.
public ISent getCNF()
This is the default implementation for sentences.
java.lang.String getDIMACSFormat(boolean isCNF)
This is the default implementation for sentences.
isCNF
- a boolean which is true if this sentence is already in the CNF format, false otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |