jcreek.examples
Class CreekExampleOld

java.lang.Object
  extended byjcreek.examples.CreekExampleOld

public class CreekExampleOld
extends java.lang.Object

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.

Version:
2.0
Author:
Frode Sørmo

Method Summary
static void displayModel(KnowledgeModel km, boolean nogui)
          Takes an already created model and displays the cases and entities of the model in different ways.
static KnowledgeModel generateModel()
          Generates a new KnowledgeModel for a simple car-start problem domain.
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 nogui)
          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

main

public static void main(java.lang.String[] argv)

generateModel

public static KnowledgeModel generateModel()
Generates a new KnowledgeModel for a simple car-start problem domain.


displayModel

public static void displayModel(KnowledgeModel km,
                                boolean nogui)
Takes an already created model and displays the cases and entities of the model in different ways.


saveModel

public static void saveModel(KnowledgeModel model,
                             java.lang.String filename)
Exampel of saving the given model to disk.


loadModel

public static KnowledgeModel loadModel(java.lang.String filename)
Example of loading a KnowledgeModel from disk.


solveCBR

public static void solveCBR(KnowledgeModel km,
                            boolean nogui)
Example of the jCreek CBR mechanism (jcreek.reasoning) and some GUI elements displaying the process.



Created at IDI, NTNU by the Artificial Intelligence and Learning group