|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.Entity
jcreek.representation.EntityType
jcreek.representation.NumberEntity
A particular type of entity that encapsulates an instance of any of the Java Number classes.
Constructor Summary | |
NumberEntity(Entity ent)
Creates a NumberEntity from an existing Entity. |
|
NumberEntity(KnowledgeModel model,
java.lang.Number number,
Entity type)
Creates a new NumberEntity that is a value of a supplied entity. |
|
NumberEntity(KnowledgeModel model,
java.lang.Number number,
java.lang.String description)
Creates a new NumberEntity. |
Method Summary | |
java.lang.Number |
asNumber()
Returns the encapsulated number. |
static boolean |
matches(Entity ent)
An Entity is of type NumberEntity if and only if it encapsulates an object that is an instance of java.lang.Number. |
void |
setValue(java.lang.Number number)
Changes the encapsulated number of this entity. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NumberEntity(KnowledgeModel model, java.lang.Number number, java.lang.String description)
model
- The KnowledgeModel to create the new entity in.number
- The number to encapsulate in this entity.description
- The description of the entity.public NumberEntity(KnowledgeModel model, java.lang.Number number, Entity type)
public NumberEntity(Entity ent) throws EntityTypeNotMatchedException
Method Detail |
public void setValue(java.lang.Number number)
number
- The new Number.public java.lang.Number asNumber()
public static boolean matches(Entity ent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |