All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.dagere.kopeme.kopemedata.VMResultChunk Maven / Gradle / Ivy

package de.dagere.kopeme.kopemedata;

import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * Saves one chunk, i.e. one belonging together set of data. This might be data from the executions of two versions of a benchmark on the same computer.
 * 
 * @author DaGeRe
 *
 */
public class VMResultChunk {
   private long chunkStartTime;

   private List results = new LinkedList<>();

   public long getChunkStartTime() {
      return chunkStartTime;
   }

   public void setChunkStartTime(long chunkStartTime) {
      this.chunkStartTime = chunkStartTime;
   }

   public List getResults() {
      return results;
   }

   public void setResults(List results) {
      this.results = results;
   }
   
   @JsonIgnore
   public Set getCommits(){
      Set commits = new HashSet<>();
      for (VMResult result : results) {
         commits.add(result.getCommit());
      }
      return commits;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy