eaLib API Docs
Last Modified : January 7 2002

mss.ea.chr
Class LongChromosome

java.lang.Object
  |
  +--mss.ea.chr.Chromosome
        |
        +--mss.ea.chr.LongChromosome
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class LongChromosome
extends Chromosome

Chromosome of type Long.

Since:
0.1
Version:
0.1 (08-28-2000)
Author:
Andreas Rummler
See Also:
Serialized Form

Fields inherited from class mss.ea.chr.Chromosome
co
 
Constructor Summary
LongChromosome(long l)
          Constructor with long number.
LongChromosome(java.lang.Long l)
          Constructor with Long object.
 
Method Summary
 java.lang.Object clone()
          Clones the chromosome.
 boolean equals(java.lang.Object o)
          Test for equality.
 long longValue()
          Returns the chromosome object as a long value.
 
Methods inherited from class mss.ea.chr.Chromosome
getChromosomeObject, getObject, setChromosomeObject, setObject, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongChromosome

public LongChromosome(java.lang.Long l)
Constructor with Long object.
Parameters:
f - Long object for Chromosome

LongChromosome

public LongChromosome(long l)
Constructor with long number.
Parameters:
l - long number for chromosome
Method Detail

clone

public java.lang.Object clone()
Clones the chromosome.
Overrides:
clone in class Chromosome
Returns:
copy of chromosome

longValue

public long longValue()
Returns the chromosome object as a long value.
Returns:
chromsome object as long value

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

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS