Giter Site home page Giter Site logo

sealabqualitygroup / easier Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 2.0 27.68 MB

Evolutionary Approach for multi-objective Software archItecturE Refactoring

Home Page: http://sealabtools.di.univaq.it/EASIER/

Java 93.54% Shell 1.21% Python 4.72% D 0.42% Dockerfile 0.11%
genetic-algorithm modeling aemilia architecture-description-language performance performance-antipattern

easier's People

Contributors

danieledipompeo avatar davewilsonfbc avatar mtucci avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

easier's Issues

Cloning an AEI with selector

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

Fix File copying

the concurrent file accessing might cause the exception.
It requires a more in-depth investigation.

Experiments automation

  1. Creation and deploy on the server of the Debian live ISO from: https://github.com/mtucci/experiments-automation
  2. Basic server setup using Ansible scripts
  3. Local build of the LQN solver from sources at a specific tag at our fork
  4. Local build of the container image for the LQN solver (from the same tag)
  5. Local build of Easier from sources at a specific tag
  6. Local build of the Easier container (from the same tag)
  7. Upload of the images to the server
  8. Automated launch of the experiments

IndexOutOfBoundsException

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.