|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.Entity
jcreek.representation.EntityType
Title: EntityType
Description: Represents an encapsulated entity that is a certain type of frame. This class does not really add anything to the representation, but provide an easy way to make Java classes that match different patterns in the representation and provide methods to support them. To create a new EntityType, create a subclass of this class. You can then use the matchEntityType(EntityType[] entityTypeArray) to return an array of all entities in the model that match the pattern represented by this type. Although the supplied constructor will create an EntityType instance from an existing entity, it is encouraged to create new constructors that actually creates new entities of the given type in the model. For exampels of this, see the Case and NumberEntity classes
Constructor Summary | |
|
EntityType(Entity entity)
Creates a new EntityType encapsulating an existing entity. |
protected |
EntityType(Entity entity,
boolean ignore)
|
|
EntityType(KnowledgeModel model,
java.lang.String name,
java.lang.String description)
Creates a new instance by creating a new node in the semantic network of this particular type. |
Method Summary | |
static boolean |
matches(Entity entity)
Should return true if the given entity matches the pattern represented by this class of EntityType. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EntityType(Entity entity) throws EntityTypeNotMatchedException
entity
- The entity to match to attempt to match this EntityType.public EntityType(KnowledgeModel model, java.lang.String name, java.lang.String description) throws NameAlreadyExistException
protected EntityType(Entity entity, boolean ignore)
Method Detail |
public static boolean matches(Entity entity)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |