Package ise.mace.actions.Proposal

Examples of ise.mace.actions.Proposal.ProposalType


  }

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


  protected ProposalType makeProposal()
  {
    //Note : No need to check if agent is in a group. This is done by doMakeProposal
    String groupId = this.getDataModel().getGroupId();
    if (getConn().getGroupById(groupId) == null) return ProposalType.staySame;
    ProposalType proposal;

    //Get the economic beliefs of the agent and the group
    double groupEconomicPosition = this.getConn().getGroupById(groupId).getCurrentEconomicPoisition();
    double agentEconomicBelief = this.getDataModel().getEconomicBelief();
View Full Code Here

  @Override
  protected VoteType castVote(Proposition p)
  {
    String groupId = this.getDataModel().getGroupId();
    String proposerGroup = p.getOwnerGroup();
    ProposalType agentProposal;
    VoteType vote = null;

    if (groupId != null && getConn().getGroupById(groupId).getMemberList().size() > 1)//check if is in a group
    {
      if (groupId.equals(proposerGroup))  //check if agent is in the same group as the proposal
View Full Code Here

  protected ProposalType makeProposal()
  {
    //Note : No need to check if agent is in a group. This is done by doMakeProposal
    String groupId = this.getDataModel().getGroupId();
    if (getConn().getGroupById(groupId) == null) return ProposalType.staySame;
    ProposalType proposal;

    //Get the economic beliefs of the agent and the group
    double groupEconomicPosition = this.getConn().getGroupById(groupId).getCurrentEconomicPoisition();
    double agentEconomicBelief = this.getDataModel().getEconomicBelief();
View Full Code Here

  @Override
  protected VoteType castVote(Proposition p)
  {
    String groupId = this.getDataModel().getGroupId();
    String proposerGroup = p.getOwnerGroup();
    ProposalType agentProposal;
    VoteType vote = null;

    if (groupId != null && getConn().getGroupById(groupId).getMemberList().size() > 1)//check if is in a group
    {
      if (groupId.equals(proposerGroup))  //check if agent is in the same group as the proposal
View Full Code Here

TOP

Related Classes of ise.mace.actions.Proposal.ProposalType

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.