mss.ea.chr
Class VectorChromosome
java.lang.Object
|
+--mss.ea.chr.Chromosome
|
+--mss.ea.chr.ListChromosome
|
+--mss.ea.chr.VectorChromosome
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class VectorChromosome
- extends ListChromosome
Chromosome of type Vector.
- Since:
- 0.1
- Version:
- 0.1 (06-21-2001)
- Author:
- Andreas Rummler
- See Also:
- Serialized Form
Constructor Summary |
VectorChromosome(java.util.Vector v)
Constructor with Vector. |
Method Summary |
java.lang.Object |
clone()
Clones the chromosome. |
boolean |
equals(java.lang.Object o)
Test for equality.
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VectorChromosome
public VectorChromosome(java.util.Vector v)
- Constructor with Vector.
- Parameters:
v
- Vector for chromosome
clone
public java.lang.Object clone()
- Clones the chromosome.
- Overrides:
clone
in class Chromosome
- Returns:
- copy of chromosome
equals
public boolean equals(java.lang.Object o)
- Description copied from class:
Chromosome
- Test for equality.
This method must overloaded to ensure an appropriate equality tests. This method returns true if two chromosomes
contain the same contents, they need not to be the same objects.
- Overrides:
equals
in class Chromosome
- Following copied from class:
mss.ea.chr.Chromosome
- Parameters:
o
- object to compare to- Returns:
- true, if both chromosomes are holding the same information
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS