Package ise.mace.actions

Examples of ise.mace.actions.Proposal


  private void doMakeProposal()
  {
    if (dm.getGroupId() == null) return;
    ProposalType t = makeProposal();
    ec.act(new Proposal(t, dm.getGroupId()), getId(), authCode);
  }
View Full Code Here


    }

    @Override
    public Input handle(Action action, String actorID)
    {
      final Proposal prop = (Proposal)action;
      final Proposition p = new Proposition(prop.getType(), actorID,
              prop.getForGroup(), dmodel.time);

      logger.log(Level.FINE, "Agent {0} proposed a motion of  {1} to group {2}",
              new Object[]
              {
                nameOf(actorID),
                prop.getType(), nameOf(prop.getForGroup())
              });
      if (dmodel.getGroupById(prop.getForGroup()) == null)
      {
        return null;
      }
      for (String member : dmodel.getGroupById(prop.getForGroup()).getMemberList())
      {
        sim.getPlayer(member).enqueueInput(p);
      }

      return null;
View Full Code Here

TOP

Related Classes of ise.mace.actions.Proposal

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.