I am very new to JESS and JAVA. When I assert a string as shown below It
is not asserted as shown in the following output from watch facts.
Because the printout works I assume that there are no syntax errors.
When I try to write a rule that uses PSN, it never fires.  Any help
would be appreciated.
[Jess Version 6.0 12/7/2001]
Jeff Ruff
ChipData

<*** partial listing of data passed from Java program to Jess
program***>
(assert (courtYardexcess (fetch CourtyardExcess)))
   (bind ?courtYardexcess (fetch CourtyardExcess)) 
(assert (roundOfffactor (fetch RoundOffFactor)))
   (bind ?roundOfffactor (fetch RoundOffFactor))  
(assert (pinTodrill (fetch PinToDrill)))
   (bind ?pinTodrill (fetch PinToDrill))          

<****Partial listing of JESS program***>
(bind ?pos13 1)
(if(eq (fetch pkgShape) circle)
   then
       (assert (PSN (str-cat ?pos1 ?pos2 ?pos3 ?pos4-11 ?pos12 ?pos13)))
<<<<<<<<<<<<<<<<<<<<<<failing assertion
       (bind ?padstack-name (str-cat ?pos1 ?pos2 ?pos3 ?pos4-11 ?pos12
?pos13))
   else
       (assert (PSN (str-cat ?pos1 ?pos2 ?pos3 ?pos4-8 ?pos9-11 ?pos12
?pos13)))
       (bind ?padstack-name (str-cat ?pos1 ?pos2 ?pos3 ?pos4-8 ?pos9-11
?pos12 ?pos13))
   )
(store PadStackName ?padstack-name)
(printout t (fetch PadStackName) crlf)

<***** Partial output from watch*****>
f-39   (MAIN::courtYardexcess 0.25)
f-40   (MAIN::roundOfffactor 0.05)
f-41   (MAIN::pinTodrill 0.025)
For a total of 42 facts.
Setting rules in group rules
using code th pkgShape circle mask 0.1
Circular pad that is not a bga found
Drill Diameter is 580000.0
Top Pad Diameter is 1620000.0
Top Mask Diameter is 1820000.0
Internal Pad Diameter is 1620000.0
Internal Clearance Diameter is 1820000.0
Bottom Pad Diameter is 1620000.0
Bottom Clearance Diameter is 1720000.0
Creating Padstack Name
<<<<<<<<<<<<<<no assertion of fact found
tpm1620d1
<<<<<<<<<<<<< output from printout t (fetch PadStackName) crlf

<**************Rule in question*******************>
(defrule add-pad-to-jdb
(PSN ?psn)
=>
(printout t "Updating JDB for PadStack Information" crlf)
<<<<<<<<<<<<<<<<<<<<never printed so I assume never fired.
)

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to