lcsim/src/org/lcsim/contrib/uiowa/structural/likelihood
diff -u -r1.1 -r1.2
--- LikelihoodEvaluator.java 29 Sep 2005 21:04:50 -0000 1.1
+++ LikelihoodEvaluator.java 14 Oct 2005 17:44:49 -0000 1.2
@@ -125,5 +125,15 @@
}
}
-
+ public void writeToFile(String filename)
+ {
+ // Open the file for writing:
+ try {
+ FileOutputStream fos = new FileOutputStream(filename);
+ ObjectOutputStream oos = new ObjectOutputStream(fos);
+ oos.writeObject(this);
+ } catch (java.io.IOException x) {
+ throw new AssertionError("java.io.IOException: "+x);
+ }
+ }
}