예제 #1
0
 public void initialize() {
   super.initialize();
   if (numberOfAgents() > 0) myViewer.updateWorldData((Patch[][]) getObject(getAgentNb(0)));
   System.err.println(this);
 }
예제 #2
0
 public void update(AbstractAgent theAgent, boolean added) {
   super.update(theAgent, added);
   if (added) myViewer.updateWorldData((Patch[][]) getObject(theAgent));
   System.err.println(this);
 }