From: SourceForge.net <no...@so...> - 2003-10-14 15:38:47
|
Feature Requests item #823521, was opened at 2003-10-14 17:38 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=559157&aid=823521&group_id=80240 Category: system Group: None Status: Open Priority: 5 Submitted By: Dirk Bade (dirkbade) Assigned to: Nobody/Anonymous (nobody) Summary: Access to arguments from within a plan Initial Comment: When you start an agent using the StartDialog (the dialog where you specify the ADF to load) and you specify some arguments in the appropriate textfield, it's not possible to access these arguments from within a plan. workaround: have a belief in the ADF like this: <belief name="arg" category="belief" class="String.class"> <fact>$arg0</fact> </belief> and access the fact from within the plans. problem: when you want to start an agent using the jade.wrapper.AgentContainer-Class in the following way: getScope().getJadeAgent().getContainerController().createNewAgent(...) you have to pass the agentModel as the first element of the third parameter (the 3rd parameter is an argument-array). You'll get in trouble if you want to start agents via the Agent-StartDialog as well as from within a class because when accessing the arguments you've have to guess, which of these is the agent-model and which is the one you specified. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=559157&aid=823521&group_id=80240 |