Class TestParameters

java.lang.Object
cnuphys.snr.test.TestParameters

public class TestParameters extends Object
  • Field Details

    • showClusters

      public static boolean showClusters
      used to show clusters
    • noiseOff

      public static boolean noiseOff
      used to "show clean data
  • Constructor Details

    • TestParameters

      public TestParameters()
  • Method Details

    • getThetaMax

      public static double getThetaMax()
      Get the maximum track tilt angle in degrees.
      Returns:
      the maximum track tilt angle in degrees.
    • paramString

      public static String paramString()
    • setThetaMax

      public static void setThetaMax(double thetaMax)
      Set the maximum track tilt angle.
      Parameters:
      thetaMax - the maximum track tilt angle in degrees.
    • getProbTracks

      public static double[] getProbTracks()
      Get the probability of increasing numbers of tracks.
      Returns:
      an array that should be probabilities in descending order.
    • setProbTracks

      public static void setProbTracks(double[] probTracks)
      Set the probability of increasing numbers of tracks.
      Parameters:
      probTracks - an array that should be probabilities in descending order.
    • getGenericHitColor

      public static Color getGenericHitColor()
    • setGenericHitColor

      public static void setGenericHitColor(Color genericHitColor)
    • getRealityNoiseColor

      public static Color getRealityNoiseColor()
    • getSavedNoiseColor

      public static Color getSavedNoiseColor()
    • setRealityNoiseColor

      public static void setRealityNoiseColor(Color realityNoiseColor)
    • getRealityTrackColor

      public static Color getRealityTrackColor()
    • setRealityTrackColor

      public static void setRealityTrackColor(Color realityTrackColor)
    • getAnalyzedNoiseColor

      public static Color getAnalyzedNoiseColor()
    • setAnalyzedNoiseColor

      public static void setAnalyzedNoiseColor(Color analyzedNoiseColor)
    • getAnalyzedTrackColor

      public static Color getAnalyzedTrackColor()
    • setAnalyzedTrackColor

      public static void setAnalyzedTrackColor(Color analyzedTrackColor)
    • getTrackColor

      public static Color getTrackColor()
    • setTrackColor

      public static void setTrackColor(Color trackColor)
    • getNoiseRate

      public static double getNoiseRate()
    • getProbBlob

      public static double getProbBlob()
    • getBlobSize

      public static int getBlobSize()
    • setNoiseRate

      public static void setNoiseRate(double noiseRate)
    • getProbBadWire

      public static double getProbBadWire()
    • setProbBadWire

      public static void setProbBadWire(double probBadWire)
    • getAccumulationIncrement

      public static int getAccumulationIncrement()
    • setAccumulationIncrement

      public static void setAccumulationIncrement(int accumulationIncrement)
    • getStroke

      public static Stroke getStroke(float lineWidth, LineStyle lineStyle)
      Gets a stroke appropriate for the line width and line type. Try the hash table first, if not found create the Stroke and place it in the hashtable for future use.
      Parameters:
      lineWidth - the desired line width in pixels.
      lineStyle - the desired line style.
      Returns:
      the appropriate stroke.