Package ise.mace.inputs

Examples of ise.mace.inputs.VoteResult


    }

    @Override
    public void handle(Input input)
    {
      final VoteResult in = (VoteResult)input;
      logger.log(Level.FINE, "I, agent {0} got {1} for my {2} proposal.",
              new Object[]
              {
                dm.getName(),
                in.getVotes(), in.getProposition().getType()
              });
      dm.setCurrentHappiness(updateHappinessAfterVotes(in.getProposition(),
              in.getVotes(), in.getOverallMovement()));
      dm.setCurrentLoyalty(updateLoyaltyAfterVotes(in.getProposition(),
              in.getVotes(), in.getOverallMovement()));
      dm.setSocialBelief(updateSocialBeliefAfterVotes(in.getProposition(),
              in.getVotes(), in.getOverallMovement()));
      dm.setEconomicBelief(updateEconomicBeliefAfterVotes(in.getProposition(),
              in.getVotes(), in.getOverallMovement()));
      Map<String, Double> t = updateTrustAfterVotes(in.getProposition(),
              in.getVotes(), in.getOverallMovement());
      if (t == null) return;
      for (String agent : t.keySet())
      {
        dm.setTrust(agent, t.get(agent));
      }
View Full Code Here

TOP

Related Classes of ise.mace.inputs.VoteResult

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.