net.sourceforge.cilib.games.random
Class FixedSeedStrategy
java.lang.Object
net.sourceforge.cilib.games.random.GameSeedingStrategy
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedSeedStrategy
public FixedSeedStrategy()
FixedSeedStrategy
public FixedSeedStrategy(GameSeedingStrategy other)
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.