public class CustomPeriodicTest extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CustomPeriodicTest.Operator
Enum defining inequality operations
|
class |
CustomPeriodicTest.TestPart
Inner class defining one boundary of an interval
|
Constructor and Description |
---|
CustomPeriodicTest(String theTest)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Date d)
Evaluate the supplied date with respect to this custom periodic
test interval
|
String |
getLabel()
Get the optional label for this interval.
|
CustomPeriodicTest.TestPart |
getLowerTest()
Get the lower bound test
|
CustomPeriodicTest.TestPart |
getUpperTest()
Get the upper bound test
|
static void |
main(String[] args)
Main method for testing this class
|
void |
setLabel(String label)
Set the label for this interval
|
void |
setTest(String theTest)
Set the test as a String
|
String |
toString()
Returns a textual description of this test
|
public CustomPeriodicTest(String theTest) throws IllegalArgumentException
theTest
- the test definition as a StringIllegalArgumentException
- if the test can't be parsed or is
ill defined.public CustomPeriodicTest.TestPart getLowerTest()
public CustomPeriodicTest.TestPart getUpperTest()
public void setTest(String theTest) throws IllegalArgumentException
theTest
- the testIllegalArgumentException
- if the test can't be parsed or is
ill defined.public String getLabel()
public void setLabel(String label)
label
- the label for this intervalpublic boolean evaluate(Date d)
d
- the date to testpublic String toString()
public static void main(String[] args)
args
- command line arguments - first element should
contain a textual definition of a testCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.