| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjadex.planlib.NegotiationRecord
public class NegotiationRecord
The negotiation record has the purpose to store all information about one negotiation round in an iterated contract net protocol.
| Field Summary | |
|---|---|
| static String | FAILEDThe negotiation is finished with a failure. | 
| static String | OPENThe negotiation is not yet finished. | 
| static String | SUCCEEDEDThe negotiation has finished successfully. | 
| Constructor Summary | |
|---|---|
| NegotiationRecord(Object cfp)Create a new negotiation record. | |
| Method Summary | |
|---|---|
|  void | addExecutedTask(Object task)Add an executed task. | 
|  void | addProposal(IMessageEvent msg)Add a proposal (and the message). | 
|  Object[] | getAcceptableProposals()Get the acceptable proposals. | 
|  AgentIdentifier | getAgentIdentifier(Object proposal)Get the sender of a proposal. | 
|  Object | getCFP()Get the call for proposal. | 
|  long | getEndtime()Get the end time. | 
|  IMessageEvent | getMessageEvent(Object proposal)Get the message event for a proposal. | 
|  Object[] | getNonAcceptableProposals()Get the non-acceptable proposals. | 
|  Object[] | getNonWinnerProposals()Get the non-winner proposals. | 
|  Object | getProposal(AgentIdentifier sender)Get the proposal for the sender. | 
|  Object[] | getProposals()Get all proposals. | 
|  long | getStarttime()Get the start time. | 
|  String | getState()Get the negotiation state. | 
|  Object[] | getTasks()Get the executed tasks. | 
|  AgentIdentifier[] | getWinnerParticipants()Get the winner participants. | 
|  Object[] | getWinnerProposals()Get the winner proposals. | 
|  void | setAcceptableProposals(Object[] proposals)Set the acceptable proposals. | 
|  void | setEndtime(long endtime)Set the end time. | 
|  void | setStarttime(long starttime)Set the start time. | 
|  void | setState(String state)Set the negotiation state. | 
|  void | setWinnerProposals(Object[] proposals)Set the winner proposals. | 
|  int | size()Get the number of proposals. | 
|  String | toString()Get the string representation. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final String OPEN
public static final String SUCCEEDED
public static final String FAILED
| Constructor Detail | 
|---|
public NegotiationRecord(Object cfp)
cfp - The call for proposal.| Method Detail | 
|---|
public void addProposal(IMessageEvent msg)
msg - The proposal message.public void setAcceptableProposals(Object[] proposals)
proposals - The acceptable proposals.public void setWinnerProposals(Object[] proposals)
proposals - The winner proposals.public void addExecutedTask(Object task)
task - The executed task.public Object[] getProposals()
public Object[] getAcceptableProposals()
public Object[] getWinnerProposals()
public Object[] getTasks()
public AgentIdentifier[] getWinnerParticipants()
public Object[] getNonAcceptableProposals()
public Object[] getNonWinnerProposals()
public AgentIdentifier getAgentIdentifier(Object proposal)
proposal - The proposal.
public IMessageEvent getMessageEvent(Object proposal)
proposal - The proposal.
public Object getProposal(AgentIdentifier sender)
sender - The sender.
public Object getCFP()
public int size()
public String getState()
public void setState(String state)
state - The state to set.public long getStarttime()
public void setStarttime(long starttime)
starttime - The start time to set.public long getEndtime()
public void setEndtime(long endtime)
endtime - The end time to set.public String toString()
toString in class Object| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.