Package ise.mace.models

Examples of ise.mace.models.GroupDataInitialiser


    {
      if (getConn().getAllowedGroupTypes().isEmpty()) return null;
      Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
              0);
      return getConn().createGroup(gtype,
              new GroupDataInitialiser(this.uniformRandLong(),
              getDataModel().getEconomicBelief()));
    }

    return groups.iterator().next();
  }
View Full Code Here


        }

        if (inviteeAccepts(invitee, topCandidateESFaction))
        {
          //Create a new group and invite your partner to join it
          GroupDataInitialiser myGroup = new GroupDataInitialiser(
                  this.uniformRandLong(),
                  (this.getDataModel().getEconomicBelief() + getConn().getAgentById(
                  invitee).getEconomicBelief()) / 2);
          Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
                  0);
View Full Code Here

    //GROUP INTO AGENTS
    PoliticalAgentGroup.special_no++;
    //Create special group
    if (PoliticalAgentGroup.special_no == 1)
    {
      GroupDataInitialiser spGroup = new GroupDataInitialiser(
              this.uniformRandLong(), 1.0);
      Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
              1);
      PoliticalAgentGroup.special = getConn().createGroup(gtype, spGroup);
    }
View Full Code Here

    if (this.uniformRand() > 0.9)
    {
      Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
              0);
      String chosenGroup = getConn().createGroup(gtype,
              new GroupDataInitialiser(this.uniformRandLong(),
              getDataModel().getEconomicBelief()));
      createGroupAgent(chosenGroup); //Create the group agent
      return chosenGroup;
    }
    else
View Full Code Here

    //GROUP INTO AGENTS
    PoliticalAgentGroup.special_no++;
    //Create special group
    if (PoliticalAgentGroup.special_no == 1)
    {
      GroupDataInitialiser spGroup = new GroupDataInitialiser(
              this.uniformRandLong(), 1.0);
      Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
              1);
      PoliticalAgentGroup.special = getConn().createGroup(gtype, spGroup);
    }
View Full Code Here

    if (chosenGroup.equals(""))
    {
      Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
              0);
      String newGroupID = getConn().createGroup(gtype,
              new GroupDataInitialiser(this.uniformRandLong(),
              getDataModel().getEconomicBelief()));
      //TODO:The following line of code might solve the social position problem
      WarGroup.socialBeliefs.put(newGroupID, getDataModel().getSocialBelief());
      createGroupAgent(newGroupID); //Create the group agent
      return newGroupID;
View Full Code Here

    //GROUP INTO AGENTS
    PoliticalAgentGroup.special_no++;
    //Create special group
    if (special_no == 1)
    {
      GroupDataInitialiser spGroup = new GroupDataInitialiser(
              this.uniformRandLong(), 1.0);
      Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
              0);
      PoliticalAgentGroup.special = getConn().createGroup(gtype, spGroup);
    }
View Full Code Here

        }

        if (inviteeAccepts(invitee, topCandidateESFaction))
        {
          //Create a new group and invite your partner to join it
          GroupDataInitialiser myGroup = new GroupDataInitialiser(
                  this.uniformRandLong(),
                  (this.getDataModel().getEconomicBelief() + getConn().getAgentById(
                  invitee).getEconomicBelief()) / 2);
          Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
                  0);
View Full Code Here

    //GROUP INTO AGENTS
    PoliticalAgentGroup.special_no++;
    //Create special group
    if (PoliticalAgentGroup.special_no == 1)
    {
      GroupDataInitialiser spGroup = new GroupDataInitialiser(
              this.uniformRandLong(), 1.0);
      Class<? extends AbstractGroupAgent> gtype = getConn().getAllowedGroupTypes().get(
              1);
      PoliticalAgentGroup.special = getConn().createGroup(gtype, spGroup);
    }
View Full Code Here

TOP

Related Classes of ise.mace.models.GroupDataInitialiser

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.