瀏覽代碼

added isSetuoRequired() to the interfaces

jascha Bohne 8 年之前
父節點
當前提交
2d42a17e7f

+ 7 - 0
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/metrics/ScopvizGraphMetric.java

@@ -9,6 +9,13 @@ import javafx.util.Pair;
 
 public interface ScopvizGraphMetric {
 
+	/**
+	 * Returns true if the Metric requires the Setup() to be called 
+	 * if this is false setup() will not be called.
+	 */
+	public boolean isSetupRequired ();
+	
+	
 	/**
 	 * calculate the metric on the graph.
 	 * 

+ 6 - 0
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/metrics/ScopvizGraphOperator.java

@@ -6,6 +6,12 @@ import de.tu_darmstadt.informatik.tk.scopviz.main.MyGraph;
 
 public interface ScopvizGraphOperator {
 
+	/**
+	 * Returns true if the GraphOperator requires the Setup() to be called 
+	 * if this is false setup() will not be called.
+	 */
+	public boolean isSetupRequired ();
+	
 	/**
 	 * calculates a new Version of the Graph using the given operator.
 	 *