Class BinaryGenotype<E extends Number>
java.lang.Object
de.uka.ipd.sdq.dsexplore.opt4j.genotype.BinaryGenotype<E>
- Type Parameters:
E
-
- All Implemented Interfaces:
BinaryGenotypeRepresentation<E>
,Iterable<E>
,Collection<E>
,List<E>
public class BinaryGenotype<E extends Number>
extends Object
implements BinaryGenotypeRepresentation<E>
One can view a
BinaryGenotype
object as the binary analogue of a Choice
object.
The BinaryGenotype
object holds the corresponding binary representation
of the value stored in a Choice
object.-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uka.ipd.sdq.dsexplore.opt4j.genotype.BinaryGenotypeRepresentation
BinaryGenotypeRepresentation.TypeOfDegree
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryGenotype
(List<E> BinaryChoice, BinaryGenotypeRepresentation.TypeOfDegree DegreeType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends E> c) boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) void
void
setInternalList
(List<E> list) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
BinaryGenotype
public BinaryGenotype() -
BinaryGenotype
-
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E extends Number>
- Specified by:
containsAll
in interfaceList<E extends Number>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E extends Number>
-
listIterator
- Specified by:
listIterator
in interfaceList<E extends Number>
-
listIterator
- Specified by:
listIterator
in interfaceList<E extends Number>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
setDegreeType
- Specified by:
setDegreeType
in interfaceBinaryGenotypeRepresentation<E extends Number>
-
getDegreeType
- Specified by:
getDegreeType
in interfaceBinaryGenotypeRepresentation<E extends Number>
-
setInternalList
-
getInternalList
-