|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.ut2004.tournament.deathmatch.UT2004DeathMatchRepeater
public class UT2004DeathMatchRepeater
Simple class that allows to run 1 match multiple times automatically suffixing ID of the match (name of the output directory) with numbers.
THREAD-UNSAFE!
Field Summary | |
---|---|
protected List<Throwable> |
exceptions
|
protected UT2004DeathMatchConfig |
matchConfig
|
protected int |
repeats
|
protected List<UT2004DeathMatchResult> |
results
|
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
List<UT2004DeathMatchResult> |
call()
|
List<Throwable> |
getExceptions()
After the 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. |
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()
After the run() or call() returns list of match results
(Array is guaranteed to have the length of repeats , some items may be null == exception
happened). |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected UT2004DeathMatchConfig matchConfig
protected int repeats
protected List<UT2004DeathMatchResult> results
protected List<Throwable> exceptions
Constructor Detail |
---|
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)
Method Detail |
---|
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>>
Exception
public void run()
run
in interface Runnable
protected void outputAggregatedResults()
protected void outputAggregatedResults(File outputDirectory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |