net.sourceforge.cilib.games.game.predatorprey.init
Class PredPreyPositionInitializationStrategy
java.lang.Object
net.sourceforge.cilib.games.game.predatorprey.init.PredPreyPositionInitializationStrategy
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- MinMaxDistanceInitializationStrategy, RandomPredPreyInitializationStrategy, StaticPositionInitializationStrategy
public abstract class PredPreyPositionInitializationStrategy
- extends Object
- implements Cloneable
- Author:
- leo
This class determines how the Predator and Prey agent's positions will be initialized in a game of Predator vs Prey.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PredPreyPositionInitializationStrategy
public PredPreyPositionInitializationStrategy()
PredPreyPositionInitializationStrategy
public PredPreyPositionInitializationStrategy(PredPreyPositionInitializationStrategy other)
getClone
public abstract PredPreyPositionInitializationStrategy 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
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
initializePP
public abstract void initializePP(PredatorPreyGame game)
- Initialize the positions of the predator and prey agents
- Parameters:
game
- The game object to initialise
Copyright © 2009 CIRG. All Rights Reserved.