|
||||||||||
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 Model
public Entity getEntity(int number)
Model
number
. Also transforms the value of
an entity into the entity itself.
getEntity
in interface Model
number
- Get entity with this number and value.
public int getPredicateSize(int size)
Model
size
number of arguments.
getPredicateSize
in interface Model
size
- Number of arguments.
public Predicate getPredicate(int size, int number)
Model
getPredicate
in interface Model
size
- 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 Model
con
- Predicate constant we are looking for.
public int getFunctionSize(int size)
Model
getFunctionSize
in interface Model
size
- Number of arguments for function.
public Function getFunction(int size, int number)
Model
getFunction
in interface Model
size
- 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 Model
con
- Function constant we are looking for.
public abstract Entity comprehension(Entity[] array)
Model
comprehension
in interface Model
array
- List of elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |