Class DesignDecisionGenotype
java.lang.Object
de.uka.ipd.sdq.dsexplore.opt4j.genotype.DesignDecisionGenotype
- All Implemented Interfaces:
Iterable<Choice>
,Collection<Choice>
,List<Choice>
,org.opt4j.core.Genotype
,org.opt4j.genotype.ListGenotype<Choice>
-
Constructor Summary
ConstructorDescriptionDesignDecisionGenotype
(Candidate emfCandidate) DesignDecisionGenotype
(Candidate emfCandidate, DecisionSpace problem, DesignDecisionGenotype initialCandidateGenotype) create new genotype. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends Choice> c) boolean
addAll
(Collection<? extends Choice> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) long
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) <G extends org.opt4j.core.Genotype>
Gremove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) 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
-
DesignDecisionGenotype
public DesignDecisionGenotype() -
DesignDecisionGenotype
-
DesignDecisionGenotype
public DesignDecisionGenotype(Candidate emfCandidate, DecisionSpace problem, DesignDecisionGenotype initialCandidateGenotype) create new genotype. Sort choice in the order of the passed Problem.- Parameters:
emfCandidate
-
-
-
Method Details
-
newInstance
public <G extends org.opt4j.core.Genotype> G newInstance()- Specified by:
newInstance
in interfaceorg.opt4j.core.Genotype
-
size
public int size() -
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Choice>
- Specified by:
containsAll
in interfaceList<Choice>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Choice>
-
listIterator
- Specified by:
listIterator
in interfaceList<Choice>
-
listIterator
- Specified by:
listIterator
in interfaceList<Choice>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
getInternalList
-
getEMFCandidate
-
getNumericID
public long getNumericID()
-