public class GuiConfiguration extends MultilateralTournamentConfiguration
MultilateralUI
user interface. This class
is also readable by the TournamentManager
to start
a new tournament.Constructor and Description |
---|
GuiConfiguration() |
GuiConfiguration(GuiConfiguration config)
Initializes a new instance of the configuration class by using existing
config.
|
Modifier and Type | Method and Description |
---|---|
static MultilateralProtocol |
createFrom(MultiPartyProtocolRepItem protocolRepItem)
Create a new instance of the Protocol object from a
MultiPartyProtocolRepItem |
static NegotiationParty |
createFrom(PartyRepItem partyRepItem,
Domain domain)
Creates a new Party from repository items
|
static NegotiationParty |
createFrom(PartyRepItem partyRepItem,
ProfileRepItem profileRepItem)
Creates a new Party from repository items
|
static UtilitySpace |
createFrom(ProfileRepItem item)
Create a new UtilitySpace from a ProfileRepItem.
|
getDeadline, getMediatorItem, getMediatorProfile, getNumAgentsPerSession, getNumSessions, getNumTournaments, getPartyItems, getPartyProfileItems, getProtocolItem, getRepetitionAllowed, load, save, setDeadline, setMediatorItem, setMediatorProfile, setNumAgentsPerSession, setNumSessions, setPartyItems, setPartyProfileItems, setProtocolItem, setRepetitionAllowed
public GuiConfiguration()
public GuiConfiguration(GuiConfiguration config) throws InstantiateException
config
- the configuration to make a copy ofInstantiateException
public static NegotiationParty createFrom(PartyRepItem partyRepItem, ProfileRepItem profileRepItem) throws java.lang.Exception
partyRepItem
- Party Repository item to createFrom party fromprofileRepItem
- Profile Repository item to createFrom party fromjava.lang.NoSuchMethodException
- If requested Party does not have a constructor accepting only
preference profilesjava.lang.ClassNotFoundException
- If requested Party class can not be found.java.lang.Exception
- If
Repository.copyFrom(negotiator.repository.Repository)
throws an exception.public static NegotiationParty createFrom(PartyRepItem partyRepItem, Domain domain) throws java.lang.Exception
partyRepItem
- Party Repository item to createFrom party fromdomain
- Profile Repository item to createFrom party fromjava.lang.NoSuchMethodException
- If requested Party does not have a constructor accepting only
preference profilesjava.lang.ClassNotFoundException
- If requested Party class can not be found.java.lang.Exception
- If
Repository.copyFrom(negotiator.repository.Repository)
throws an exception.public static MultilateralProtocol createFrom(MultiPartyProtocolRepItem protocolRepItem) throws InstantiateException
MultiPartyProtocolRepItem
protocolRepItem
- Item to create Protocol out ofInstantiateException
- if failure occurs while constructing the rep item.public static UtilitySpace createFrom(ProfileRepItem item) throws java.lang.Exception
ProfileRepItem.getDomain()
returns new instead of an actual
domain, this method also returns null.item
- the item to create a UtilitySpace out of.java.lang.Exception
- If
Repository.copyFrom(negotiator.repository.Repository)
throws an exception.