pass arguments to an agent


Subject: pass arguments to an agent
From: Kaizhi Tang (kxt179@psu.edu)
Date: Sat Sep 07 2002 - 22:28:57 MET DST


I am trying to pass a few parameters to an agent. Why the agent can not be started?

This is my command:

java jade.Boot -gui company:jadeapp.procure.JADECompanyAgent(1 3)

This is my JADECompanyAgent class:

public class JADECompanyAgent extends Agent
{
 public JADECompanyAgent(String str_company_id, String str_local_dataset_id)
 {
  super();
  int company_id = Integer.parseInt(str_company_id);
  int local_dataset_id = Integer.parseInt(str_local_dataset_id);
 }

//this method is my origional design.
 public JADECompanyAgent(int company_id, int local_dataset_id)
 {
 }

}

I am trying to pass a few parameters to an agent. Why the agent can not be started?
 
This is my command:
 
java jade.Boot -gui company:jadeapp.procure.JADECompanyAgent(1 3)
 
This is my JADECompanyAgent class:
 
public class JADECompanyAgent extends Agent
{
 public JADECompanyAgent(String str_company_id, String str_local_dataset_id)
 {
  super();
  int company_id = Integer.parseInt(str_company_id);
  int local_dataset_id = Integer.parseInt(str_local_dataset_id);
 }
 
//this method is my origional design.
 public JADECompanyAgent(int company_id, int local_dataset_id)
 {
 }

}



This archive was generated by hypermail 2a22 : Sat Sep 07 2002 - 22:26:52 MET DST