|
From: Mirko G. <gri...@gm...> - 2007-01-17 22:58:52
|
Hi, how are you?
I have a problem. I have two BasicAction into my buildSchedule function.
The first BasicAction is called AgentStep() and in this function
I make this:
*
for* (*int* i=0; i<dipLiberi.size(); i++){
agent = dipLiberi.get(i);
Into this function I assign an agent to an action, who have a duration.
I must called the second BasicAction when I have create the new match
agent-action. I must pass to this second BasicAction the duration of
the action. I try to write this code:
schedule.scheduleActionAt(1, new Action(int x), duration);
but this don't make start the second BasicAction... Can you help me?
Please...
This is all my code of BuildSchedule
*
public* *void* buildSchedule(){
System.*out*.println("Running BuildSchedule");
*
class* EseguiAzione *extends* BasicAction{
*
public* *void* execute(){
....
}
};
*
class* DipendentiStep *extends* BasicAction{
*
public* *void* execute(){
...
schedule.scheduleActionAt(1, *new* EseguiAzione(az,agent), d);
}
};
schedule.scheduleActionAtInterval (1, *new* DipendentiStep());
}
Please help me!!!
Thank you very much
Bye
|