net.sourceforge.cilib.games.random
Class UniqueSeedingStrategy

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

public class UniqueSeedingStrategy
extends GameSeedingStrategy

This is a seeding strategy that generates a unique seed everytime the seedGenerator method is called. This is also the default seeding strategy

Author:
leo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.games.random.GameSeedingStrategy
currentSeed, generator
 
Constructor Summary
UniqueSeedingStrategy()
           
UniqueSeedingStrategy(GameSeedingStrategy other)
           
 
Method Summary
 UniqueSeedingStrategy getClone()
          Create a cloned copy of the current object and return it.
 void seedGenerator()
          Get a seed value and seed the generator.
 
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

UniqueSeedingStrategy

public UniqueSeedingStrategy()

UniqueSeedingStrategy

public UniqueSeedingStrategy(GameSeedingStrategy other)
Method Detail

getClone

public UniqueSeedingStrategy 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


Copyright © 2009 CIRG. All Rights Reserved.