nz.ac.waikato.modeljunit.gui
Class Parameter

java.lang.Object
  extended by nz.ac.waikato.modeljunit.gui.Parameter

public class Parameter
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_DIRECTORY
           
static int NUM_COVERAGE
           
 
Constructor Summary
Parameter()
           
 
Method Summary
static java.lang.String getAlgorithmName()
           
static java.lang.String getClassName()
           
static java.awt.Color[] getCoverageLineColors()
           
static boolean[] getCoverageOption()
           
static boolean getFailureVerbosity()
           
static int getFileChooserOpenMode()
           
static boolean getGenerateGraph()
           
static java.lang.String getModelChooserDirectory()
          The absolute path to the directory that contains the .class model files.
static java.lang.String getModelFolder()
          The path to the directory containing the model files.
static java.lang.String getModelPath()
          The absolute path of the model (.class) file.
static java.lang.String getPackageLocation()
          The path to the top-level package directory of the model.
static java.lang.String getPackageName()
          The name of the Java package that contains the model.
static double getResetProbability()
           
static java.lang.String getTestCaseVariableName()
           
static boolean getVerbosity()
           
static boolean isTestRunnable(boolean bShowErrMsg)
          The function will test whether a model was loaded and whether a algorithm was selected, if both been done, return true otherwise return false
static void setAlgorithmName(java.lang.String algorithmname)
           
static void setClassName(java.lang.String classname)
           
static void setCoverageLineColors(java.awt.Color[] color)
           
static void setCoverageOption(boolean[] options)
           
static void setFailureVerbosity(boolean verb)
           
static void setFileChooserOpenMode(int mode)
           
static void setGenerateGraph(boolean print)
           
static void setModelChooserDirectory(java.lang.String directory)
          Set the absolute path (including the package directories) to the .class model files.
static void setModelFolder(java.lang.String folder)
          Set the path to the directory containing the model files.
static void setModelPath(java.lang.String location)
          Set the absolute path of the model (.class) file.
static void setPackageLocation(java.lang.String location)
          Set the path to the top-level package directory of the model.
static void setPackageName(java.lang.String name)
          The name of the Java package that contains the model.
static void setResetProbability(double probability)
           
static void setTestCaseVariableName(java.lang.String name)
           
static void setVerbosity(boolean verb)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_DIRECTORY

public static final java.lang.String DEFAULT_DIRECTORY

NUM_COVERAGE

public static final int NUM_COVERAGE
See Also:
Constant Field Values
Constructor Detail

Parameter

public Parameter()
Method Detail

getModelFolder

public static java.lang.String getModelFolder()
The path to the directory containing the model files.


setModelFolder

public static void setModelFolder(java.lang.String folder)
Set the path to the directory containing the model files.


getPackageLocation

public static java.lang.String getPackageLocation()
The path to the top-level package directory of the model.


getPackageName

public static java.lang.String getPackageName()
The name of the Java package that contains the model.


setPackageLocation

public static void setPackageLocation(java.lang.String location)
Set the path to the top-level package directory of the model.


setPackageName

public static void setPackageName(java.lang.String name)
The name of the Java package that contains the model. This must be a dot-separated sequence of names.


getGenerateGraph

public static boolean getGenerateGraph()

setGenerateGraph

public static void setGenerateGraph(boolean print)

getResetProbability

public static double getResetProbability()

setResetProbability

public static void setResetProbability(double probability)

getVerbosity

public static boolean getVerbosity()

setVerbosity

public static void setVerbosity(boolean verb)

getFailureVerbosity

public static boolean getFailureVerbosity()

setFailureVerbosity

public static void setFailureVerbosity(boolean verb)

getClassName

public static java.lang.String getClassName()

setClassName

public static void setClassName(java.lang.String classname)

getModelPath

public static java.lang.String getModelPath()
The absolute path of the model (.class) file.


setModelPath

public static void setModelPath(java.lang.String location)
Set the absolute path of the model (.class) file.


getAlgorithmName

public static java.lang.String getAlgorithmName()

setAlgorithmName

public static void setAlgorithmName(java.lang.String algorithmname)

getTestCaseVariableName

public static java.lang.String getTestCaseVariableName()

setTestCaseVariableName

public static void setTestCaseVariableName(java.lang.String name)

getCoverageOption

public static boolean[] getCoverageOption()

setCoverageOption

public static void setCoverageOption(boolean[] options)

getModelChooserDirectory

public static java.lang.String getModelChooserDirectory()
The absolute path to the directory that contains the .class model files. Note that this includes the package directories.

Returns:

setModelChooserDirectory

public static void setModelChooserDirectory(java.lang.String directory)
Set the absolute path (including the package directories) to the .class model files.

Parameters:
directory -

getFileChooserOpenMode

public static int getFileChooserOpenMode()

setFileChooserOpenMode

public static void setFileChooserOpenMode(int mode)

isTestRunnable

public static boolean isTestRunnable(boolean bShowErrMsg)
The function will test whether a model was loaded and whether a algorithm was selected, if both been done, return true otherwise return false

Returns:
if user can use the model to test return true otherwise return false

setCoverageLineColors

public static void setCoverageLineColors(java.awt.Color[] color)

getCoverageLineColors

public static java.awt.Color[] getCoverageLineColors()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 ModelJUnit Project. All Rights Reserved.