|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.sampling.AbstractBurnInTest
public abstract class AbstractBurnInTest
This abstract class implements some of the methods of BurnInTest
to
alleviate the implementation of efficient and new burn-in tests.
Field Summary | |
---|---|
protected DoubleList[] |
values
This array contains all values that will be set via BurnInTest.setValue(double) . |
Constructor Summary | |
---|---|
protected |
AbstractBurnInTest(AbstractBurnInTestParameterSet parameters)
This is the main constructor that creates a burn-in test given a specified set of parameters |
protected |
AbstractBurnInTest(StringBuffer rep)
This is the constructor for the Storable interface. |
Method Summary | |
---|---|
AbstractBurnInTest |
clone()
Return a deep copy of this object. |
protected abstract int |
computeLengthOfBurnIn()
Computes and returns the length of the burn-in phase using the values from BurnInTest.setValue(double) . |
AbstractBurnInTestParameterSet |
getCurrentParameterSet()
Returns the InstanceParameterSet that has been used to
instantiate the current instance of the implementing class. |
protected abstract StringBuffer |
getFurtherInformation()
This method returns further information for the AbstractBurnInTest . |
int |
getLengthOfBurnIn()
Computes and returns the length of the burn-in phase using the values from BurnInTest.setValue(double) . |
protected abstract String |
getXMLTag()
This method returns the XML tag that is used in toXML() and
AbstractBurnInTest(StringBuffer) . |
void |
resetAllValues()
This method can be used to remove all values from the internal memory. |
void |
setCurrentSamplingIndex(int index)
This method sets the value of the current sampling. |
protected abstract void |
setFurtherInformation(StringBuffer xml)
This method sets further information for the AbstractBurnInTest . |
void |
setValue(double val)
This method can be used to fill the internal memory with the values that will be used to determine the length of the burn-in phase. |
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.jstacs.sampling.BurnInTest |
---|
getInstanceName |
Field Detail |
---|
protected DoubleList[] values
BurnInTest.setValue(double)
. The index of the array element
denotes the sampling index.
Constructor Detail |
---|
protected AbstractBurnInTest(AbstractBurnInTestParameterSet parameters) throws CloneNotSupportedException
parameters
- set of parameters
CloneNotSupportedException
- if the parameters can not be clonedprotected AbstractBurnInTest(StringBuffer rep) throws NonParsableException
Storable
interface.
rep
- the XML representation
NonParsableException
- if the StringBuffer
could not be parsedMethod Detail |
---|
public AbstractBurnInTest clone() throws CloneNotSupportedException
BurnInTest
clone
in interface BurnInTest
clone
in class Object
CloneNotSupportedException
- if the object can not be clonedObject.clone()
public AbstractBurnInTestParameterSet getCurrentParameterSet() throws CloneNotSupportedException
InstantiableFromParameterSet
InstanceParameterSet
that has been used to
instantiate the current instance of the implementing class. If the
current instance was not created using an InstanceParameterSet
,
an equivalent InstanceParameterSet
should be returned, so that an
instance created using this InstanceParameterSet
would be in
principle equal to the current instance.
getCurrentParameterSet
in interface InstantiableFromParameterSet
InstanceParameterSet
CloneNotSupportedException
public final void resetAllValues()
BurnInTest
resetAllValues
in interface BurnInTest
public final void setCurrentSamplingIndex(int index)
BurnInTest
BurnInTest.setValue(double)
to a sampling.
setCurrentSamplingIndex
in interface BurnInTest
index
- the index of the samplingpublic final void setValue(double val)
BurnInTest
setValue
in interface BurnInTest
val
- the valuepublic final StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.
toXML
in interface Storable
protected abstract String getXMLTag()
toXML()
and
AbstractBurnInTest(StringBuffer)
.
toXML()
and AbstractBurnInTest(StringBuffer)
protected abstract StringBuffer getFurtherInformation()
AbstractBurnInTest
. It enables to store test specific data via
the method toXML()
. toXML()
.
protected abstract void setFurtherInformation(StringBuffer xml) throws NonParsableException
AbstractBurnInTest
.
It enables to load test specific data in the constructor
AbstractBurnInTest(StringBuffer)
. AbstractBurnInTest(StringBuffer)
.
xml
- contains further information in XML format
NonParsableException
- if the StringBuffer
could not be parsedpublic final int getLengthOfBurnIn()
BurnInTest
BurnInTest.setValue(double)
.
getLengthOfBurnIn
in interface BurnInTest
protected abstract int computeLengthOfBurnIn()
BurnInTest.setValue(double)
. This method is used by
getLengthOfBurnIn()
. The result is stored in
an internal variable to avoid multiple meaningless assessments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |