public class UT2004DeathMatchRepeater extends Object implements Callable<List<UT2004DeathMatchResult>>, Runnable
THREAD-UNSAFE!
| Modifier and Type | Field and Description |
|---|---|
protected List<Throwable> |
exceptions |
protected UT2004DeathMatchConfig |
matchConfig |
protected int |
repeats |
protected List<UT2004DeathMatchResult> |
results |
| Constructor and Description |
|---|
UT2004DeathMatchRepeater()
Parameter-less constructor, don't forget to initialize
UT2004DeathMatchRepeater#setMatchConfig(UT2004Match) and
setRepeats(int). |
UT2004DeathMatchRepeater(cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)
Parameter-less constructor, don't forget to initialize
UT2004DeathMatchRepeater#setMatchConfig(UT2004Match) and
setRepeats(int). |
UT2004DeathMatchRepeater(UT2004DeathMatchConfig match,
int repeats,
cz.cuni.amis.pogamut.base.utils.logging.LogCategory log) |
| Modifier and Type | Method and Description |
|---|---|
List<UT2004DeathMatchResult> |
call() |
List<Throwable> |
getExceptions()
|
cz.cuni.amis.pogamut.base.utils.logging.LogCategory |
getLog()
Log that is being used.
|
UT2004DeathMatchConfig |
getMatchConfig()
Which match we're going to evaluate.
|
protected String |
getNum(int i,
int max) |
int |
getRepeats()
How many times we will repeat the
getMatchConfig(). |
List<UT2004DeathMatchResult> |
getResults()
|
protected cz.cuni.amis.utils.token.Token |
getToken(cz.cuni.amis.utils.token.IToken orig,
int i,
int max) |
protected void |
outputAggregatedResults() |
protected void |
outputAggregatedResults(File outputDirectory) |
void |
run() |
void |
setLog(cz.cuni.amis.pogamut.base.utils.logging.LogCategory log) |
void |
setMatchConfig(UT2004DeathMatchConfig matchConfig) |
void |
setRepeats(int repeats) |
protected UT2004DeathMatchConfig matchConfig
protected int repeats
protected List<UT2004DeathMatchResult> results
public UT2004DeathMatchRepeater()
UT2004DeathMatchRepeater#setMatchConfig(UT2004Match) and
setRepeats(int).public UT2004DeathMatchRepeater(cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)
UT2004DeathMatchRepeater#setMatchConfig(UT2004Match) and
setRepeats(int).public UT2004DeathMatchRepeater(UT2004DeathMatchConfig match, int repeats, cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)
protected String getNum(int i, int max)
protected cz.cuni.amis.utils.token.Token getToken(cz.cuni.amis.utils.token.IToken orig,
int i,
int max)
public cz.cuni.amis.pogamut.base.utils.logging.LogCategory getLog()
public void setLog(cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)
public UT2004DeathMatchConfig getMatchConfig()
public void setMatchConfig(UT2004DeathMatchConfig matchConfig)
public int getRepeats()
getMatchConfig().public void setRepeats(int repeats)
public List<Throwable> getExceptions()
run() or call() returns list of exceptions that
had happened during matches (Array is guaranteed to have the length of repeats, some
items may be null. Usually all.)
Immutable.
public List<UT2004DeathMatchResult> getResults()
run() or call() returns list of match results
(Array is guaranteed to have the length of repeats, some items may be null == exception
happened).
Immutable.
public List<UT2004DeathMatchResult> call() throws Exception
call in interface Callable<List<UT2004DeathMatchResult>>Exceptionprotected void outputAggregatedResults()
protected void outputAggregatedResults(File outputDirectory)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.