Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package jadex.bdi.planlib.protocols;
  
  
  
  import java.util.List;

Interface used by default plans of the protocols capability for collecting information for a next negotiation round eg in iterated contract-net.
 
 public interface IQueryNextroundInfo
 {
 	//-------- methods --------
 	
Collect information for next negotiation round.

Parameters:
info The nextround info object, which might be altered.
history The history of negotiation rounds.
proposals The received proposals.
Returns:
True, if another negotiation round should be performed.
 
 	public boolean	queryNextroundInfo(NextroundInfo infoNegotiationRecord[] historyParticipantProposal[] proposals);
 	
 	//-------- helper classes --------
 	
An object encapsulating the nextround info.
 
 	public static class NextroundInfo
 	{
 		//-------- attributes --------
 		
The cfp object.
 
 		protected Object	cfp;

The cfp_info object.
 
 		protected Object	cfp_info;

The cfp object.
 
 		protected List	participants;
 		
 		//-------- constructors --------
 		
Create a nextround info object.
 
 		public NextroundInfo(Object cfpObject cfp_infoIComponentIdentifier[] participants)
 		{
 			this.cfp;
 			this.cfp_info;
 			this.	= SUtil.arrayToList(participants);
 		}
 
 		//-------- accessor methods --------
 		
Get the cfp object.

Returns:
Returns the cfp object.
 
 		public Object getCfp()
 		{
 			return ;
 		}

Set the cfp object.

Parameters:
cfp The cfp object to set.
 
 		public void setCfp(Object cfp)
 		{
 			this. = cfp;
 		}

Get the cfp_info object.

Returns:
Returns the cfp_info object.
 
 		public Object getCfpInfo()
 		{
 			return ;
 		}

Set the cfp_info oobject.

Parameters:
cfp_info The cfp_info object.
 
 		public void setCfpInfo(Object cfp_info)
 		{
 			this. = cfp_info;
 		}

Get the participants.

Returns:
Returns the participants.
 
		{
		}

Add a participant.

Parameters:
participant The participants to add.
		public void addParticipant(IComponentIdentifier participant)
		{
			.add(participant);
		}

Remove a participant.

Parameters:
participant The participants to remove.
		public void removeParticipant(IComponentIdentifier participant)
		{
			.remove(participant);
		}
	}
New to GrepCode? Check out our FAQ X