Package org.nlogo.agent

Examples of org.nlogo.agent.ArrayAgentSet$Shufflerator


      Agent agent = (Agent) target;
      if (agent.id == -1) {
        throw new EngineException(context, this,
          I18N.errorsJ().getN("org.nlogo.$common.thatAgentIsDead", agent.classDisplayName()));
      }
      agentset = new ArrayAgentSet(agent.getAgentClass(), 1, false, world);
      agentset.add(agent);
    } else {
      throw new ArgumentTypeException(context, this, 0, Syntax.AgentsetType() | Syntax.AgentType(), target);
    }
    context.runExclusiveJob(agentset, next);
View Full Code Here


      throws LogoException {
    if (agent.id == -1) {
      throw new EngineException(context, this,
        I18N.errorsJ().getN("org.nlogo.$common.thatAgentIsDead", agent.classDisplayName()));
    }
    AgentSet agentset = new ArrayAgentSet(agent.getAgentClass(), 1, false, world);
    agentset.add(agent);
    context.runExclusiveJob(agentset, next);
    context.ip = offset;
  }
View Full Code Here

          }
        }
      }

    }
    return new ArrayAgentSet
        (sourceSet.type(), result.toArray(new Agent[result.size()]),
            world);
  }
View Full Code Here

      throw new EngineException(context, this,
          I18N.errorsJ().getN("org.nlogo.prim.etc.$common.noNegativeRadius", displayName()));
    }
    List<Agent> result =
        world.inRadiusOrCone.inRadius(context.agent, sourceSet, radius, true);
    return new ArrayAgentSet
        (sourceSet.type(),
            result.toArray(new Agent[result.size()]),
            world);
  }
View Full Code Here

TOP

Related Classes of org.nlogo.agent.ArrayAgentSet$Shufflerator

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.