patch = ((Turtle) context.agent).getPatchHere();
} else {
patch = (Patch) context.agent;
}
AgentSet agentset =
new ArrayAgentSet(Turtle.class, patch.turtleCount(),
false, world);
AgentSet breed = world.getBreed(breedName);
for (Turtle turtle : patch.turtlesHere()) {
if (turtle.getBreed() == breed) {
agentset.add(turtle);