Class ActivationStoreImpl
java.lang.Object
tools.refinery.store.dse.transition.statespace.internal.ActivationStoreImpl
- All Implemented Interfaces:
ActivationStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.refinery.store.dse.transition.statespace.ActivationStore
ActivationStore.VisitResult
-
Constructor Summary
ConstructorDescriptionActivationStoreImpl
(int numberOfTransformations, Consumer<VersionWithObjectiveValue> actionWhenAllActivationVisited) -
Method Summary
Modifier and TypeMethodDescriptiongetRandomAndMarkAsVisited
(VersionWithObjectiveValue version, Random random) boolean
markNewAsVisited
(VersionWithObjectiveValue to, int[] emptyEntrySizes) visitActivation
(VersionWithObjectiveValue from, int transformationIndex, int activationIndex)
-
Constructor Details
-
ActivationStoreImpl
public ActivationStoreImpl(int numberOfTransformations, Consumer<VersionWithObjectiveValue> actionWhenAllActivationVisited)
-
-
Method Details
-
markNewAsVisited
public ActivationStore.VisitResult markNewAsVisited(VersionWithObjectiveValue to, int[] emptyEntrySizes) - Specified by:
markNewAsVisited
in interfaceActivationStore
-
visitActivation
public ActivationStore.VisitResult visitActivation(VersionWithObjectiveValue from, int transformationIndex, int activationIndex) -
hasUnmarkedActivation
- Specified by:
hasUnmarkedActivation
in interfaceActivationStore
-
getRandomAndMarkAsVisited
public ActivationStore.VisitResult getRandomAndMarkAsVisited(VersionWithObjectiveValue version, Random random) - Specified by:
getRandomAndMarkAsVisited
in interfaceActivationStore
-