|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.DoubleAbstractStrategy
org.jmlspecs.jmlunit.strategies.DoubleExtensibleStrategy
Common code for extensible strategies for providing test data of type double.
This type provides an extension mechanism that is easier to use than a composite, wherein subclasses of subclasses can override the addData() method to provide additional data for testing.
| Field Summary | |
private double[] |
data
The data to return in the iterations |
| Constructor Summary | |
DoubleExtensibleStrategy()
|
|
| Method Summary | |
protected double[] |
addData()
Subclasses can override this to make simple extensions to the data used. |
protected abstract double[] |
defaultData()
Create and return the default data for the iterations. |
DoubleIterator |
doubleIterator()
Compute a fresh DoubleIterator, which can be used to provide test data of type double. |
protected double[] |
getData()
Create and return the data for the iterations. |
| Methods inherited from class org.jmlspecs.jmlunit.strategies.DoubleAbstractStrategy |
iterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private double[] data
| Constructor Detail |
public DoubleExtensibleStrategy()
| Method Detail |
public DoubleIterator doubleIterator()
DoubleStrategyType
protected double[] getData()
protected abstract double[] defaultData()
protected double[] addData()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||