public class AllPairWiseSameTypeMS extends java.lang.Object implements MatchSelector
SGAgentType
and therefore is only valid in symmetric games.Modifier and Type | Field and Description |
---|---|
protected SGAgentType |
at |
protected int |
n |
protected int |
p0 |
protected int |
p1 |
Constructor and Description |
---|
AllPairWiseSameTypeMS(SGAgentType at,
int n)
Initializes the selector
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MatchEntry> |
getNextMatch()
Returns the next match information, which is a list of
MatchEntry objects |
void |
resetMatchSelections()
Resets the match selections and causes the
MatchSelector.getNextMatch() method to start from the beginning of matches |
protected int n
protected SGAgentType at
protected int p0
protected int p1
public AllPairWiseSameTypeMS(SGAgentType at, int n)
at
- the SGAgentType
that all agents will play asn
- the number of agents in the tournamentpublic java.util.List<MatchEntry> getNextMatch()
MatchSelector
MatchEntry
objectsgetNextMatch
in interface MatchSelector
MatchEntry
objectspublic void resetMatchSelections()
MatchSelector
MatchSelector.getNextMatch()
method to start from the beginning of matchesresetMatchSelections
in interface MatchSelector