MaDKit forum

Welcome All !
Please, use explicit topic names when creating new threads. Thanks.

You are not logged in.

#1 Re: HowTo » An agent with a different behaviour » 2014-05-08 11:43:50

jo

Thanks
The problem is solved, I had a mistake in the defintion of the agents'roles.

#3 Re: HowTo » An agent with a different behaviour » 2014-05-07 19:16:40

jo

Hi,

Sorry, I don't unserstand your last sentence. How to launch the agent from the agent that will reach it?

Is the CPU time has any relation with the problem ?

The two agents run in parallel, but one is launched after the other.

I launched the agents many times without changing the code, I remark that each time, the order of information printed by "logger.info" or "System.println.out"  changes.

Thanks

#4 HowTo » Gérer la priorité entre des agents lancés en parallèle » 2014-05-07 18:45:52

jo
Replies: 2

Bonsoir,

Si j'ai deux agents (agent1 et agent2) qui sont lancés en parallèle, comment je peux arrêter pour un instant par exemple l'agent1, le temps que agent2 s'exécute ?
j'ai essayé la fonction pause() avec l'agent1, ce dernier s'arrête pour un certain moment puis se réactive, entre temps l'agent2  ne s'exécute pas.

Merci.

#6 HowTo » An agent with a different behaviour » 2014-05-04 17:46:18

jo
Replies: 4

Hi,
I launched a program many times without changing any code. Sometimes a message sent by an agent reaches to the other agent, and sometimes it don't reaches it . What's the explication of such a behaviour?

thanks.

#7 HowTo » Display the agent execution time » 2014-04-25 14:39:45

jo
Replies: 2

Hi,

How to display the agent's execution time?

Thanks

#8 Re: HowTo » How an agent can listen at two messages at once » 2014-03-09 15:20:11

jo

It's the case When an agent listen at two messages from two agents having different behaviors and through different streams.

#9 HowTo » How an agent can listen at two messages at once » 2014-03-08 19:44:13

jo
Replies: 3

Hi,

It's possible that an agent listen (waitNextMessage) at more than one message on the same time?

Thanks.

#10 HowTo » How to recuperate a variable value in an agent class » 2014-02-23 21:42:26

jo
Replies: 1

Hi,


Please, how can I recuperate the value of fd in  AgentLauncher class?

private void jToggleButton5ActionPerformed(java.awt.event.ActionEvent evt)

{                                               

String fd   =this.jTextField10.getText();

String[] argss = {"--agentLogLevel", "INFO", "--launchAgents",
                 AgentLauncher.class.getName()};

Madkit.main(argss);

}


public class AgentLauncher extends Agent {

protected void activate() {}
protected void live() {
       
    }

    @Override
    protected void end() {
       
       
    }

    /**
     * @param args
     */
        public static  void main(String[] args)
{}
}

Tanks.

Board footer