public class DurationTime extends Object implements TestDuration
TestDuration.TestProgress
Constructor and Description |
---|
DurationTime(String timeSpec) |
Modifier and Type | Method and Description |
---|---|
boolean |
canContinue(TestDuration.TestProgress snapshot)
Whether the test can continue based on the current test's progress
|
String |
durationTypeName()
Gets the type name for the duration (ie.: "time", "count", etc).
|
TestDuration |
getCoolDownDuration()
Get the cool down duration
|
long |
getNumericDuration()
Get the numeric time duration
|
TestDuration |
getWarmUpDuration()
Get the warm up duration
|
String |
toString() |
public DurationTime(String timeSpec) throws DurationParseException
DurationParseException
public boolean canContinue(TestDuration.TestProgress snapshot)
TestDuration
canContinue
in interface TestDuration
snapshot
- current progressespublic long getNumericDuration()
TestDuration
getNumericDuration
in interface TestDuration
public TestDuration getWarmUpDuration()
TestDuration
getWarmUpDuration
in interface TestDuration
public TestDuration getCoolDownDuration()
TestDuration
getCoolDownDuration
in interface TestDuration
public String durationTypeName()
TestDuration
durationTypeName
in interface TestDuration
This documentation was released into the public domain.