Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jadex.bdi.planlib.protocols.contractnet;
 
Evaluate proposals using the proposal evaluator interface.
public class CNPEvaluateProposalsPlan extends Plan
{
Plan body.
	public void body()
	{
		Object	cfpgetParameter("cfp").getValue();
		Object	cfp_infogetParameter("cfp_info").getValue();
		IProposalEvaluator	evaluator	= (IProposalEvaluator)cfp_info;
		ParticipantProposal[]	acceptablesevaluator.evaluateProposals(cfpcfp_infohistoryproposals);
		getParameterSet("acceptables").addValues(acceptables);
	}
New to GrepCode? Check out our FAQ X