Package ise.mace.participants

Examples of ise.mace.participants.AbstractAgent$VoteResultHandler


   * @see PoliticalAgentGroup
   */
  String createGroupAgent(double food, double economic, double social,
          String name)
  {
    AbstractAgent a = new PoliticalAgentGroup(food, 0, AgentType.R, economic,
            social, name);
    a.initialise(new EnvironmentConnector(this));
    sim.addParticipant(a.getId(), a);
    sim.activateParticipant(a.getId());
    return a.getId();
  }
View Full Code Here


    if (authenticator.get(agent) != authToken)
    {
      throw new IllegalAccessError(
              "Incorrect access credentials");
    }
    AbstractAgent a = (AbstractAgent)sim.getPlayer(fromAgent);
    AbstractAgent b = (AbstractAgent)sim.getPlayer(agent);

    String ga = a.getDataModel().getGroupId();
    String gb = b.getDataModel().getGroupId();
    if (ga == null ? gb != null : !ga.equals(gb))
    {
      return null;
    }
View Full Code Here

TOP

Related Classes of ise.mace.participants.AbstractAgent$VoteResultHandler

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.