public class MultilateralTournamentConfiguration extends java.lang.Object implements MultilateralTournamentConfigurationInterface
GuiConfiguration
. This stores all information for a multilateral
tournament. Can be load(File)
and save(File)
to XML.Constructor and Description |
---|
MultilateralTournamentConfiguration() |
MultilateralTournamentConfiguration(GuiConfiguration config) |
Modifier and Type | Method and Description |
---|---|
Deadline |
getDeadline() |
PartyRepItem |
getMediatorItem()
Gets the mediator
|
ProfileRepItem |
getMediatorProfile()
Gets the mediator profile
|
int |
getNumAgentsPerSession()
Gets the number of agents per session
|
int |
getNumSessions()
Gets the number of negotiation sessions to run
|
int |
getNumTournaments()
Gets the number of negotiation sessions to run
|
java.util.List<PartyRepItem> |
getPartyItems()
Gets the list of party repository items.
|
java.util.List<ProfileRepItem> |
getPartyProfileItems()
Gets the list of profiles used by the parties
|
MultiPartyProtocolRepItem |
getProtocolItem()
Gets the protocol to run
|
boolean |
getRepetitionAllowed()
Gets whether repetition is allowed when generating combinations of
agents.
|
static MultilateralTournamentConfiguration |
load(java.io.File file)
Load a new
MultilateralTournamentConfiguration from file. |
void |
save(java.io.File file)
Save this to xml file
|
void |
setDeadline(Deadline dl) |
void |
setMediatorItem(PartyRepItem mediatorItem)
Sets the mediator item
|
void |
setMediatorProfile(ProfileRepItem mediatorProfile)
Sets the mediator profile
|
void |
setNumAgentsPerSession(int numAgents)
Sets the number of agents per session
|
void |
setNumSessions(int numSessions)
Sets the number of negotiation sessions.
|
void |
setPartyItems(java.util.List<PartyRepItem> agents)
Sets the list of chosen parties
|
void |
setPartyProfileItems(java.util.List<ProfileRepItem> partyProfileItems)
Sets the list of profiles used by the parties
|
void |
setProtocolItem(MultiPartyProtocolRepItem item)
Sets the protocol to run.
|
void |
setRepetitionAllowed(boolean repetitionAllowed)
Sets whether repetition is allowed for generating sessions for the
current agent
|
public MultilateralTournamentConfiguration()
public MultilateralTournamentConfiguration(GuiConfiguration config)
public Deadline getDeadline()
getDeadline
in interface MultilateralTournamentConfigurationInterface
public void setDeadline(Deadline dl)
public java.util.List<PartyRepItem> getPartyItems()
getPartyItems
in interface MultilateralTournamentConfigurationInterface
public void setPartyItems(java.util.List<PartyRepItem> agents)
setPartyItems
in interface MultilateralTournamentConfigurationInterface
agents
- the list of all chosen partiespublic int getNumSessions()
getNumSessions
in interface MultilateralTournamentConfigurationInterface
public void setNumSessions(int numSessions)
setNumSessions
in interface MultilateralTournamentConfigurationInterface
numSessions
- the number of sessionspublic PartyRepItem getMediatorItem()
getMediatorItem
in interface MultilateralTournamentConfigurationInterface
public void setMediatorItem(PartyRepItem mediatorItem)
setMediatorItem
in interface MultilateralTournamentConfigurationInterface
mediatorItem
- the mediatorpublic int getNumTournaments()
getNumTournaments
in interface MultilateralTournamentConfigurationInterface
public MultiPartyProtocolRepItem getProtocolItem()
getProtocolItem
in interface MultilateralTournamentConfigurationInterface
public void setProtocolItem(MultiPartyProtocolRepItem item)
MultilateralTournamentConfigurationInterface
setProtocolItem
in interface MultilateralTournamentConfigurationInterface
item
- the protocol to runpublic java.util.List<ProfileRepItem> getPartyProfileItems()
getPartyProfileItems
in interface MultilateralTournamentConfigurationInterface
public void setPartyProfileItems(java.util.List<ProfileRepItem> partyProfileItems)
setPartyProfileItems
in interface MultilateralTournamentConfigurationInterface
partyProfileItems
- list of profiles used by the partiespublic int getNumAgentsPerSession()
getNumAgentsPerSession
in interface MultilateralTournamentConfigurationInterface
public void setNumAgentsPerSession(int numAgents)
setNumAgentsPerSession
in interface MultilateralTournamentConfigurationInterface
numAgents
- number of agentspublic boolean getRepetitionAllowed()
getRepetitionAllowed
in interface MultilateralTournamentConfigurationInterface
public void setRepetitionAllowed(boolean repetitionAllowed)
setRepetitionAllowed
in interface MultilateralTournamentConfigurationInterface
repetitionAllowed
- true if repetition is allowedpublic ProfileRepItem getMediatorProfile()
MultilateralTournamentConfigurationInterface
getMediatorProfile
in interface MultilateralTournamentConfigurationInterface
public void setMediatorProfile(ProfileRepItem mediatorProfile)
MultilateralTournamentConfigurationInterface
setMediatorProfile
in interface MultilateralTournamentConfigurationInterface
mediatorProfile
- the mediator's profile rep item or null if not existingpublic static MultilateralTournamentConfiguration load(java.io.File file) throws javax.xml.bind.JAXBException
MultilateralTournamentConfiguration
from file.file
- the file to load fromMultilateralTournamentConfiguration
.javax.xml.bind.JAXBException
public void save(java.io.File file)
file
-