Class ICNPHandler

    • Field Detail

      • proposal_evaluator

        protected IProposalEvaluator proposal_evaluator
        The proposal evaluator.
      • query_nextround_info

        protected IQueryNextroundInfo query_nextround_info
        The query nextround info.
    • Constructor Detail

      • ICNPHandler

        public ICNPHandler​(IProposalEvaluator proposal_evaluator,
                           IQueryNextroundInfo query_nextround_info)
        Create an ICNPHandler using the given implementations.
        Parameters:
        proposal_evaluator - The proposal evaluator.
        query_nextround_info - The query nextround info.
    • Method Detail

      • evaluateProposals

        public ParticipantProposal[] evaluateProposals​(java.lang.Object cfp,
                                                       java.lang.Object cfp_info,
                                                       NegotiationRecord[] history,
                                                       ParticipantProposal[] proposals)
        Evaluate the given proposals and determine winning proposals.
        Specified by:
        evaluateProposals in interface IProposalEvaluator
        Parameters:
        cfp - The original call-for-proposal object.
        cfp_info - Local meta information associated to the interaction.
        history - The history of negotiation rounds.
        proposals - The received proposals.
        Returns:
        The acceptable proposals, sorted by preference (best proposal first).