|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.bo.logic.model.DynamicModel
public abstract class DynamicModel
A model for our mathematical world. It has entities, functions and predicates. There are also predicate and function constants.
| Field Summary | |
|---|---|
static Predicate |
EQUAL
Are the entities are all the same? |
static Predicate |
EVEN
Return true if value is even. |
static Predicate |
FALSE
Always return false. |
static Predicate |
LESS
Are the entities ordered by < ? |
static Predicate |
NOT_EQUAL
Are the entities are not all the same? |
static Predicate |
NOT_LESS
Are the entities not ordered by < ? |
static Predicate |
TRUE
Always return true. |
| Constructor Summary | |
|---|---|
DynamicModel(java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addEntity(Entity entity)
|
void |
addFunction(int size,
Function function)
Add a function for interpreting function variables. |
void |
addFunctionConstant(ModelFunctionConstant constant,
Function function)
Add a function constant. |
void |
addPredicate(int size,
Predicate predicate)
Add a predicate for interpreting predicate variables. |
void |
addPredicateConstant(ModelPredicateConstant constant,
Predicate predicate)
Add a predicate constant. |
abstract Entity |
comprehension(Entity[] array)
Create entity out of entity list. |
abstract java.lang.String |
getDescription()
Returns the description for the concrete model. |
int |
getEntitiesSize()
Get number of all entities in this model. |
Entity |
getEntity(int number)
Get entity number. |
Function |
getFunction(int size,
int number)
Get function. |
Function |
getFunctionConstant(ModelFunctionConstant con)
Get function constant. |
int |
getFunctionSize(int size)
Get number of functions for this model. |
java.lang.String |
getName()
Get model name. |
Predicate |
getPredicate(int size,
int number)
Get predicate of this model. |
Predicate |
getPredicateConstant(ModelPredicateConstant con)
Get predicate constant of this model. |
int |
getPredicateSize(int size)
Get number of predicates with size number of arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Predicate FALSE
public static final Predicate TRUE
public static final Predicate EVEN
public static final Predicate LESS
public static final Predicate NOT_LESS
public static final Predicate EQUAL
public static final Predicate NOT_EQUAL
| Constructor Detail |
|---|
public DynamicModel(java.lang.String name)
name - Model name.| Method Detail |
|---|
public java.lang.String getName()
public abstract java.lang.String getDescription()
getDescription in interface Model
public void addPredicateConstant(ModelPredicateConstant constant,
Predicate predicate)
constant - Add for this constant.predicate - This interpretation.
public void addFunctionConstant(ModelFunctionConstant constant,
Function function)
constant - Add for this constant.function - This interpretation.protected void addEntity(Entity entity)
public int getEntitiesSize()
Model
getEntitiesSize in interface Modelpublic Entity getEntity(int number)
Modelnumber. Also transforms the value of
an entity into the entity itself.
getEntity in interface Modelnumber - Get entity with this number and value.
public int getPredicateSize(int size)
Modelsize number of arguments.
getPredicateSize in interface Modelsize - Number of arguments.
public Predicate getPredicate(int size,
int number)
Model
getPredicate in interface Modelsize - Number of arguments for predicate.number - Number of predicate.
public void addPredicate(int size,
Predicate predicate)
size - Add for this function argument number.predicate - This interpretation.public Predicate getPredicateConstant(ModelPredicateConstant con)
Model
getPredicateConstant in interface Modelcon - Predicate constant we are looking for.
public int getFunctionSize(int size)
Model
getFunctionSize in interface Modelsize - Number of arguments for function.
public Function getFunction(int size,
int number)
Model
getFunction in interface Modelsize - Number of arguments for function.number - Number of function.
public void addFunction(int size,
Function function)
size - Add for this function argument number.function - This interpretation.public Function getFunctionConstant(ModelFunctionConstant con)
Model
getFunctionConstant in interface Modelcon - Function constant we are looking for.
public abstract Entity comprehension(Entity[] array)
Model
comprehension in interface Modelarray - List of elements.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||