Package ise.mace.actions

Examples of ise.mace.actions.Vote


    public void handle(Input input)
    {
      final ise.mace.inputs.Proposition in = (ise.mace.inputs.Proposition)input;

      Vote.VoteType v = castVote(in);
      ec.act(new Vote(in, v), getId(), authCode);

      logger.log(Level.FINE, "I, agent {0} voted {1} in {2}'s vote of {3}",
              new Object[]
              {
                dm.getName(),
View Full Code Here


    }

    @Override
    public Input handle(Action action, String actorID)
    {
      final Vote vote = (Vote)action;
      final ise.mace.inputs.Vote v = new ise.mace.inputs.Vote(vote, dmodel.time,
              actorID);

      logger.log(Level.FINE,
              "Agent {0} voted {1} on a motion of  {2} to group {3}",
              new Object[]
              {
                nameOf(actorID),
                vote.getVote(), vote.getProposition().getType(),
                nameOf(vote.getProposition().getOwnerGroup())
              });
      sim.getPlayer(vote.getProposition().getOwnerGroup()).enqueueInput(v);
      return null;
    }
View Full Code Here

TOP

Related Classes of ise.mace.actions.Vote

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.