<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>AgentScape Forum</title>
<link>http://www.agentscape.org/forums</link>
<description> AgentScape Forum</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title>New release AgentScape 2 Milestone 3 in AgentScape : Announcements</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=371#371</link>
<guid isPermaLink="false">371@http://www.agentscape.org/forums</guid>
<description>A new release of AgentScape has just been released: Agentscape 2 Milestone 3 (r5088).You can download this release from the sidebar or from the downloads page.This 'Milestone 3' version includes bug fixes &#38; updates to the core middleware, as well as a number of new &#38; improved features such as Web Service Gateway, a new configuration mechanism, and initial support for security mechanisms. For more information about the updates, see here.This release is not compatible with AgentScape 0.9.x.&#160; A summary of some of the main changes are:&#160; - Web-Service Gateway&#160; - Distributed Naming and Directory service&#160; - Security Architecture&#160; - XML-based AgentScape configuration mechanism &#160; - New AgentScape administration API&#160; - Bug-fixes and documentationYou can download this release from the sidebar or from the downloads page.

</description>
<content:encoded><![CDATA[<p>A new release of AgentScape has just been released: Agentscape 2 Milestone 3 (r5088).<br />You can download this release from the sidebar or from the downloads page.<br /><br />This 'Milestone 3' version includes bug fixes &amp; updates to the core middleware, as well as a number of new &amp; improved features such as Web Service Gateway, a new configuration mechanism, and initial support for security mechanisms. For more information about the updates, see <a href="http://www.agentscape.org/development">here</a>.<br /><br /><br />This release is not compatible with AgentScape 0.9.x.&nbsp; <br /><br />A summary of some of the main changes are:<br /><br />&nbsp; - Web-Service Gateway<br />&nbsp; - Distributed Naming and Directory service<br />&nbsp; - Security Architecture<br />&nbsp; - XML-based AgentScape configuration mechanism <br />&nbsp; - New AgentScape administration API<br />&nbsp; - Bug-fixes and documentation<br /><br />You can download this release from the sidebar or from the downloads page.</p>]]></content:encoded>
<pubDate>Mon, 02 May 2011 11:31:12 +0200</pubDate>
</item>
<item>
<title>Getting the instance of an agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=360#360</link>
<guid isPermaLink="false">360@http://www.agentscape.org/forums</guid>
<description>My project is creating a web application, which provides information, dynamically from a number of sources.The reason of using AgentScape, was the data collection and processing seemed to fit well into agents.However, there didn't seem to be a good way to deliver this information to a web-page: Servlets provide a web-interface for an agent, but I need an agent to serve the entire web application: multiple pages, and I wanted the urls of these pages to be relatively intuitive for the user, and the existence of the agents to be invisible.The Play! framework provides a REST interface and an MVC structure for web applications. This seemed to fit well, as the agents can then simply serve the data to the framework, to generate the models, and then create the web pages from these models.As a result, Play! has effectively become a manager within my system, which creates agents to collect, serve and process information. It then communicates with these agents, getting them to perform tasks (such as storing data), and gets responses from them (such as models).At the moment, using the AgentScapeApi, this is all working fine, however the desire is that the Play! component of my application could be incorporated into AgentScape (or vice-versa), so that they could be installed as one.Furthermore, by having it as a service, it would become location independent, and, theoretically, we could have multiple instances of the Play! server, to distribute load, if it had to deal with many requests.The issue, however, is Services do not fit well with my overall structure, as this component has become more of a manager; creating agents and communicating with them. Could all this be achieved by somehow making it an agent, that happens to have a REST interface to the web? Or is there another way? Or is it simply not going to be possible to combine these 2 components any more than using the AgentScapeApi?Many ThanksSam

</description>
<content:encoded><![CDATA[<p>My project is creating a web application, which provides information, dynamically from a number of sources.<br /><br />The reason of using AgentScape, was the data collection and processing seemed to fit well into agents.<br /><br />However, there didn't seem to be a good way to deliver this information to a web-page: Servlets provide a web-interface for an agent, but I need an agent to serve the entire web application: multiple pages, and I wanted the urls of these pages to be relatively intuitive for the user, and the existence of the agents to be invisible.<br /><br />The Play! framework provides a REST interface and an MVC structure for web applications. This seemed to fit well, as the agents can then simply serve the data to the framework, to generate the models, and then create the web pages from these models.<br /><br />As a result, Play! has effectively become a manager within my system, which creates agents to collect, serve and process information. It then communicates with these agents, getting them to perform tasks (such as storing data), and gets responses from them (such as models).<br /><br />At the moment, using the AgentScapeApi, this is all working fine, however the desire is that the Play! component of my application could be incorporated into AgentScape (or vice-versa), so that they could be installed as one.<br /><br />Furthermore, by having it as a service, it would become location independent, and, theoretically, we could have multiple instances of the Play! server, to distribute load, if it had to deal with many requests.<br /><br />The issue, however, is Services do not fit well with my overall structure, as this component has become more of a manager; creating agents and communicating with them. <br /><br />Could all this be achieved by somehow making it an agent, that happens to have a REST interface to the web? Or is there another way? Or is it simply not going to be possible to combine these 2 components any more than using the AgentScapeApi?<br /><br />Many Thanks<br /><br />Sam</p>]]></content:encoded>
<pubDate>Fri, 11 Mar 2011 16:19:10 +0100</pubDate>
</item>
<item>
<title>Getting the instance of an agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=359#359</link>
<guid isPermaLink="false">359@http://www.agentscape.org/forums</guid>
<description>Hello Sam,the reasons why servlets are able to work with information from the instance of the agent is that we especially made the service this way. But this wasn't exactly easy to do (it involved a number of callbacks from service -&#62; agent). Still, it is possible to do so.If you can create a service which serves your agents with information (models, etc) which can be obtained by an agent on demand (request-response) this is a lot easier, provided these models can be easily copied from one JVM to another.Personally I also do not know much about the Play! framework, but it seems interesting. Maybe you could elaborate more on what your ideas about the application structure and functionality are? I am not entirely sure how Play! and AgentScape would be able to interact. What are your ideas about this?Cheers,Reinier

</description>
<content:encoded><![CDATA[<p>Hello Sam,<br /><br />the reasons why servlets are able to work with information from the instance of the agent is that we especially made the service this way. But this wasn't exactly easy to do (it involved a number of callbacks from service -&gt; agent). Still, it is possible to do so.<br /><br />If you can create a service which serves your agents with information (models, etc) which can be obtained by an agent on demand (request-response) this is a lot easier, provided these models can be easily copied from one JVM to another.<br /><br />Personally I also do not know much about the Play! framework, but it seems interesting. Maybe you could elaborate more on what your ideas about the application structure and functionality are? I am not entirely sure how Play! and AgentScape would be able to interact. What are your ideas about this?<br /><br />Cheers,<br />Reinier</p>]]></content:encoded>
<pubDate>Tue, 08 Mar 2011 15:10:57 +0100</pubDate>
</item>
<item>
<title>Can't send or receive messages directly after injecting agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=358#358</link>
<guid isPermaLink="false">358@http://www.agentscape.org/forums</guid>
<description>I have found out the problem.In my agent I do;URL url = new URL(this.getArgs()[1]);InputStream stream = url.openStream();Thus I created the deadlock myself: the server is blocking, receiving a message, and the client is blocking, trying to get the xml from the server.Thanks for your helpSam

</description>
<content:encoded><![CDATA[<p>I have found out the problem.<br /><br />In my agent I do;<br /><br />URL url = new URL(this.getArgs()[1]);<br />InputStream stream = url.openStream();<br /><br />Thus I created the deadlock myself: the server is blocking, receiving a message, and the client is blocking, trying to get the xml from the server.<br /><br />Thanks for your help<br /><br />Sam</p>]]></content:encoded>
<pubDate>Tue, 01 Mar 2011 15:09:30 +0100</pubDate>
</item>
<item>
<title>Can't send or receive messages directly after injecting agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=356#356</link>
<guid isPermaLink="false">356@http://www.agentscape.org/forums</guid>
<description>Hi Sam,I don't know how you start your agents, but this works for me with AgentScape2:(forgive me the bad coding :-) )

Code:public class Main extends Agent {

    public static void main(String[] args) throws Exception {

        AgentScapeApi api = AgentScapeClient.getAgentScapeClient();

        Class2Jar c2j = new Class2Jar();
        c2j.add( Main.class );

        byte[] jar = c2j.getJar();

        AgentArchive aa = AgentArchive.fromJar(jar);

        AgentInfo info = api.startAgent( new AgentScapeID(&#34;loc&#34;), aa);

        System.out.println(&#34;Waiting for message&#34;);
        Envelope e = api.receiveMessage(info.getOwnerHandle(), true);
        System.out.println(&#34;Got message &#34; + e.getData());

        System.out.println(&#34;Sending message&#34;);
        Envelope e2 = new Envelope( info.getPrimaryHandle(), info.getOwnerHandle(), &#34;stop message&#34; );
        api.sendMessage(e2);
        System.out.println(&#34;Done sending message &#34; );
    }

    @Override
    public void run() {

        Envelope e = new Envelope( getOwnerHandle(), getPrimaryHandle(), &#34;test message&#34;);
        try {
            System.out.println(&#34;Agent: Sending message&#34;);
            this.sendMessage(e);

            System.out.println(&#34;Agent Waiting for message&#34;);

            e = this.receiveMessage(true);

            System.out.println(&#34;Agent Got message &#34; + e.getData() + &#34; ... quitting&#34;);
        } catch (Exception ex) {
            System.err.println(&#34;Error sending message &#34; + ex);
        }
    }
}

Compile this code into one jar file.Then start up a location called &#34;loc&#34;: 

Code:java -jar lib/asstartup.jar loc

Then run your jarfile with java -jar (and set your classpath if necessary)Bye,Michel

</description>
<content:encoded><![CDATA[<p>Hi Sam,<br /><br />I don't know how you start your agents, but this works for me with AgentScape2:<br />(forgive me the bad coding :-) )<br /><br /></p><div class="codebox"><div class="incqbox"><h4>Code:</h4><div class="scrollbox" style="height: 35em"><pre>public class Main extends Agent {

    public static void main(String[] args) throws Exception {

        AgentScapeApi api = AgentScapeClient.getAgentScapeClient();

        Class2Jar c2j = new Class2Jar();
        c2j.add( Main.class );

        byte[] jar = c2j.getJar();

        AgentArchive aa = AgentArchive.fromJar(jar);

        AgentInfo info = api.startAgent( new AgentScapeID(&quot;loc&quot;), aa);

        System.out.println(&quot;Waiting for message&quot;);
        Envelope e = api.receiveMessage(info.getOwnerHandle(), true);
        System.out.println(&quot;Got message &quot; + e.getData());

        System.out.println(&quot;Sending message&quot;);
        Envelope e2 = new Envelope( info.getPrimaryHandle(), info.getOwnerHandle(), &quot;stop message&quot; );
        api.sendMessage(e2);
        System.out.println(&quot;Done sending message &quot; );
    }

    @Override
    public void run() {

        Envelope e = new Envelope( getOwnerHandle(), getPrimaryHandle(), &quot;test message&quot;);
        try {
            System.out.println(&quot;Agent: Sending message&quot;);
            this.sendMessage(e);

            System.out.println(&quot;Agent Waiting for message&quot;);

            e = this.receiveMessage(true);

            System.out.println(&quot;Agent Got message &quot; + e.getData() + &quot; ... quitting&quot;);
        } catch (Exception ex) {
            System.err.println(&quot;Error sending message &quot; + ex);
        }
    }
}</pre></div></div></div><p>Compile this code into one jar file.<br /><br />Then start up a location called &quot;loc&quot;: <br /><br /></p><div class="codebox"><div class="incqbox"><h4>Code:</h4><div class="scrollbox" style="height: 4.5em"><pre>java -jar lib/asstartup.jar loc</pre></div></div></div><p>Then run your jarfile with java -jar (and set your classpath if necessary)<br /><br />Bye,<br />Michel</p>]]></content:encoded>
<pubDate>Mon, 28 Feb 2011 15:34:09 +0100</pubDate>
</item>
<item>
<title>Getting the instance of an agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=355#355</link>
<guid isPermaLink="false">355@http://www.agentscape.org/forums</guid>
<description>Hi Sam,I'm afraid I don't know the Play! component so my help is maybe of little use.I'll have a talk with Reinier about this as well, and then get back to you.Bye,Michel

</description>
<content:encoded><![CDATA[<p>Hi Sam,<br /><br />I'm afraid I don't know the Play! component so my help is maybe of little use.<br />I'll have a talk with Reinier about this as well, and then get back to you.<br /><br />Bye,<br />Michel</p>]]></content:encoded>
<pubDate>Mon, 28 Feb 2011 14:42:39 +0100</pubDate>
</item>
<item>
<title>Getting the instance of an agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=354#354</link>
<guid isPermaLink="false">354@http://www.agentscape.org/forums</guid>
<description>Any thoughts on this?Many ThanksSam

</description>
<content:encoded><![CDATA[<p>Any thoughts on this?<br /><br />Many Thanks<br /><br />Sam</p>]]></content:encoded>
<pubDate>Mon, 28 Feb 2011 12:48:38 +0100</pubDate>
</item>
<item>
<title>Can't send or receive messages directly after injecting agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=353#353</link>
<guid isPermaLink="false">353@http://www.agentscape.org/forums</guid>
<description>Hi There,I am having a problem, when I try and inject an agent in code, and the receive a message. Not only does it fail to receive the message, but the agent is not actually injected. However there are no exceptions; it just hangs.I have tried doing Thread.sleep, but this seems to delay the injection of the agent, even though I am sleeping after .startAgent(...The only method I have found to overcome this is by putting one of the methods in another thread, but then calling thread.join() causes the issue to appear again.The same problem occurs if I try and inject and then send an agent.It seems like the 2 calls (to agentScapeApi) are conflicting and somehow conflicting with Thread.sleep too.Any help would be much appreciated

</description>
<content:encoded><![CDATA[<p>Hi There,<br /><br />I am having a problem, when I try and inject an agent in code, and the receive a message. Not only does it fail to receive the message, but the agent is not actually injected. However there are no exceptions; it just hangs.<br /><br />I have tried doing Thread.sleep, but this seems to delay the injection of the agent, even though I am sleeping after .startAgent(...<br /><br />The only method I have found to overcome this is by putting one of the methods in another thread, but then calling thread.join() causes the issue to appear again.<br /><br />The same problem occurs if I try and inject and then send an agent.<br /><br />It seems like the 2 calls (to agentScapeApi) are conflicting and somehow conflicting with Thread.sleep too.<br /><br />Any help would be much appreciated</p>]]></content:encoded>
<pubDate>Sat, 26 Feb 2011 22:14:46 +0100</pubDate>
</item>
<item>
<title>source code in AgentScape : General Discussion</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=352#352</link>
<guid isPermaLink="false">352@http://www.agentscape.org/forums</guid>
<description>Thanks for the support.0.9.3 installer works just fine.

</description>
<content:encoded><![CDATA[<p>Thanks for the support.<br />0.9.3 installer works just fine.</p>]]></content:encoded>
<pubDate>Sat, 26 Feb 2011 10:50:31 +0100</pubDate>
</item>
<item>
<title>Getting the instance of an agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=351#351</link>
<guid isPermaLink="false">351@http://www.agentscape.org/forums</guid>
<description>Hi Michel,Thanks for the quick response.Yes, I realise that wanting direct access to the agent was wrong; I had just been looking at servlets and wanted the same direct access in Play! Using messages will indeed be fine. I imagine only needing copies of the models, or sending requests to update, so simple messaging will be OK, potentially with method-invocation.After discussing this issue with Julian, we were considering the possibility of making this Play! component into a Service, as it will effectively become a 'manager', creating, maintaining and communicating with agents (using the AgentScapeApi). This would enable it to be installed as part of AgentScape and would potentially allow multiple Play! Services at different Locations, linked by the Location Manager.Do you have any thoughts/advice on if this seems like a sensible idea?Many ThanksSam

</description>
<content:encoded><![CDATA[<p>Hi Michel,<br /><br />Thanks for the quick response.<br /><br />Yes, I realise that wanting direct access to the agent was wrong; I had just been looking at servlets and wanted the same direct access in Play! Using messages will indeed be fine. I imagine only needing copies of the models, or sending requests to update, so simple messaging will be OK, potentially with method-invocation.<br /><br />After discussing this issue with Julian, we were considering the possibility of making this Play! component into a Service, as it will effectively become a 'manager', creating, maintaining and communicating with agents (using the AgentScapeApi). This would enable it to be installed as part of AgentScape and would potentially allow multiple Play! Services at different Locations, linked by the Location Manager.<br /><br />Do you have any thoughts/advice on if this seems like a sensible idea?<br /><br />Many Thanks<br />Sam</p>]]></content:encoded>
<pubDate>Thu, 17 Feb 2011 17:11:56 +0100</pubDate>
</item>
<item>
<title>Getting the instance of an agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=350#350</link>
<guid isPermaLink="false">350@http://www.agentscape.org/forums</guid>
<description>Hi Sam,The idea of agents is that they are autonomous, so there is a reason why you cannot get a directreference to the Agent instance itself. You only get its handle, so you can sent messages (requests)to the Agent who can then reply on your request.So, one way to get the models is to use the owner handle and primary handle you get when you createthe agent to sent it a request and the agent can then sent the model back to the caller.However, this way you will not get `direct' access to the models inside the agent, so if you needto manipulate the models directly (and not just get a copy of the model) then you need something else.One way would be to use servlets to access/update the models, or you could implement a moreelaborate request/reply mechanism using the messages you can sent to agents. In fact you would implementa kind of method-invocation over AgentScape messages, which is what agents already use in the form ofthe AgentProxy mechanism.Hope this helps you out a little more.Bye,Michel

</description>
<content:encoded><![CDATA[<p>Hi Sam,<br /><br />The idea of agents is that they are autonomous, so there is a reason why you cannot get a direct<br />reference to the Agent instance itself. You only get its handle, so you can sent messages (requests)<br />to the Agent who can then reply on your request.<br /><br />So, one way to get the models is to use the owner handle and primary handle you get when you create<br />the agent to sent it a request and the agent can then sent the model back to the caller.<br /><br />However, this way you will not get `direct' access to the models inside the agent, so if you need<br />to manipulate the models directly (and not just get a copy of the model) then you need something else.<br /><br />One way would be to use servlets to access/update the models, or you could implement a more<br />elaborate request/reply mechanism using the messages you can sent to agents. In fact you would implement<br />a kind of method-invocation over AgentScape messages, which is what agents already use in the form of<br />the AgentProxy mechanism.<br /><br />Hope this helps you out a little more.<br />Bye,<br />Michel</p>]]></content:encoded>
<pubDate>Thu, 17 Feb 2011 16:42:25 +0100</pubDate>
</item>
<item>
<title>Getting the instance of an agent in AgentScape : Trouble Shooting</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=349#349</link>
<guid isPermaLink="false">349@http://www.agentscape.org/forums</guid>
<description>Hi ThereI am developing a web application using AgentScape and the Play! framework (an MVC model).Currently, when a user hits the root of my application, an agent is dynamically created to serve that client. The aim is that this agent will generate the Models required for the agent, given their context and information in an RDF database. These models could then be accessed by the controllers within the main application, and used to generate the html and json views.The problem however, is when I programatically inject my agent, I am only given its handle; not the instance of that agent. As a result, I have no way to access the models held within that agent.Is there any way around this?(I ideally want to avoid servlets, so that the urls for the application are more user friendly, and feel that the MVC model is a good solution to presenting the data held within the agent)Many Thanks

</description>
<content:encoded><![CDATA[<p>Hi There<br /><br />I am developing a web application using AgentScape and the Play! framework (an MVC model).<br /><br />Currently, when a user hits the root of my application, an agent is dynamically created to serve that client. The aim is that this agent will generate the Models required for the agent, given their context and information in an RDF database. These models could then be accessed by the controllers within the main application, and used to generate the html and json views.<br /><br />The problem however, is when I programatically inject my agent, I am only given its handle; not the instance of that agent. As a result, I have no way to access the models held within that agent.<br /><br />Is there any way around this?<br /><br />(I ideally want to avoid servlets, so that the urls for the application are more user friendly, and feel that the MVC model is a good solution to presenting the data held within the agent)<br /><br />Many Thanks</p>]]></content:encoded>
<pubDate>Wed, 16 Feb 2011 18:22:22 +0100</pubDate>
</item>
<item>
<title>source code in AgentScape : General Discussion</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=346#346</link>
<guid isPermaLink="false">346@http://www.agentscape.org/forums</guid>
<description>Hi Mike,The sources are included in the 0.9.3 installer jar, available from the agentscape website.Just run the installer: java -jar AgentScape-0.9.3.jarand select the option to install the sources when asked.Bye,Michel

</description>
<content:encoded><![CDATA[<p>Hi Mike,<br /><br />The sources are included in the 0.9.3 installer jar, available from the agentscape website.<br />Just run the installer: java -jar AgentScape-0.9.3.jar<br />and select the option to install the sources when asked.<br /><br />Bye,<br />Michel</p>]]></content:encoded>
<pubDate>Wed, 09 Feb 2011 11:05:57 +0100</pubDate>
</item>
<item>
<title>source code in AgentScape : General Discussion</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=345#345</link>
<guid isPermaLink="false">345@http://www.agentscape.org/forums</guid>
<description>I note that the 0.9.3 release includes no source code.&#160; Is the source available?Thanks,--Mike

</description>
<content:encoded><![CDATA[<p>I note that the 0.9.3 release includes no source code.&nbsp; Is the source available?<br /><br />Thanks,<br />--Mike</p>]]></content:encoded>
<pubDate>Wed, 09 Feb 2011 01:54:38 +0100</pubDate>
</item>
<item>
<title>Monitoring Agent Interactions in AgentScape : General Discussion</title>
<link>http://www.agentscape.org/forums/viewtopic.php?pid=344#344</link>
<guid isPermaLink="false">344@http://www.agentscape.org/forums</guid>
<description>Okay, sure thing.&#160; Thanks Michel.

</description>
<content:encoded><![CDATA[<p>Okay, sure thing.&nbsp; Thanks Michel.</p>]]></content:encoded>
<pubDate>Mon, 31 Jan 2011 23:11:23 +0100</pubDate>
</item>
</channel>
</rss>

