Package org.nlogo.api

Examples of org.nlogo.api.AgentSet


         iter.hasNext();) {
      Object next = iter.next();
      // I'm unable to reproduce bug #1400, but a user did see it, and
      // this instanceof check should prevent it - ST 9/21/11
      if(next instanceof AgentSet) {
        AgentSet breed = (AgentSet) next;
        for (Agent a : breed.agents()) {
          linkDrawer.drawLink(g, topology, (Link) a, patchSize, false);
          linksDrawn++;
        }
      }
    }
View Full Code Here


         iter.hasNext();) {
      Object next = iter.next();
      // I'm unable to reproduce bug #1400, but a user did see it, and
      // this instanceof check should prevent it - ST 9/21/11
      if(next instanceof AgentSet) {
        AgentSet breed = (AgentSet) next;
        if (Turtle.class.isAssignableFrom(breed.type())) {
          for (Agent a : breed.agents()) {
            turtleDrawer.drawTurtle(g, topology, (Turtle) a, patchSize);
            turtlesDrawn++;
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.nlogo.api.AgentSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.