From fe854029707bdaef2be7afce7abfc4bf551dade4 Mon Sep 17 00:00:00 2001 From: Remco Bouckaert Date: Mon, 9 Sep 2024 16:43:18 +1200 Subject: [PATCH] facilitate beast "-validate" option CompEvol/BeastFX#86 --- src/beast/base/inference/Runnable.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/beast/base/inference/Runnable.java b/src/beast/base/inference/Runnable.java index 926fc73b..0683763a 100644 --- a/src/beast/base/inference/Runnable.java +++ b/src/beast/base/inference/Runnable.java @@ -10,7 +10,11 @@ public abstract class Runnable extends BEASTObject { /** entry point for anything runnable **/ abstract public void run() throws Exception; - /** + + /** make sure whatever is runnable is valid, but do not run yet **/ + public void validate() throws Exception {} + + /** * Set up information related to the file for (re)storing the State. * The Runnable implementation is responsible for making its * State synchronising with the file *