|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.entity.AbstractEntity net.sourceforge.cilib.pso.particle.AbstractParticle net.sourceforge.cilib.bioinf.rnaprediction.RNAParticle
public class RNAParticle
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.pso.particle.AbstractParticle |
---|
neighbourhoodBestUpdateStrategy, personalBestUpdateStrategy, positionInitialisationStrategy, positionUpdateStrategy, velocityInitialisationStrategy, velocityUpdateStrategy |
Constructor Summary | |
---|---|
RNAParticle()
Create a new RNAParticle instance. |
|
RNAParticle(RNAParticle copy)
Copy constructor. |
Method Summary | |
---|---|
void |
calculateFitness(boolean count)
Calculate the fitness of the Entity . |
boolean |
equals(Object object)
It doesn;t make sense to compare the meta data of the entity. |
Fitness |
getBestFitness()
Return the best fitness associated with this Entity, provided a best fitness is defined on the Entity. |
StructuredType |
getBestPosition()
Get the best position of the Particle. |
RNAParticle |
getClone()
Make a clone of the Entity the exact semantics of the clone method will be defined by the classes that implements this interface. |
int |
getDimension()
Returns the dimension of the Entity. |
RNAFitness |
getFitnessCalc()
|
Particle |
getNeighbourhoodBest()
Get the current Particle's neighbourhood best. |
StructuredType |
getPosition()
Get the position of the Particle. |
StructuredType |
getVelocity()
Get the velocity representation of the Particle. |
int |
hashCode()
|
void |
initialise(OptimisationProblem problem)
Intialise the Entity to something meaningful and within the problem space. |
void |
reinitialise()
Re-initialise the given Entity within the defined domain. |
void |
setBestPosition(Type bestPosition)
Set the best position for the current RNAParticle. |
void |
setFitness(Fitness fitness)
Explicitly set the current fitness value. |
void |
setFitnessCalc(RNAFitness fitnessCalc)
|
void |
setNeighbourhoodBest(Particle particle)
Set the neighbourhood best particle for the current Particle based on the topology of the current particle. |
void |
setRNAFolder(RNAFolder folder)
Set the RNAFolder to use. |
void |
updateControlParameters()
Update all the ControlParameters that are maintained within the Particle. |
void |
updatePosition()
Update the position of the Particle. |
void |
updateVelocity()
Update the velocity of the Particle. |
Methods inherited from class net.sourceforge.cilib.entity.AbstractEntity |
---|
getCandidateSolution, getFitness, getFitnessCalculator, getId, getProperties, setCandidateSolution, setFitnessCalculator, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.cilib.entity.Particle |
---|
getFitness |
Methods inherited from interface net.sourceforge.cilib.entity.Entity |
---|
getCandidateSolution, getFitnessCalculator, getId, getProperties, setCandidateSolution, setProperties |
Constructor Detail |
---|
public RNAParticle()
RNAParticle
instance.
public RNAParticle(RNAParticle copy)
copy
- The instance to copy.Method Detail |
---|
public RNAParticle getClone()
getClone
in interface Entity
getClone
in interface Particle
getClone
in interface Cloneable
getClone
in class AbstractParticle
Object.clone()
public boolean equals(Object object)
equals
in class AbstractParticle
object
- The object to compare equality.public int hashCode()
hashCode
in class AbstractParticle
public void setFitness(Fitness fitness)
fitness
- The Fitness to set.public Fitness getBestFitness()
getBestFitness
in interface Entity
getBestFitness
in interface Particle
getBestFitness
in class AbstractParticle
public int getDimension()
getDimension
in interface Entity
getDimension
in interface Particle
getDimension
in class AbstractParticle
public void initialise(OptimisationProblem problem)
problem
- The OptimisationProblem to based the initialisation on.public StructuredType getPosition()
getPosition
in interface Particle
getPosition
in class AbstractParticle
public StructuredType getBestPosition()
getBestPosition
in interface Particle
getBestPosition
in class AbstractParticle
public void setBestPosition(Type bestPosition)
bestPosition
- The best position to be set.public StructuredType getVelocity()
getVelocity
in interface Particle
getVelocity
in class AbstractParticle
public void setNeighbourhoodBest(Particle particle)
setNeighbourhoodBest
in interface Particle
setNeighbourhoodBest
in class AbstractParticle
particle
- The particle to use as the current particle's neighhod best particlepublic Particle getNeighbourhoodBest()
getNeighbourhoodBest
in interface Particle
getNeighbourhoodBest
in class AbstractParticle
public void updatePosition()
updatePosition
in interface Particle
updatePosition
in class AbstractParticle
public void updateVelocity()
updateVelocity
in interface Particle
updateVelocity
in class AbstractParticle
public void updateControlParameters()
updateControlParameters
in interface Particle
updateControlParameters
in class AbstractParticle
public void setRNAFolder(RNAFolder folder)
folder
- The RNAFolder to be used by the current RNAParticle.public void setFitnessCalc(RNAFitness fitnessCalc)
fitnessCalc
- The fitnessCalc to set.public RNAFitness getFitnessCalc()
public void reinitialise()
public void calculateFitness(boolean count)
Entity
. This method may or may not
increment the number of fitness evaluations of the algorithm.
calculateFitness
in interface Entity
calculateFitness
in class AbstractParticle
count
- Add or do not add this fitness evaluation to the algorithm global count.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |