sealabqualitygroup / easier Goto Github PK
View Code? Open in Web Editor NEWEvolutionary Approach for multi-objective Software archItecturE Refactoring
Home Page: http://sealabtools.di.univaq.it/EASIER/
Evolutionary Approach for multi-objective Software archItecturE Refactoring
Home Page: http://sealabtools.di.univaq.it/EASIER/
The EcoreUtil.copy
returns null when sourceAEI
is an instance of an array (i.e., it has a selector).
public void execute() { clonedAEI = (ArchiElemInstance) EcoreUtil.copy(sourceAEI); clonedAEI.setTypeOf(sourceAEI.getTypeOf()); clonedAEI.setInstanceName(sourceAEI.getInstanceName() + "_cloned_" + getRandomCloneIndex()); ((AEmiliaSpecification) this.getModel()).getArchiTypeDecl().getAtDeclaration().getAeiDecl().add(clonedAEI); cloningOutputInteractions(); cloningInputInteractions(); cloningArchitecturalInteraction();
.
Check the commit 961edf8
the concurrent file accessing might cause the exception.
It requires a more in-depth investigation.
It throws an exception when EASIER calculates the computing time.
The bug seems to be related to the following System.out.println
private Map.Entry<Algorithm, Long> getComputingTime(ExperimentAlgorithm<S, Result> algorithm, int id) {
long initTime = System.currentTimeMillis();
algorithm.runAlgorithm(id, this.experiment);
System.out.println(this.experiment.getProblemList().get(id).toString());
long computingTime = System.currentTimeMillis() - initTime;
return new AbstractMap.SimpleEntry<Algorithm, Long>(algorithm.getAlgorithm(), computingTime);// new
}
java.lang.IndexOutOfBoundsException: Index 12 out-of-bounds for length 12 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:440) at it.univaq.disim.sealab.metaheuristic.evolutionary.experiment.RExecuteAlgorithms.getComputingTime(RExecuteAlgorithms.java:60) at it.univaq.disim.sealab.metaheuristic.evolutionary.experiment.RExecuteAlgorithms.lambda$run$0(RExecuteAlgorithms.java:48) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1492) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:952) at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:926) at java.base/java.util.stream.AbstractTask.compute(AbstractTask.java:327) at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408) at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateParallel(ReduceOps.java:919) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at it.univaq.disim.sealab.metaheuristic.evolutionary.experiment.RExecuteAlgorithms.run(RExecuteAlgorithms.java:48) at it.univaq.disim.sealab.metaheuristic.evolutionary.Controller.runExperiment(Controller.java:281) at it.univaq.disim.sealab.metaheuristic.Launcher.main(Launcher.java:110)
Add the header to the final CSV containing all generated solutions
Sol-ID;perfQ;Arch-Dist,Pas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.