All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.bdi.planlib.protocols.NegotiationRecord Maven / Gradle / Ivy

Go to download

The Jadex applib BDI package contains ready to use functionalities for BDI agents mostly in form of modules called capabilities.

The newest version!
package jadex.bdi.planlib.protocols;


import java.text.SimpleDateFormat;
import java.util.Date;

import jadex.bridge.IComponentIdentifier;
import jadex.commons.SUtil;

/**
 *  The negotiation record has the purpose to store all information
 *  about one negotiation round e.g. in an iterated contract net
 *  or auction protocol.
 */
public class NegotiationRecord
{
	//-------- variables --------

	/** The cfp sent to the participants. */
	protected Object cfp;
	
	/** The cfp_info kept locally. */
	protected Object cfp_info;
	
	/** The participant proposals. */
	protected ParticipantProposal[] proposals;
	
	/** The start time. */
	protected long starttime;
	
	/** The end time. */
	protected long endtime;


	//-------- constructors --------

	/**
	 *  Create a new negotiation record.
	 *  @param cfp The call for proposal object.
	 *  @param cfp_info The cfp info (local meta information).
	 *  @param participants	The participants agent identifiers.
	 */
	public NegotiationRecord(Object cfp, Object cfp_info, IComponentIdentifier[] participants, long starttime)
	{
		this.cfp = cfp;
		this.cfp_info = cfp_info;
		this.starttime	= starttime;
		this.proposals = new ParticipantProposal[participants.length];
		for(int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy