Skip to content

Commit

Permalink
Add ScriptRunnable interface to QC/LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Oct 31, 2023
1 parent a731d15 commit 26ddba2
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import static com.fujitsu.vdmj.plugins.PluginConsole.println;

import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.Vector;
Expand All @@ -37,8 +38,9 @@
import quickcheck.strategies.QCStrategy;
import vdmj.commands.AnalysisCommand;
import vdmj.commands.InitRunnable;
import vdmj.commands.ScriptRunnable;

public class QuickCheckLSPCommand extends AnalysisCommand implements InitRunnable
public class QuickCheckLSPCommand extends AnalysisCommand implements InitRunnable, ScriptRunnable
{
public final static String CMD = "quickcheck [-?|-help][-t <secs>][-s <strategy>]* [-<strategy:option>]* [<PO numbers/ranges/patterns>]";
private final static String USAGE = "Usage: " + CMD;
Expand Down Expand Up @@ -197,6 +199,12 @@ public String initRun(DAPRequest request)
return "OK";
}

@Override
public String scriptRun(DAPRequest request) throws IOException
{
return initRun(request);
}

@Override
public boolean notWhenRunning()
{
Expand Down

0 comments on commit 26ddba2

Please sign in to comment.