Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package jadex.bdi.planlib.protocols;
  
  
An object containing information about a proposal made in a negotiation, i.e., the component identifier of the participant and the content object of the proposal message. When the proposal is evaluated the result of the evaluation can be saved. In the final round of an (interated) contract-net interaction, the evaluation can store the result of the task execution.
 
 public class ParticipantProposal
 {
 	//-------- attributes --------
 	
The participants component identifier.
 
The proposal object.
 
 	protected Object proposal;

An evaluation of the proposal.
 
 	protected Object evaluation;
 	
 	//-------- constructors --------
 	
Create a participant proposal. Empty bean constructor.
 
 	{
 	}

Create a participant proposal for a given participant.
 
 	{
 		this.participant;
 	}
 	
 	//-------- methods --------
 	
Get the participants component identifier.
 
 	{
 		return ;
 	}


Set the participants component identifier.
 
 	public void	setParticipant(IComponentIdentifier participant)
 	{
 		this.participant;
 	}

Get the proposal object.
 
 	public Object	getProposal()
 	{
 		return ;
 	}

Set the proposal object.
 
 	public void	setProposal(Object proposal)
 	{
 		this.proposal;
 	}

Get the evaluation.
 
 	public Object	getEvaluation()
 	{
 		return ;
 	}

Set the evaluation.
 
 	public void	setEvaluation(Object evaluation)
 	{
 		this.evaluation;
 	}
 	
	//-------- methods --------
Create a string representation of the participant proposal.
	public String	toString()
	{
		StringBuffer	sbufnew StringBuffer();
		sbuf.append("ParticipantProposal(participant=");
		sbuf.append(", proposal=");
		sbuf.append(", evaluation=");
		sbuf.append(")");
		return sbuf.toString();
	}
New to GrepCode? Check out our FAQ X