|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.kernel.bo.logic.model.Predicate
public abstract class Predicate
One predicate for our model.
Constructor Summary | |
---|---|
Predicate(int minimum,
int maximum,
java.lang.String display,
java.lang.String description)
Constructor. |
Method Summary | |
---|---|
static Predicate |
and(Predicate op1,
Predicate op2)
Construct conjunction of two predicates. |
abstract boolean |
calculate(Entity[] entities)
Calculate truth value. |
java.lang.String |
getDescription()
Get description. |
int |
getMaximumArgumentNumber()
Get maximum number of arguments this predicate has. |
int |
getMinimumArgumentNumber()
Get minimum number of arguments this predicate has. |
static Predicate |
isEntity(Entity entity)
Construct identifying predicate. |
static Predicate |
not(Predicate predicate)
Construct negation of other predicate. |
static Predicate |
or(Predicate op1,
Predicate op2)
Construct disjunction of two predicates. |
java.lang.String |
toString()
Get display text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Predicate(int minimum, int maximum, java.lang.String display, java.lang.String description)
minimum
- Minimum number of arguments this predicate has.maximum
- Maximum number of arguments this predicate has.display
- Show this to represent the predicate within outputs.description
- Description for this predicate.Method Detail |
---|
public static Predicate not(Predicate predicate)
predicate
- Negate this predicate.
public static Predicate and(Predicate op1, Predicate op2)
op1
- First predicate.op2
- Second predicate.
public static Predicate or(Predicate op1, Predicate op2)
op1
- First predicate.op2
- Second predicate.
public static Predicate isEntity(Entity entity)
entity
- Check if all entities are equal to this.
public int getMinimumArgumentNumber()
public int getMaximumArgumentNumber()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDescription()
public abstract boolean calculate(Entity[] entities)
entities
- Calculate predicate for this entities.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |