|
|||||||||||
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
jcreek.representation.DoubleEntity
A particular type of entity that encapsulates an instance of the Java Double class.
Constructor Summary | |
DoubleEntity(Entity ent)
Creates a NumberEntity from an existing Entity. |
|
DoubleEntity(KnowledgeModel model,
double number,
Entity type)
Creates a new NumberEntity that is a value of a supplied entity. |
|
DoubleEntity(KnowledgeModel model,
java.lang.Double number,
Entity type)
Creates a new NumberEntity that is a value of a supplied entity. |
|
DoubleEntity(KnowledgeModel model,
double number,
java.lang.String description)
Creates a new DoubleEntity. |
Method Summary | |
java.lang.Double |
asDouble()
Returns the encapsulated number. |
static boolean |
matches(Entity ent)
An Entity is of type DoubleEntity if and only if it encapsulates an object that is an instance of java.lang.Double. |
Methods inherited from class jcreek.representation.NumberEntity |
asNumber, setValue |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DoubleEntity(KnowledgeModel model, double 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 DoubleEntity(KnowledgeModel model, java.lang.Double number, Entity type)
public DoubleEntity(KnowledgeModel model, double number, Entity type)
public DoubleEntity(Entity ent) throws EntityTypeNotMatchedException
Method Detail |
public java.lang.Double asDouble()
public static boolean matches(Entity ent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |