Subject: Send an Agentaction with a pointer on an Concept instance
From: Khalil Zahouani (kza@whitestein.com)
Date: Thu Jan 30 2003 - 11:35:53 MET
Hi Guys ,
Does anyone of you know how to send an AgentAction which has a pointer
on an concept instance
thanks for your help
khalil
this is what i did:
public Connection conn = new Connection; //Connection is a Concept
public Reserv_Connection resCon = new Reserv_Connection;//Res_conn is an
Agentaction
conn.setdata("...");
resCon.setConnection(conn);//Reserv_Connection has two methods set and
getConnection which get and set and instance of connection
//////////jade.content.onto.basic.Action
Action action = new Action();
action.setActor(receiver);
action.setAction(resCon);
//need a content Element for the ACL message
ContentElementList content = new ContentElementList();
content.add(action);
try{
//msg.setContent();
getContentManager().fillContent(msg, content);
send(msg);
}catch(Exception e){e.printStackTrace();}
in the receiver i got the Resev_Connection but when i try to get also
the instance of connection which is pointed by Reserv_COnnection, i got
NullpointerException
This archive was generated by hypermail 2a22 : Thu Jan 30 2003 - 11:33:37 MET