Added the default boundary parameters for the benefit of mountain dew

Jonathan Bell [2012-04-11 20:36:22]
Added the default boundary parameters for the benefit of mountain dew
Filename
columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/MetamorphicInputProcessor.java
columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/AddNumericConstant.java
columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/MultiplyByNumericConstant.java
columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Negate.java
columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Reverse.java
columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Shuffle.java
diff --git a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/MetamorphicInputProcessor.java b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/MetamorphicInputProcessor.java
index bf1c0c7..3f94b9f 100644
--- a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/MetamorphicInputProcessor.java
+++ b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/MetamorphicInputProcessor.java
@@ -1,5 +1,7 @@
 package edu.columbia.cs.psl.metamorphic.inputProcessor;

+import java.util.HashSet;
+

 /**
  * A metamorphic input processor is a class that provides a functional
@@ -33,4 +35,6 @@ public abstract class MetamorphicInputProcessor {
 		}
 		return ret;
 	}
+
+	public abstract HashSet<Object[]> getBoundaryDefaultParameters();
 }
diff --git a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/AddNumericConstant.java b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/AddNumericConstant.java
index 8ca0137..05ce815 100644
--- a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/AddNumericConstant.java
+++ b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/AddNumericConstant.java
@@ -1,5 +1,7 @@
 package edu.columbia.cs.psl.metamorphic.inputProcessor.impl;

+import java.util.HashSet;
+
 import edu.columbia.cs.psl.metamorphic.inputProcessor.AbstractElementProcessor;

 public class AddNumericConstant extends AbstractElementProcessor {
@@ -24,4 +26,11 @@ public class AddNumericConstant extends AbstractElementProcessor {
 		throw new IllegalArgumentException("Can't add a constant to an object value");
 	}

+	@Override
+	public HashSet<Object[]> getBoundaryDefaultParameters() {
+		HashSet<Object[]> ret = new HashSet<Object[]>();
+		ret.add(new Object[] {-1,0,1,100,-100,2});
+		return ret;
+	}
+
 }
diff --git a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/MultiplyByNumericConstant.java b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/MultiplyByNumericConstant.java
index 10085db..8980612 100644
--- a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/MultiplyByNumericConstant.java
+++ b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/MultiplyByNumericConstant.java
@@ -1,5 +1,7 @@
 package edu.columbia.cs.psl.metamorphic.inputProcessor.impl;

+import java.util.HashSet;
+
 import edu.columbia.cs.psl.metamorphic.inputProcessor.AbstractElementProcessor;

 public class MultiplyByNumericConstant extends AbstractElementProcessor {
@@ -23,5 +25,10 @@ public class MultiplyByNumericConstant extends AbstractElementProcessor {
 		}
 		throw new IllegalArgumentException("Can't multiply a constant and an object value - param was " + o);
 	}
-
+	@Override
+	public HashSet<Object[]> getBoundaryDefaultParameters() {
+		HashSet<Object[]> ret = new HashSet<Object[]>();
+		ret.add(new Object[] {-1,0,1,100,-100,2});
+		return ret;
+	}
 }
diff --git a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Negate.java b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Negate.java
index 151e482..f54ffc7 100644
--- a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Negate.java
+++ b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Negate.java
@@ -1,5 +1,7 @@
 package edu.columbia.cs.psl.metamorphic.inputProcessor.impl;

+import java.util.HashSet;
+
 import edu.columbia.cs.psl.metamorphic.inputProcessor.AbstractElementProcessor;

 public class Negate extends AbstractElementProcessor {
@@ -21,5 +23,10 @@ public class Negate extends AbstractElementProcessor {
 		// TODO Auto-generated method stub
 		return "Negate";
 	}
-
+	@Override
+	public HashSet<Object[]> getBoundaryDefaultParameters() {
+		HashSet<Object[]> ret = new HashSet<Object[]>();
+		ret.add(null);
+		return ret;
+	}
 }
diff --git a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Reverse.java b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Reverse.java
index f511e9c..177b259 100644
--- a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Reverse.java
+++ b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Reverse.java
@@ -1,6 +1,7 @@
 package edu.columbia.cs.psl.metamorphic.inputProcessor.impl;

 import java.lang.reflect.Array;
+import java.util.HashSet;
 import java.util.List;

 import edu.columbia.cs.psl.metamorphic.inputProcessor.ArrayProcessorHelper;
@@ -28,4 +29,10 @@ public class Reverse extends ArrayProcessorHelper {
 			dest.add(src.get(src.size() - 1 - i));
 		}
 	}
+	@Override
+	public HashSet<Object[]> getBoundaryDefaultParameters() {
+		HashSet<Object[]> ret = new HashSet<Object[]>();
+		ret.add(null);
+		return ret;
+	}
 }
diff --git a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Shuffle.java b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Shuffle.java
index 29b8c11..125ff87 100644
--- a/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Shuffle.java
+++ b/columbus2/src/edu/columbia/cs/psl/metamorphic/inputProcessor/impl/Shuffle.java
@@ -2,6 +2,7 @@ package edu.columbia.cs.psl.metamorphic.inputProcessor.impl;

 import java.lang.reflect.Array;
 import java.util.Collections;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Random;

@@ -37,5 +38,10 @@ public class Shuffle extends ArrayProcessorHelper {
 			destList.add(srcList.get(i));
 		Collections.shuffle(destList);
 	}
-
+	@Override
+	public HashSet<Object[]> getBoundaryDefaultParameters() {
+		HashSet<Object[]> ret = new HashSet<Object[]>();
+		ret.add(null);
+		return ret;
+	}
 }