Metehan PATACI
2014-04-18 11:58:09 UTC
Hi,
I want to create a distributed environment by using JADE agents. I created
main container at PC-1 and I created Container-1 at PC-2. Why I see that
Conta?ner-1 agents all have same IP address which is PC-1's address.
I want to create Container-1 agents with PC-2 IP address. Is this state
JADE's normal behaviour or am I doing something wrong? I am confused about
where PC-2 agents live where my datas locating. I want to locate my datas at
local computer agent.
My code :
private String DOSERVER_MAIN_HOST = Main-Container's IP address which is
PC-1
private String DOSERVER_MAIN_PORT = "8850";
private String DOSERVER_LOCAL_HOST = null;
private String DOSERVER_LOCAL_PORT = "8850";
Runtime rt = Runtime.instance();
rt.setCloseVM(true);
ProfileImpl pContainer = new ProfileImpl(false);
pContainer.setParameter(Profile.MAIN_HOST, DOSERVER_MAIN_HOST);
pContainer.setParameter(Profile.MAIN_PORT, DOSERVER_MAIN_PORT);
pContainer.setParameter(Profile.LOCAL_HOST, DOSERVER_LOCAL_HOST);
pContainer.setParameter(Profile.LOCAL_PORT, DOSERVER_LOCAL_PORT);
AgentContainer cont = rt.createAgentContainer(pContainer);
Thanks for help.
Kind regards.
Metehan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140418/ad1bf1fe/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 77914 bytes
Desc: not available
URL: <Loading Image...
>
I want to create a distributed environment by using JADE agents. I created
main container at PC-1 and I created Container-1 at PC-2. Why I see that
Conta?ner-1 agents all have same IP address which is PC-1's address.
I want to create Container-1 agents with PC-2 IP address. Is this state
JADE's normal behaviour or am I doing something wrong? I am confused about
where PC-2 agents live where my datas locating. I want to locate my datas at
local computer agent.
My code :
private String DOSERVER_MAIN_HOST = Main-Container's IP address which is
PC-1
private String DOSERVER_MAIN_PORT = "8850";
private String DOSERVER_LOCAL_HOST = null;
private String DOSERVER_LOCAL_PORT = "8850";
Runtime rt = Runtime.instance();
rt.setCloseVM(true);
ProfileImpl pContainer = new ProfileImpl(false);
pContainer.setParameter(Profile.MAIN_HOST, DOSERVER_MAIN_HOST);
pContainer.setParameter(Profile.MAIN_PORT, DOSERVER_MAIN_PORT);
pContainer.setParameter(Profile.LOCAL_HOST, DOSERVER_LOCAL_HOST);
pContainer.setParameter(Profile.LOCAL_PORT, DOSERVER_LOCAL_PORT);
AgentContainer cont = rt.createAgentContainer(pContainer);
Thanks for help.
Kind regards.
Metehan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140418/ad1bf1fe/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 77914 bytes
Desc: not available
URL: <Loading Image...