public abstract class Protocol
extends java.lang.Object
implements java.lang.Runnable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Domain |
domain
--
|
protected java.lang.Thread |
negoThread |
protected int |
sessionNr |
boolean |
stopNegotiation
stopNegotiation indicates that the session has now ended.
|
boolean |
threadFinished |
protected int |
totalSessions |
| Constructor and Description |
|---|
Protocol(AgentRepItem[] agentRepItems,
ProfileRepItem[] profileRepItems,
java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams,
int totalMatches) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNegotiationEventListener(NegotiationEventListener listener) |
java.lang.String |
getAgentName(int index) |
java.util.HashMap<AgentParameterVariable,AgentParamValue> |
getAgentParams(int index) |
AgentRepItem |
getAgentRepItem(int index) |
AbstractUtilitySpace |
getAgentUtilitySpaces(int index) |
Domain |
getDomain() |
abstract java.lang.String |
getName() |
java.util.ArrayList<NegotiationEventListener> |
getNegotiationEventListeners() |
int |
getNumberOfAgents() |
ProfileRepItem |
getProfileRepItems(int index) |
int |
getSessionNumber() |
int |
getTotalSessions() |
int |
hashCode() |
protected void |
loadAgentsUtilitySpaces() |
void |
removeNegotiationEventListener(NegotiationEventListener listener) |
void |
startSession() |
void |
stopNegotiation() |
java.lang.String |
toString() |
protected java.lang.Thread negoThread
public boolean stopNegotiation
public boolean threadFinished
protected Domain domain
protected int sessionNr
protected int totalSessions
public Protocol(AgentRepItem[] agentRepItems, ProfileRepItem[] profileRepItems, java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams, int totalMatches) throws java.lang.Exception
java.lang.Exceptionpublic abstract java.lang.String getName()
public final void startSession()
protected void loadAgentsUtilitySpaces()
throws java.lang.Exception
java.lang.Exceptionpublic void addNegotiationEventListener(NegotiationEventListener listener)
public java.util.ArrayList<NegotiationEventListener> getNegotiationEventListeners()
public void removeNegotiationEventListener(NegotiationEventListener listener)
public Domain getDomain()
public AgentRepItem getAgentRepItem(int index)
public ProfileRepItem getProfileRepItems(int index)
public java.lang.String getAgentName(int index)
public java.util.HashMap<AgentParameterVariable,AgentParamValue> getAgentParams(int index)
public AbstractUtilitySpace getAgentUtilitySpaces(int index)
public int getNumberOfAgents()
public void stopNegotiation()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getSessionNumber()
public int getTotalSessions()