I am running process planning application and I have an error.

I create shadow fact for my hole class.
I would like to modify fact and object from Jess. Apparently I can not do that. Here is a session:


Jess, the Java Expert System Shell

Copyright (C) 2001 E.J. Friedman Hill and the Sandia Corporation

Jess Version 6.1p5 9/5/2003

Jess> (batch J:/user/delphi-project/project2003/JessDelphi/load-delphi.clp)
TRUE

Jess> (watch all)
TRUE

Jess> (reset)
 ==> Focus MAIN

 ==> f-0 (MAIN::initial-fact)

 ==> f-1 (MAIN::ProcessCapability (class <External-Address:java.lang.Class>) (feature nil) (name "edu.ohiou.implanner.processes.TwistDrilling") (nextProcessList <External-Address:java.util.ArrayList>) (process nil) (propTable <External-Address:edu.ohiou.implanner.table.PropertyTable>) (OBJECT <External-Address:edu.ohiou.implanner.processes.ProcessCapability>))

 ==> f-2 (MAIN::Hole (applet nil) (appletSize <External-Address:java.awt.Dimension>) (axis <External-Address:javax.vecmath.Vector3d>) (axisPoint <External-Address:javax.vecmath.Point3d>) (blindHole TRUE) (bottom 9.77) (bottomDist 9.77) (class <External-Address:java.lang.Class>) (className "Hole") (color nil) (displayMode 0) (drawList <External-Address:java.util.LinkedList>) (featureName nil) (featureSolid nil) (featureTag 0) (guiObject nil) (holeAxis <External-Address:javax.vecmath.Vector3d>) (interactingFeatures <External-Address:java.util.HashSet>) (machines <External-Address:java.util.LinkedList>) (mayBeMachinedBy <External-Address:java.util.ArrayList>) (next <External-Address:java.util.LinkedList>) (panel nil) (panelLocation 0) (panelOrientation 0) (partFeature nil) (partModel nil) (pointOnAxis <External-Address:javax.vecmath.Point3d>) (pointSet <External-Address:java.util.LinkedList>) (processes <External-Address:java.util.LinkedList>) (radius 5.5) (solidTag 0) (stringList <External-Address:java.util.LinkedList>) (target <External-Address:edu.ohiou.implanner.features.Hole>) (tolerances <External-Address:edu.ohiou.implanner.table.PropertyTable>) (tree <External-Address:javax.swing.tree.DefaultMutableTreeNode>) (OBJECT <External-Address:edu.ohiou.implanner.features.Hole>))

==> Activation: MAIN::assignHoleMakingProcesses :  f-2,,

 ==> f-3 (MAIN::ProcessCapability (class <External-Address:java.lang.Class>) (feature nil) (name "edu.ohiou.implanner.processes.SpotDrilling") (nextProcessList <External-Address:java.util.ArrayList>) (process nil) (propTable <External-Address:edu.ohiou.implanner.table.PropertyTable>) (OBJECT <External-Address:edu.ohiou.implanner.processes.ProcessCapability>))

TRUE

Jess> (fact-slot-value (fact-id 2) radius)
5.5

Jess> (modify (fact-id 2) (radius 8.0
 ) )<Fact-2>

Jess> (fact-slot-value (fact-id 2) radius)
5.5

Jess> (call (fact-slot-value (fact-id 2) OBJECT) getRadius)
8.0

Jess>


Another related question. If I use shadow facts, and then Assert them in RHS of the rule, is corresponding java object created autoimatically?

Dusan Sormaz

***************************************************************************
* Du�an �ormaz, PhD, Associate Professor                     
* Ohio University
* Industrial and Manufacturing Systems Engineering Department
* 277 Stocker Center, Athens, OH 45701-2979
* phone: (740) 593-1545
* fax:   (740) 593-0778 
* e-mail: [EMAIL PROTECTED]
* url: http://www.ent.ohiou.edu/~sormaz
***************************************************************************

Reply via email to