Change GraphModificationFunctions to interface

This commit is contained in:
2022-02-24 15:18:09 -06:00
parent a5238624f1
commit dd64ac2731
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
public abstract class GraphModificationFunctions { public interface GraphModificationFunctions {
//remove over- and under-weight edges //remove over- and under-weight edges
public static List<Integer[]> filterByOverlapThresholds(SimpleWeightedGraph<Integer, DefaultWeightedEdge> graph, public static List<Integer[]> filterByOverlapThresholds(SimpleWeightedGraph<Integer, DefaultWeightedEdge> graph,

View File

@@ -17,7 +17,7 @@ import java.util.stream.IntStream;
import static java.lang.Float.*; import static java.lang.Float.*;
//NOTE: "sequence" in method and variable names refers to a peptide sequence from a simulated T cell //NOTE: "sequence" in method and variable names refers to a peptide sequence from a simulated T cell
public class Simulator { public class Simulator implements GraphModificationFunctions {
private static final int cdr3AlphaIndex = 0; private static final int cdr3AlphaIndex = 0;
private static final int cdr3BetaIndex = 1; private static final int cdr3BetaIndex = 1;
private static final int cdr1AlphaIndex = 2; private static final int cdr1AlphaIndex = 2;