I wish activate a behavior of agent from jess.

Exemple : 

My class Agent
public class Test1 extends Agent{
        protected void setup() {

               System.out.println ("Agent " + getLocalName()+ " I am here

               Rete engine = new Rete();
                        try {
                                Value v = 
engine.executeCommand("(assert(ACLMessage(contenu A)))");
                        } catch (JessException e) {
                                // TODO Auto-generated catch block

        public class MyAction extends OneShotBehaviour {

                public void action() {
                        // TODO Auto-generated method stub

                             System.out.println ("Agent " + getLocalName()+
" I am here ");

My file ex.clp
(deftemplate ACLMessage  (slot contenu))
(defrule test (ACLMessage (contenu A)) => [// i wish activate behaviour
MyAction Defined in Agent java  for excute instructions//])

Please Help me.

View this message in context: 
Sent from the Jess mailing list archive at Nabble.com.

To unsubscribe, send the words 'unsubscribe jess-users y...@address.com'
in the BODY of a message to majord...@sandia.gov, NOT to the list
(use your own address!) List problems? Notify owner-jess-us...@sandia.gov.

Reply via email to