@Override public boolean mutateAlternate(TrajectoryFitness parent1, TrajectoryFitness parent2, ThreadContext context) { dsm.executeTrajectoryWithMinimalBacktrackWithoutStateCoding(parent2t, index2); dsm.tryFireActivation(parent1t[index1]); context.executeTrajectoryByTryingWithoutStateCoding(parent2t, index2 + 1, p2Size); return true; }
@Override public boolean mutateAlternate(TrajectoryFitness parent1, TrajectoryFitness parent2, ThreadContext context) { context.executeTrajectoryWithMinimalBacktrackWithoutStateCoding(parent2ts, index2); context.executeTrajectoryByTryingWithoutStateCoding(parent1ts, index1, p1Size); return true; }
@Override public ChangeableConflictSet createConflictSet() { lastCreatedConflictSet = new DseConflictSet(this, activationOrderingconflictResolver, stateCoder); return lastCreatedConflictSet; }
@Override public int executeTrajectoryByTryingWithoutStateCoding(Object[] activationIds) { return designSpaceManager.executeTrajectoryByTryingWithoutStateCoding(activationIds); }
public synchronized ExplorerThread tryStartNewThreadWithoutModelClone(ThreadContext originalThreadContext, IStrategy strategy) { return tryStartNewThread(originalThreadContext, originalThreadContext.getModel(), strategy); }
@Override public boolean mutate(TrajectoryFitness parent, ThreadContext context) { context.executeTrajectoryWithMinimalBacktrackWithoutStateCoding(parent.trajectory); return context.executeRandomActivationId(); }
@Override public boolean tryExecuteAcitvationId(Object activationId) { return designSpaceManager.tryFireActivation(activationId); }
@Override public void backtrackUntilRoot() { designSpaceManager.undoUntilRoot(); }
@Override public boolean isCurrentStateAlreadyTraversed() { return designSpaceManager.isNewModelStateAlreadyTraversed(); }
@Override public void init(ThreadContext context) { so = (EvolutionaryStrategySharedObject) context.getSharedObject(); }
@Override public BatchTransformationRule<?, ?> getRuleByActivationId(Object activationId) { return designSpaceManager.getRuleByActivationId(activationId); }
/** * Sets a {@link IStateCoderFactory} for which will be used for creating {@link IStateCoder}s. The default * implementation is the {@link SimpleStateCoderFactory}, which works well in most of the cases. * * @param stateCoderFactory * The factory. */ public final void setStateCoderFactory(IStateCoderFactory stateCoderFactory) { globalContext.setStateCoderFactory(stateCoderFactory); }
/** * Sets the solution store for strategies. Please see the {@link SolutionStore} for how to configure it. * * @param solutionStore * The parameterized {@link SolutionStore} implementation. */ public void setSolutionStore(SolutionStore solutionStore) { globalContext.setSolutionStore(solutionStore); }
@Override public void executeTrajectory(Object[] activationIds) { designSpaceManager.executeTrajectory(activationIds); }
@Override public Object getSharedObject() { return globalContext.getSharedObject(); }
@Override public ExplorerThread tryStartNewThread(IStrategy strategy) { return globalContext.tryStartNewThread(this, strategy); }
@Override public Collection<Object> getUntraversedActivationIds() { return designSpaceManager.getUntraversedTransitionsFromCurrentState(); }
@Override public void executeTrajectoryWithMinimalBacktrack(Object[] trajectory) { designSpaceManager.executeTrajectoryWithMinimalBacktrack(trajectory); }
@Override public boolean mutateAlternate(TrajectoryFitness parent1, TrajectoryFitness parent2, ThreadContext context) { context.executeTrajectoryWithMinimalBacktrackWithoutStateCoding(parent2ts, index); context.executeTrajectoryByTryingWithoutStateCoding(parent1ts, index, p1Size); return true; }
@Override public int executeTrajectoryByTryingWithoutStateCoding(Object[] activationIds, int fromIncludedIndex, int toExcludedIndex) { return designSpaceManager.executeTrajectoryByTryingWithoutStateCoding(activationIds, fromIncludedIndex, toExcludedIndex); }