Package statechum.analysis.learning.experiments.ExperimentRunner

Examples of statechum.analysis.learning.experiments.ExperimentRunner.HandleProcessIO


  {
    final StringBuffer converterOutput = new StringBuffer();
    try
    {
      final Process ltlconverter = Runtime.getRuntime().exec(new String[]{pathTo_ltl2ba==null?"ltl2ba":pathTo_ltl2ba, "-f",ltl});// run LTL2BA
      ExperimentRunner.dumpStreams(ltlconverter,timeBetweenHearbeats,new HandleProcessIO() {

      @Override
      public void OnHeartBeat() {// no prodding is done for a short-running converter.
      }
View Full Code Here


          ErlangRunner.dumpProcessOutputOnFailure("dialyzer",p);
        }
        // Receive the type info....
        Process p = Runtime.getRuntime().exec(new String[]{ErlangRunner.getErlangBin()+"typer","--plt",ErlangRunner.getName(f, ERL.PLT),ErlangRunner.getName(f, ERL.ERL)}, null, f.getParentFile());
      final StringBuffer err=new StringBuffer(),out=new StringBuffer();
        ExperimentRunner.dumpStreams(p, LTL_to_ba.timeBetweenHearbeats, new HandleProcessIO() {

            @Override
            public void OnHeartBeat() {// no prodding is done for a short-running converter.
            }
View Full Code Here

          ErlangRuntime.dumpProcessOutputOnFailure("dialyzer",p);
        }
        // Receive the type info....
        Process p = Runtime.getRuntime().exec(new String[]{ErlangRunner.getErlangBin()+"typer","--plt",ErlangRunner.getName(f, ERL.PLT, true),ErlangRunner.getName(f, ERL.ERL,false)}, null);//, ErlangRunner.getErlangBeamDirectory());
      final StringBuffer err=new StringBuffer(),out=new StringBuffer();
        ExperimentRunner.dumpStreams(p, LTL_to_ba.timeBetweenHearbeats, new HandleProcessIO() {

            @Override
            public void OnHeartBeat() {// no prodding is done for a short-running converter.
            }
View Full Code Here

   *            process to run.
   */
  public static void dumpProcessOutputOnFailure(String name, Process p) {
    final StringBuffer err = new StringBuffer(), out = new StringBuffer();
    ExperimentRunner.dumpStreams(p, timeBetweenChecks,
        new HandleProcessIO() {

          @Override
          public void OnHeartBeat() {// no prodding is done for a
                        // short-running converter.
          }
View Full Code Here

        stdDumper = new Thread(new Runnable() {

          @Override
          public void run() {
            ExperimentRunner.dumpStreams(erlangProcess,
                timeBetweenChecks, new HandleProcessIO() {

                  @Override
                  public void OnHeartBeat() {
                    // no prodding is done - we are
                    // being prodded by Erlang instead.
View Full Code Here

  {
    final StringBuffer converterOutput = new StringBuffer();
    try
    {
      final Process ltlconverter = Runtime.getRuntime().exec(new String[]{pathTo_ltl2ba==null?"ltl2ba":pathTo_ltl2ba, "-f",ltl});// run LTL2BA
      ExperimentRunner.dumpStreams(ltlconverter,timeBetweenHearbeats,new HandleProcessIO() {

      @Override
      public void OnHeartBeat() {// no prodding is done for a short-running converter.
      }
View Full Code Here

   *            process to run.
   */
  public static void dumpProcessOutputOnFailure(String name, Process p) {
    final StringBuffer err = new StringBuffer(), out = new StringBuffer();
    ExperimentRunner.dumpStreams(p, timeBetweenChecks,
        new HandleProcessIO() {

          @Override
          public void OnHeartBeat() {// no prodding is done for a
                        // short-running converter.
          }
View Full Code Here

        stdDumper = new Thread(new Runnable() {

          @Override
          public void run() {
            ExperimentRunner.dumpStreams(processWithErlangRuntime,
                timeBetweenChecks, new HandleProcessIO() {

                  @Override
                  public void OnHeartBeat() {
                    // no prodding is done - we are
                    // being prodded by Erlang instead.
View Full Code Here

  {
    final StringBuffer converterOutput = new StringBuffer();
    try
    {
      final Process ltlconverter = Runtime.getRuntime().exec(new String[]{"ltl2ba", "-f",ltl});// run LTL2BA
      ExperimentRunner.dumpStreams(ltlconverter,timeBetweenHearbeats,new HandleProcessIO() {

      public void OnHeartBeat() {// no prodding is done for a short-running converter.
      }

      public void StdErr(StringBuffer b) {
View Full Code Here

  public void attemptRun(String MagicNumber) throws IOException
  {
        Process erlangProcess = Runtime.getRuntime().exec(new String[]{ErlangRunner.getErlangBin() + "erl","-run",ErlangRunner.getErlName(output.getName()),"testFun","arg",
            "-noshell"}, null, testDir);
      final StringBuffer err=new StringBuffer(),out=new StringBuffer();
        ExperimentRunner.dumpStreams(erlangProcess, LTL_to_ba.timeBetweenHearbeats, new HandleProcessIO() {

            @Override
            public void OnHeartBeat() {// no prodding is done for a short-running converter.
            }
View Full Code Here

TOP

Related Classes of statechum.analysis.learning.experiments.ExperimentRunner.HandleProcessIO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.