Hi,

I've noticed that when I stick symbols into slots and later query for
their value via getSymbol, I end up extracting Strings, which causes
problems in my rule matching logic.

I'd expect to get back whatever I put in, what am I missing ?


Here some supporting code fragments, with the idtag slot on c_sm_service
coming back as a string

(deftemplate WORLD
   (declare (slot-specific TRUE))
  (slot idtag)
  (slot name (type STRING))
)

and c_sm_service inherits it from WORLD.

(defquery get-sm-id-given-aphid
    "gets the id of an sm given the idtag of its ap host"
    (declare (variables ?apHid))
    (WFACT::c_host (idtag ?apHid) (in_zone ?quad))
    (WFACT::c_sm_service (runs_on_host ?smHid) (idtag ?id))
    (WFACT::c_host (idtag ?smHid) (in_zone ?quad)))

(bind ?res (run-query* UTILS::get-sm-id-given-aphid ?x))
(?res next)
(bind ?smId (?res getSymbol id))


--
Michael Atighetchi  [EMAIL PROTECTED]  BBN Technologies


--------------------------------------------------------------------
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