|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlogic.Formula
logic.AtomicProposition
public class AtomicProposition
Atomic proposition
Represents an atomic proposition. Atomic proposition are associated with a list of intervals. An atomic proposition must begin with a lowercase. Altough this constraint will not be checked in this class, the logical parser actually verify this constraint.Copyright(c) 2005 Université Laval, LSFM research group.
Field Summary | |
---|---|
static java.lang.String |
TYPE
A constant representing an atomic proposition. |
Fields inherited from class logic.Formula |
---|
subFormula |
Constructor Summary | |
---|---|
AtomicProposition(java.lang.String ap)
This constructor creates a new atomic proposition. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Determines if the specified object is equals to this atomic proposition. |
java.lang.String |
getAP()
Returns the name of the atomic proposition |
java.lang.String |
getType()
Returns a string representing the type Atomic Proposition. |
java.lang.String |
toString()
Converts this atomic proposition to a string |
Methods inherited from class logic.Formula |
---|
depth, getSubFormula, setSubFormula |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE
Constructor Detail |
---|
public AtomicProposition(java.lang.String ap)
ap
- name of the atomic proposition.Method Detail |
---|
public java.lang.String getType()
getType
in class Formula
public java.lang.String getAP()
public java.lang.String toString()
toString
in class Formula
public boolean equals(java.lang.Object o)
equals
in class Formula
o
- an object to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |