org.eviline.randomizer
Class ThreadedMaliciousRandomizer

java.lang.Object
  extended by org.eviline.randomizer.MaliciousRandomizer
      extended by org.eviline.randomizer.ThreadedMaliciousRandomizer
All Implemented Interfaces:
Serializable, Randomizer
Direct Known Subclasses:
AngelRandomizer

public class ThreadedMaliciousRandomizer
extends MaliciousRandomizer

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eviline.randomizer.MaliciousRandomizer
MaliciousRandomizer.MaliciousRandomizerProperties
 
Field Summary
static ExecutorService EXECUTOR
           
 
Fields inherited from class org.eviline.randomizer.MaliciousRandomizer
config, distAdjustment, history, HISTORY_SIZE, random, randomFirst, recent, taunt, typeCounts
 
Constructor Summary
ThreadedMaliciousRandomizer(PropertySource p)
           
 
Method Summary
protected  Decision decideThreaded(Field field)
           
 Shape provideShape(Field field)
          Return the Shape to be next played on the argument Field
protected  Decision worstForThreaded(Field field)
           
 
Methods inherited from class org.eviline.randomizer.MaliciousRandomizer
config, decide, depth, distribution, fair, getNext, getRandom, getTaunt, name, permuteDecision, rfactor, setRandom, worstFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXECUTOR

public static ExecutorService EXECUTOR
Constructor Detail

ThreadedMaliciousRandomizer

public ThreadedMaliciousRandomizer(PropertySource p)
Method Detail

provideShape

public Shape provideShape(Field field)
Description copied from interface: Randomizer
Return the Shape to be next played on the argument Field

Specified by:
provideShape in interface Randomizer
Overrides:
provideShape in class MaliciousRandomizer
Returns:

decideThreaded

protected Decision decideThreaded(Field field)

worstForThreaded

protected Decision worstForThreaded(Field field)


Copyright © 2013. All Rights Reserved.