public interface StackDriverInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
StackDriverInterface.StackType
The
StackType enum has the following values:
ArrayBasedStack
LinkedStack
|
static class |
StackDriverInterface.TestType
The
StackTestType enum has the following values:
Push
Pop
|
| Modifier and Type | Method and Description |
|---|---|
StackInterface<java.lang.String> |
createStack(StackDriverInterface.StackType stackType,
StackDriverInterface.TestType stackTestType)
This method is used to create a new stack of the specified stackType.
|
java.lang.Object[] |
runTestCase(StackDriverInterface.StackType stackType,
StackDriverInterface.TestType testType,
int numberOfTimes)
This method is called to run a particular testType on a stack of type stackType for the specified
numberOfTimes.
|
StackInterface<java.lang.String> createStack(StackDriverInterface.StackType stackType, StackDriverInterface.TestType stackTestType)
stackType - This parameter specifies the type of stack to create. See the enum StackDriverInterface.StackType.stackTestType - This parameter specifies the type of test that the stack is being created for. See the enum
StackDriverInterface.TestType.java.lang.Object[] runTestCase(StackDriverInterface.StackType stackType, StackDriverInterface.TestType testType, int numberOfTimes)
This method is called to run a particular testType on a stack of type stackType for the specified numberOfTimes. The test time and memory usage for each test is saved in the TestTimes class.
This method repeats the following numberOfTimes:
stackType - The type of stack needed for the test case. See the enum StackDriverInterface.StackType.testType - The type of test case being run. See the enum StackDriverInterface.TestType.numberOfTimes - This parameter specifies the number of times to run the specified test.