net.sourceforge.cilib.games.random
Class FixedSeedStrategy

java.lang.Object
  extended by net.sourceforge.cilib.games.random.GameSeedingStrategy
      extended by net.sourceforge.cilib.games.random.FixedSeedStrategy
All Implemented Interfaces:
Serializable, Cloneable

public class FixedSeedStrategy
extends GameSeedingStrategy

This seeding strategy always uses the same seed.

Author:
leo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.games.random.GameSeedingStrategy
currentSeed, generator
 
Constructor Summary
FixedSeedStrategy()
           
FixedSeedStrategy(GameSeedingStrategy other)
           
 
Method Summary
 GameSeedingStrategy getClone()
          Create a cloned copy of the current object and return it.
 void seedGenerator()
          Get a seed value and seed the generator.
 void setSeedValue(long seed)
          set the specified seed value to use
 
Methods inherited from class net.sourceforge.cilib.games.random.GameSeedingStrategy
getCurrentSeed, getGenerator, setGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedSeedStrategy

public FixedSeedStrategy()

FixedSeedStrategy

public FixedSeedStrategy(GameSeedingStrategy other)
Method Detail

getClone

public GameSeedingStrategy getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class GameSeedingStrategy
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

seedGenerator

public void seedGenerator()
Get a seed value and seed the generator.

Specified by:
seedGenerator in class GameSeedingStrategy

setSeedValue

public void setSeedValue(long seed)
set the specified seed value to use

Parameters:
seed -


Copyright © 2009 CIRG. All Rights Reserved.