public abstract class MultiPartyProtocol
extends java.lang.Object
implements java.lang.Runnable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected DeadlineType |
deadlineType |
protected boolean |
involveMediator |
protected java.lang.String |
negoResultFile |
protected NegoRound |
negoRound |
protected MultiPartyNegotiationSession |
negoSession |
protected java.lang.Thread |
negoThread |
protected java.util.ArrayList<Party> |
negotiatingParties |
protected java.util.ArrayList<AgentID> |
partyIDList |
protected java.util.ArrayList<java.util.HashMap<AgentParameterVariable,AgentParamValue>> |
partyParams |
protected java.util.ArrayList<PartyRepItem> |
partyRepItems |
protected java.util.ArrayList<UtilitySpace> |
partyUtilitySpaces |
protected int |
sessionTotalNumber |
protected int |
totalRoundOrTime |
protected java.lang.String |
txtNegoResult |
protected java.io.PrintStream |
writeFileStream |
Constructor and Description |
---|
MultiPartyProtocol(java.util.ArrayList<PartyRepItem> partyRepItems,
java.util.ArrayList<AgentID> partyIDList,
java.util.ArrayList<ProfileRepItem> profileRepItems,
java.util.ArrayList<java.util.HashMap<AgentParameterVariable,AgentParamValue>> partyParams,
DeadlineType deadlineType,
int totalRoundOrTime) |
Modifier and Type | Method and Description |
---|---|
void |
addNegotiationEventListener(MultipartyNegotiationEventListener listener) |
void |
fireMultipartyNegotiationEvent(MultiPartyNegotiationSession multipartySession) |
java.util.ArrayList<MultipartyNegotiationEventListener> |
getNegotiationEventListeners() |
void |
removeNegotiationEventListener(MultipartyNegotiationEventListener listener) |
void |
run() |
protected void |
runNegotiationSession(int nr) |
abstract void |
setNegoRound() |
abstract void |
setPartsListener() |
void |
setTxtNegoResult(java.lang.String txt) |
void |
startNegotiation() |
protected java.lang.String negoResultFile
protected java.io.PrintStream writeFileStream
protected java.lang.String txtNegoResult
protected java.lang.Thread negoThread
protected boolean involveMediator
protected MultiPartyNegotiationSession negoSession
protected java.util.ArrayList<PartyRepItem> partyRepItems
protected java.util.ArrayList<AgentID> partyIDList
protected java.util.ArrayList<java.util.HashMap<AgentParameterVariable,AgentParamValue>> partyParams
protected java.util.ArrayList<Party> negotiatingParties
protected java.util.ArrayList<UtilitySpace> partyUtilitySpaces
protected DeadlineType deadlineType
protected int totalRoundOrTime
protected NegoRound negoRound
protected int sessionTotalNumber
public MultiPartyProtocol(java.util.ArrayList<PartyRepItem> partyRepItems, java.util.ArrayList<AgentID> partyIDList, java.util.ArrayList<ProfileRepItem> profileRepItems, java.util.ArrayList<java.util.HashMap<AgentParameterVariable,AgentParamValue>> partyParams, DeadlineType deadlineType, int totalRoundOrTime) throws java.lang.Exception
java.lang.Exception
public abstract void setNegoRound()
public abstract void setPartsListener()
public void run()
run
in interface java.lang.Runnable
public void startNegotiation() throws java.lang.Exception
java.lang.Exception
protected void runNegotiationSession(int nr) throws java.lang.Exception
java.lang.Exception
public void setTxtNegoResult(java.lang.String txt)
public void addNegotiationEventListener(MultipartyNegotiationEventListener listener)
public java.util.ArrayList<MultipartyNegotiationEventListener> getNegotiationEventListeners()
public void removeNegotiationEventListener(MultipartyNegotiationEventListener listener)
public void fireMultipartyNegotiationEvent(MultiPartyNegotiationSession multipartySession)