public class ParticleFactory extends AbstractIndividualFactory<Particle>
ParticleFactory.| Constructor and Description |
|---|
ParticleFactory(com.google.inject.Provider<Particle> particleProvider,
Creator creator)
Constructs a
ParticleFactory. |
| Modifier and Type | Method and Description |
|---|---|
Particle |
create()
Creates a new
Individual. |
Particle |
create(Genotype position)
Creates a new
Individual with a specified Genotype. |
Particle |
create(int id,
Genotype position,
Genotype velocity)
Builds a
Particle with the given id, position, and velocity. |
addIndividualStateListener, removeIndividualStateListener@Inject public ParticleFactory(com.google.inject.Provider<Particle> particleProvider, Creator creator)
ParticleFactory.particleProvider - the provider for particlescreator - the creatorpublic Particle create()
IndividualFactoryIndividual.create in interface IndividualFactorycreate in class AbstractIndividualFactory<Particle>public Particle create(Genotype position)
IndividualFactoryIndividual with a specified Genotype.create in interface IndividualFactorycreate in class AbstractIndividualFactory<Particle>position - the genotype of the individual