MAS console output

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MAS console output

Kenefosa
Hi Jomi

About output on MAS console:
1) is there any mean to stop the names of agent appearing on the MAS console when they display there message/output?
2) can Jason be run as plugin on some Internet tools such as Moodle to display output from the MAS console?. Can you please direct? 

Thank you.

Ken


Sent from my iPhone

On 4 Aug 2014, at 13:28, "Jomi Hubner [via jason]" <[hidden email]> wrote:

Hi,

indeed it seems all fine. Did you realize that the insert uses "Flour" (with upper case) while the query uses "flour"? 

HTH,

Jomi

On 20/07/2014, at 12:05, P Marionya <[hidden email]> wrote:

Hi Jomi,

I have setup the following example in eclipse with two agents sample agent and dbmanager.  The example is supposed to insert item records into the item table and query and display the id of the inserted record.  Insert works right but query doesnt work.  Where am I getting it wrong?

Below attached find the agents.

I appreciate your help upfront.

Patrick.

//mas2j

MAS helloworld {

infrastructure: Centralised

agents:
dbmanager2
beliefBaseClass jason.bb.JDBCPersistentBB(
      "org.hsqldb.jdbcDriver", // driver for HSQLDB
      "jdbc:hsqldb:logplan", // URL connection
      "sa", // user
      "", // password
      "[operation(7,operation,columns(id(integer),name(varchar(30)),location(varchar(30)),country(varchar(30)),force_id(integer),duration(integer),start_date(varchar(30)))),item(4,item,columns(id(integer),name(varchar(30)),typid(integer),unitid(integer))),force_structure(4,force_structure,columns(id(integer),name(varchar(30)),f_size(varchar(30)))),force_item_req(4,force_item_req,columns(id(integer),f_id(integer),item_id(integer),quantity(float))),item_type(2,item_type,columns(id(integer),name(varchar(30)))),supplier_item(5,supplier_item,columns(id(integer),sup_id(integer),item_id(integer),unit_price(float),quantity(float))),unit(3,unit,columns(id(integer),name(varchar(30)),abbrev(varchar(30)))),supplier(7,supplier,columns(id(integer),name(varchar(30)),location(varchar(30)),address(varchar(50)),city(varchar(30)),phone(varchar(30)),email(varchar(30)))),supplier_bank_info(7,supplier_bank_info,columns(id(integer),sup_id(integer),bank(varchar(30)),branch(varchar(30)),acc_name(varchar(30)),accno(varchar(30)),currency(varchar(30)))),supplier_rep(8,supplier_rep,columns(id(integer),sup_id(integer),name(varchar(30)),title(varchar(30)),email(varchar(30)),phone(varchar(30)),address(varchar(40)),city(varchar(30))))]");
     
agent1 sample_agent;

aslSourcePath:
"src/asl";
}

//sample agent

// Agent sample_agent in project helloworld

/* Initial beliefs and rules */

/* Initial goals */

!start.

/* Plans */

+!start : true <- .print("hello world.");
.send(dbmanager2,tell,item(1,"Flour",1,1));
.print("Inserted");
.send(dbmanager2,askOne,find_item("flour",M),find_item("flour",M));
.print(M).



//dbmanager agent

/* Initial beliefs and rules */
find_by_title(Stext,Id)
    :-  item(Id,Name,_,_) &
        .substring(Stext,Name).

/* Initial goals */



/* Plans */
+!item(Id,Name,Ig,Ik).


+?find_item(J,L)
<- .findall(CA,find_by_title(J,CA),L);
//.print(J);
.print(L).
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users

-- 
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florianópolis, SC
88040-900 Brazil


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users



If you reply to this email, your message will be added to the discussion below:
http://jason.2324890.n4.nabble.com/Belief-Base-retrieval-error-tp758p759.html
To start a new topic under jason-users, email [hidden email]
To unsubscribe from jason-users, click here.
NAML