|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.examples.CreekExample
This class in an example on how to use jCreek through the Java API. It first demonstrates creating a new KnowledgeModel using the jcreek.representation package. Then it demonstrates, on this model, using a the jcreek.reasoning engine to use Case-Based Reasoning on a sample problem case. Last, it shows off some standard GUI elements of the jcreek.gui packages. The implementation is very heavily commented and may be read as a tutorial to jCreek.
Method Summary | |
static void |
addAttributes(KnowledgeModel km)
Generates a new KnowledgeModel for a simple car-start problem domain, part 1 of 3. |
static void |
addCases(KnowledgeModel km)
Generates a new KnowledgeModel for a simple car-start problem domain, part 2 of 3. |
static void |
addCausalModel(KnowledgeModel km)
Generates a new KnowledgeModel for a simple car-start problem domain, part 3 of 3. |
static void |
displayModel(KnowledgeModel km,
boolean showGUI)
Takes an already created model and displays the cases and entities of the model in different ways. |
static Entity |
getEntity(KnowledgeModel km,
java.lang.String name)
Improvement to km.getEntity (more meaningful exception than NullPointer). |
static KnowledgeModel |
loadModel(java.lang.String filename)
Example of loading a KnowledgeModel from disk. |
static void |
main(java.lang.String[] argv)
|
static void |
saveModel(KnowledgeModel model,
java.lang.String filename)
Exampel of saving the given model to disk. |
static void |
solveCBR(KnowledgeModel km,
boolean showGUI)
Example of the jCreek CBR mechanism (jcreek.reasoning) and some GUI elements displaying the process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void main(java.lang.String[] argv)
public static Entity getEntity(KnowledgeModel km, java.lang.String name)
km
- KnowledgeModelname
- String
public static void addAttributes(KnowledgeModel km) throws NameAlreadyExistException, NoSuchRelationTypeException
NameAlreadyExistException
NoSuchRelationTypeException
public static void addCases(KnowledgeModel km) throws NameAlreadyExistException, NoSuchRelationTypeException
NameAlreadyExistException
NoSuchRelationTypeException
public static void addCausalModel(KnowledgeModel km) throws NameAlreadyExistException, NoSuchRelationTypeException
NameAlreadyExistException
NoSuchRelationTypeException
public static void displayModel(KnowledgeModel km, boolean showGUI)
public static void saveModel(KnowledgeModel model, java.lang.String filename)
public static KnowledgeModel loadModel(java.lang.String filename)
public static void solveCBR(KnowledgeModel km, boolean showGUI)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |