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 aBinaryGenotype
object as the binary analogue of aChoice
object. TheBinaryGenotype
object holds the corresponding binary representation of the value stored in aChoice
object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.uka.ipd.sdq.dsexplore.opt4j.genotype.BinaryGenotypeRepresentation
BinaryGenotypeRepresentation.TypeOfDegree
-
-
Constructor Summary
Constructors Constructor Description BinaryGenotype()
BinaryGenotype(List<E> BinaryChoice, BinaryGenotypeRepresentation.TypeOfDegree DegreeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, Collection<? extends E> c)
boolean
addAll(Collection<? extends E> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
E
get(int index)
BinaryGenotypeRepresentation.TypeOfDegree
getDegreeType()
List<E>
getInternalList()
int
indexOf(Object o)
boolean
isEmpty()
Iterator<E>
iterator()
int
lastIndexOf(Object o)
ListIterator<E>
listIterator()
ListIterator<E>
listIterator(int index)
E
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
E
set(int index, E element)
void
setDegreeType(BinaryGenotypeRepresentation.TypeOfDegree D)
void
setInternalList(List<E> list)
int
size()
List<E>
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 Detail
-
BinaryGenotype
public BinaryGenotype()
-
BinaryGenotype
public BinaryGenotype(List<E> BinaryChoice, BinaryGenotypeRepresentation.TypeOfDegree DegreeType)
-
-
Method Detail
-
add
public boolean add(E e)
-
addAll
public boolean addAll(Collection<? extends E> c)
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
clear
public void clear()
-
contains
public boolean contains(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<E extends Number>
- Specified by:
containsAll
in interfaceList<E extends Number>
-
isEmpty
public boolean isEmpty()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<E extends Number>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator
in interfaceList<E extends Number>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfaceList<E extends Number>
-
remove
public boolean remove(Object o)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
size
public int size()
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
setDegreeType
public void setDegreeType(BinaryGenotypeRepresentation.TypeOfDegree D)
- Specified by:
setDegreeType
in interfaceBinaryGenotypeRepresentation<E extends Number>
-
getDegreeType
public BinaryGenotypeRepresentation.TypeOfDegree getDegreeType()
- Specified by:
getDegreeType
in interfaceBinaryGenotypeRepresentation<E extends Number>
-
-