swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swarm-Support] Javaswarm problem with Observer


From: durga bhavani
Subject: [Swarm-Support] Javaswarm problem with Observer
Date: Thu, 10 Nov 2005 00:41:58 -0800 (PST)

Hello
 
Not sure but my observer swarm is called only once so it does not change colore dynamuicall no clue why it is doing like that at does n ot throw any exceptions
 
here is the code for my startsim
import swarm.SwarmEnvironmentImpl;
import swarm.Globals;
import swarm.defobj.Zone;
import swarm.activity.ActionGroupImpl;
import swarm.activity.ActionGroup;
import swarm.activity.Activity;
import swarm.objectbase.SwarmImpl;
import swarm.objectbase.Swarm;
import swarm.Selector;
import java.util.LinkedList;
import java.util.List;
public class StartTest{
    public static void main (String args[]) {
        Globals.env.initSwarm ("TestList", "0.0", "address@hidden",args);
        GroupObserver topLevelSwarm = new GroupObserver(Globals.env.globalZone);
Globals.env.setWindowGeometryRecordName(topLevelSwarm,"topLevelSwarm");
        //Swarm swarm = new GroupModelSwarm (Globals.env.globalZone);
        //swarm.buildObjects ();
        //swarm.buildActions ();
        //swarm.activateIn (null).run();
        topLevelSwarm.buildObjects();
        topLevelSwarm.buildActions();
        topLevelSwarm.activateIn(null);
        topLevelSwarm.go();
        topLevelSwarm.drop();

    }
}
 

Thanks in advance
Durga

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]