Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump learnlib-distribution from 0.14.0 to 0.16.0 #28

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ updates:
- dependencies
ignore:
- dependency-name: "org.uma.jmetal*"
- dependency-name: "jmetal-*"
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
<dependency>
<groupId>de.learnlib.distribution</groupId>
<artifactId>learnlib-distribution</artifactId>
<version>0.14.0</version>
<version>0.16.0</version>
<type>pom</type>
</dependency>

Expand Down Expand Up @@ -315,11 +315,24 @@
<artifactId>jmetal-problem</artifactId>
<version>5.9</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin -->
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
</project>
12 changes: 6 additions & 6 deletions src/main/java/org/group_mmm/BlackBoxVerifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class BlackBoxVerifier {
private List<MealyMachine<?, String, ?, String>> cexMealy;
private Alphabet<String> inputAlphabet;
private LearningAlgorithm.MealyLearner<String, String> learner;
private EQOracleChain.MealyEQOracleChain<String, String> eqOracle;
private MealyEQOracleChain<String, String> eqOracle;
private List<String> properties;
private List<Word<String>> cexInput;
private List<String> cexProperty;
Expand Down Expand Up @@ -95,8 +95,8 @@ class BlackBoxVerifier {
}

// create an equivalence oracle, that first searches for a counter example using the ltl properties, and next
this.eqOracle = new EQOracleChain.MealyEQOracleChain<>(
new CExFirstOracle.MealyCExFirstOracle<>(ltlFormulas));
this.eqOracle = new MealyEQOracleChain<>(
new MealyCExFirstOracle<>(ltlFormulas));
}

ArrayList<PropertyOracle.MealyPropertyOracle<String, String, String>> getLtlFormulas() {
Expand All @@ -113,15 +113,15 @@ public MembershipOracle.MealyMembershipOracle<String, String> getMemOracle() {
}

void addWpMethodEQOracle(int maxDepth) {
addEqOracle(new WpMethodEQOracle.MealyWpMethodEQOracle<>(memOracle, maxDepth));
addEqOracle(new MealyWpMethodEQOracle<>(memOracle, maxDepth));
}

void addBFOracle(double multiplier) {
addEqOracle(new MealyBFInclusionOracle<>(memOracle, multiplier));
}

void addRandomWordEQOracle(int minLength, int maxLength, int maxTests, Random random, int batchSize) {
addEqOracle(new RandomWordsEQOracle.MealyRandomWordsEQOracle<>(
addEqOracle(new MealyRandomWordsEQOracle<>(
memOracle, minLength, maxLength, maxTests, random, batchSize));
}

Expand All @@ -131,7 +131,7 @@ void addRandomWalkEQOracle(double restartProbability, long maxSteps, Random rand
}

void addCompleteExplorationEQOracle(int minDepth, int maxDepth, int batchSize) {
addEqOracle(new CompleteExplorationEQOracle.MealyCompleteExplorationEQOracle<>(
addEqOracle(new MealyCompleteExplorationEQOracle<>(
memOracle, minDepth, maxDepth, batchSize));
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/group_mmm/SimulinkSULMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import lombok.extern.slf4j.Slf4j;
import net.automatalib.words.Alphabet;
import net.automatalib.words.Word;
import net.automatalib.words.impl.SimpleAlphabet;
import net.automatalib.words.impl.GrowingMapAlphabet;

import java.util.*;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -130,10 +130,10 @@ public List<Double> mapConcrete(List<Double> concreteOutput) {
}

Alphabet<String> constructAbstractAlphabet() {
return new SimpleAlphabet<>(this.inputMapper.keySet());
return new GrowingMapAlphabet<>(this.inputMapper.keySet());
}

Alphabet<List<Double>> constructConcreteAlphabet() {
return new SimpleAlphabet<>(this.inputMapper.values());
return new GrowingMapAlphabet<>(this.inputMapper.values());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@ public class SimulinkSteadyStateGeneticAlgorithm extends SteadyStateGeneticAlgor
private EQSearchProblem problem;
private PropertyOracle.MealyPropertyOracle<String, String, String> ltlOracle;

SimulinkSteadyStateGeneticAlgorithm(EQSearchProblem problem, int maxEvaluations, int populationSize, CrossoverOperator<IntegerSolution> crossoverOperator, MutationOperator<IntegerSolution> mutationOperator, SelectionOperator<List<IntegerSolution>, IntegerSolution> selectionOperator, SolutionListEvaluator<IntegerSolution> evaluator, PropertyOracle.MealyPropertyOracle<String, String, String> ltlOracle) {
SimulinkSteadyStateGeneticAlgorithm(EQSearchProblem problem, int maxEvaluations, int populationSize,
CrossoverOperator<IntegerSolution> crossoverOperator,
MutationOperator<IntegerSolution> mutationOperator,
SelectionOperator<List<IntegerSolution>, IntegerSolution> selectionOperator,
SolutionListEvaluator<IntegerSolution> evaluator,
PropertyOracle.MealyPropertyOracle<String, String, String> ltlOracle) {
super(problem, maxEvaluations, populationSize, crossoverOperator, mutationOperator, selectionOperator);
this.problem = problem;
this.ltlOracle = ltlOracle;
}

/** {@inheritDoc} */
/**
* {@inheritDoc}
*/
@Override
protected boolean isStoppingConditionReached() {
if (super.isStoppingConditionReached()) {
Expand All @@ -40,7 +47,7 @@ protected boolean isStoppingConditionReached() {

/**
* {@inheritDoc}
*
* <p>
* Create initial population only for the initial run
*/
@Override
Expand Down