public class MultilateralTournamentConfiguration extends java.lang.Object implements MultilateralTournamentConfigurationInterface
load(File) and
#save(File) to XML. Immutable.
This object can also be deserialized. Therefore we set default values in
optional fields| Constructor and Description |
|---|
MultilateralTournamentConfiguration(MultiPartyProtocolRepItem protocol,
Deadline deadline2,
PartyRepItem mediator,
java.util.List<ParticipantRepItem> parties,
java.util.List<ProfileRepItem> profiles,
java.util.List<ParticipantRepItem> partiesB,
java.util.List<ProfileRepItem> profilesB,
int nrepeats,
int nparties,
boolean repeatParties,
boolean isRandomSessionOrder,
PersistentDataType type,
boolean enablePrint) |
| Modifier and Type | Method and Description |
|---|---|
Deadline |
getDeadline() |
PartyRepItem |
getMediator() |
int |
getNumPartiesPerSession() |
java.util.List<ParticipantRepItem> |
getPartyBItems() |
java.util.List<ParticipantRepItem> |
getPartyItems()
read-only list of party repository items.
|
PersistentDataType |
getPersistentDataType() |
java.util.List<ProfileRepItem> |
getProfileBItems() |
java.util.List<ProfileRepItem> |
getProfileItems()
Gets read-only list of profiles used by the parties.
|
MultiPartyProtocolRepItem |
getProtocolItem()
Gets the protocol to run
|
int |
getRepeats()
Gets the number of times to run the tournament.
|
boolean |
isPrintEnabled() |
boolean |
isRandomSessionOrder() |
boolean |
isRepetitionAllowed()
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.OutputStream outstream)
Save this to output
|
public MultilateralTournamentConfiguration(MultiPartyProtocolRepItem protocol, Deadline deadline2, PartyRepItem mediator, java.util.List<ParticipantRepItem> parties, java.util.List<ProfileRepItem> profiles, java.util.List<ParticipantRepItem> partiesB, java.util.List<ProfileRepItem> profilesB, int nrepeats, int nparties, boolean repeatParties, boolean isRandomSessionOrder, PersistentDataType type, boolean enablePrint)
public MultiPartyProtocolRepItem getProtocolItem()
MultilateralTournamentConfigurationInterfacegetProtocolItem in interface MultilateralTournamentConfigurationInterfacepublic PartyRepItem getMediator()
getMediator in interface MultilateralTournamentConfigurationInterfacepublic Deadline getDeadline()
getDeadline in interface MultilateralTournamentConfigurationInterfacepublic java.util.List<ParticipantRepItem> getPartyItems()
MultilateralTournamentConfigurationInterfacegetPartyItems in interface MultilateralTournamentConfigurationInterfaceMultilateralTournamentConfigurationInterface.getNumPartiesPerSession()public java.util.List<ProfileRepItem> getProfileItems()
MultilateralTournamentConfigurationInterfacegetProfileItems in interface MultilateralTournamentConfigurationInterfacepublic java.util.List<ParticipantRepItem> getPartyBItems()
getPartyBItems in interface MultilateralTournamentConfigurationInterfaceMultilateralTournamentConfigurationInterface.getNumPartiesPerSession() =2.public java.util.List<ProfileRepItem> getProfileBItems()
getProfileBItems in interface MultilateralTournamentConfigurationInterfaceMultilateralTournamentConfigurationInterface.getPartyBItems() is not empty.public int getRepeats()
MultilateralTournamentConfigurationInterfacegetRepeats in interface MultilateralTournamentConfigurationInterfacepublic int getNumPartiesPerSession()
getNumPartiesPerSession in interface MultilateralTournamentConfigurationInterfaceMultilateralTournamentConfigurationInterface.getPartyItems(), then subsets of
the party items will be used in each session.public boolean isRepetitionAllowed()
MultilateralTournamentConfigurationInterfaceisRepetitionAllowed in interface MultilateralTournamentConfigurationInterfacepublic boolean isRandomSessionOrder()
isRandomSessionOrder in interface MultilateralTournamentConfigurationInterfacepublic static MultilateralTournamentConfiguration load(java.io.File file) throws javax.xml.bind.JAXBException
MultilateralTournamentConfiguration from file.file - the file to load fromMultilateralTournamentConfiguration.javax.xml.bind.JAXBExceptionpublic void save(java.io.OutputStream outstream)
outstream - the outputstream to write topublic PersistentDataType getPersistentDataType()
getPersistentDataType in interface MultilateralTournamentConfigurationInterfacepublic boolean isPrintEnabled()
isPrintEnabled in interface MultilateralTournamentConfigurationInterface