Class InfrastructureTester

java.lang.Object
org.protelis.test.InfrastructureTester

public final class InfrastructureTester extends Object
Test protelis simulations.
  • Field Details

    • DC

      public static final String DC
      Skip this value while comparing results.
      See Also:
    • DELTA

      public static final double DELTA
      Tolerance while comparing double values.
      See Also:
    • SIMULATION_STEPS

      public static final int SIMULATION_STEPS
      Default runs.
      See Also:
    • STABILITY_STEPS

      public static final int STABILITY_STEPS
      Check function stability for this number of steps.
      See Also:
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Run a test.
      Parameters:
      args - parameters
      Throws:
      IOException - file not found
    • multiRunTest

      public static void multiRunTest(String file)
      Test the given file.
      Parameters:
      file - file to be tested
    • runTest

      public static void runTest(String file)
      Test the given file.
      Parameters:
      file - file to be tested
    • runTest

      public static void runTest(String file, int exampleRuns, int stabilitySteps)
      Test the given file.
      Parameters:
      file - file to be tested
      exampleRuns - number of runs
      stabilitySteps - check function stability for this number of steps
    • runTest

      public static void runTest(String file, int simulationSteps, int stabilitySteps, Object expectedValue)
      Test a given property.
      Parameters:
      file - file to be tested
      simulationSteps - number of runs
      stabilitySteps - check function stability for this number of steps
      expectedValue - value to be checked
    • runTest

      public static void runTest(String file, Object expectedValue)
      Test a given property.
      Parameters:
      file - file to be tested
      expectedValue - value to be checked