public interface DriverInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
DriverInterface.QueueTestType
The
QueueTestType enum has the following values:
Enqueue
Dequeue
Iterate
|
static class |
DriverInterface.QueueType
The
QueueType enum has the following values:
ArrayBasedQueue
LinkedQueue
|
static class |
DriverInterface.StackTestType
The
StackTestType enum has the following values:
Push
Pop
Iterate
|
static class |
DriverInterface.StackType
The
StackType enum has the following values:
ArrayBasedStack
LinkedStack
|
| Modifier and Type | Method and Description |
|---|---|
QueueInterface<java.lang.String> |
createQueue(DriverInterface.QueueType queueType,
DriverInterface.QueueTestType queueTestType)
This method is used to create a new queue of the specified queueType.
|
StackInterface<java.lang.String> |
createStack(DriverInterface.StackType stackType,
DriverInterface.StackTestType stackTestType)
This method is used to create a new stack of the specified stackType.
|
TestTimes |
runQueueTestCase(DriverInterface.QueueType queueType,
DriverInterface.QueueTestType queueTestType,
int numberOfTimes)
This method is called to run a particular test case on a queue type the specified number of times.
|
TestTimes |
runStackTestCase(DriverInterface.StackType stackType,
DriverInterface.StackTestType stackTestType,
int numberOfTimes)
This method is called to run a particular test case on a stack type the specified number of times.
|
QueueInterface<java.lang.String> createQueue(DriverInterface.QueueType queueType, DriverInterface.QueueTestType queueTestType)
queueType - This parameter specifies the type of queue to create. See the enum DriverInterface.QueueType.queueTestType - This parameter specifies the type of test that the queue is being created for. See the enum
DriverInterface.QueueTestType.StackInterface<java.lang.String> createStack(DriverInterface.StackType stackType, DriverInterface.StackTestType stackTestType)
stackType - This parameter specifies the type of stack to create. See the enum DriverInterface.StackType.stackTestType - This parameter specifies the type of test that the stack is being created for. See the enum
DriverInterface.StackTestType.TestTimes runQueueTestCase(DriverInterface.QueueType queueType, DriverInterface.QueueTestType queueTestType, int numberOfTimes)
queueType - The type of queue needed for the test case. See the enum DriverInterface.QueueType.queueTestType - The type of test case being run. See the enum DriverInterface.QueueTestType.numberOfTimes - This parameter specifies the number of times to run the specified test.TestTimes class containing the test times and memory usages.TestTimes runStackTestCase(DriverInterface.StackType stackType, DriverInterface.StackTestType stackTestType, int numberOfTimes)
stackType - The type of stack needed for the test case. See the enum DriverInterface.StackType.stackTestType - The type of test case being run. See the enum DriverInterface.StackTestType.numberOfTimes - This parameter specifies the number of times to run the specified test.TestTimes class containing the test times and memory usages.