|
|||||||||||
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.cbr.Case
A case is a particular type of entity that represents a case (in the Case- Based Reasoning sense).
Field Summary | |
static int |
PROCESSCASE
|
static int |
SOLVEDCASE
|
static int |
UNSOLVEDCASE
|
Constructor Summary | |
Case(Entity ent)
Creates a Case from an existing Entity. |
|
Case(KnowledgeModel model,
java.lang.String name,
java.lang.String description)
Creates a new Case. |
|
Case(KnowledgeModel model,
java.lang.String name,
java.lang.String description,
Entity caseType)
Creates a new Case. |
Method Summary | |
Relation |
addFinding(java.lang.String relationType,
Entity value,
double importance,
double predictiveStrength)
Adds a Relation for a Case. |
Entity |
getSolution()
Returns the solution of this Case. |
int |
getStatus()
Returns the solved status of this Case |
java.lang.String |
getStatusString()
Returns the solved status of this Case as an english string |
static boolean |
matches(Entity ent)
An Entity is a RelationType if and only if and only if it is an (indirect) subclass of the Relation object. |
void |
setSolution(Entity solution)
Sets the solution of the case. |
void |
setStatus(int status)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SOLVEDCASE
public static final int PROCESSCASE
public static final int UNSOLVEDCASE
Constructor Detail |
public Case(KnowledgeModel model, java.lang.String name, java.lang.String description) throws NameAlreadyExistException
model
- The KnowledgeModel to create the new entity in.name
- The name of the case to create.description
- The description of the entity.public Case(KnowledgeModel model, java.lang.String name, java.lang.String description, Entity caseType) throws NameAlreadyExistException
model
- The KnowledgeModel to create the new entity in.name
- The name of the case to create.description
- The description of the entity.caseType
- The entity representing the type of case this is.public Case(Entity ent) throws EntityTypeNotMatchedException
Method Detail |
public int getStatus()
public java.lang.String getStatusString()
public Entity getSolution()
public void setSolution(Entity solution)
solution
- The entity representing the solution of the case.public void setStatus(int status)
public Relation addFinding(java.lang.String relationType, Entity value, double importance, double predictiveStrength) throws NoSuchRelationTypeException
Added in the Case class for the ability to set Explanation and Predictive Strength in an easy manner.
Stein L. Tomassen (30-05-2002)
relationType
- the name of relationtype.value
- the reference to the entity to create relation to.importance
- the importance strength for this relationpredictiveStrength
- the predictive strength for this relation
NoSuchRelationTypeException
public static boolean matches(Entity ent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |