public abstract class AbstractTerminationCondition extends Object implements TerminationCondition
TerminationCondition
s. It implements several methods for
loading, saving, cloning, ... allowing for a fast implementation of a new TerminationCondition
.Modifier and Type | Class and Description |
---|---|
static class |
AbstractTerminationCondition.AbstractTerminationConditionParameterSet
This class implements the super class of all parameter sets of instances from
AbstractTerminationCondition . |
Modifier and Type | Field and Description |
---|---|
protected AbstractTerminationCondition.AbstractTerminationConditionParameterSet |
parameter
The internally used parameters.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractTerminationCondition(AbstractTerminationCondition.AbstractTerminationConditionParameterSet parameter)
This is the main constructor creating an instance from a given parameter set.
|
protected |
AbstractTerminationCondition(StringBuffer xml)
The standard constructor for the interface
Storable . |
Modifier and Type | Method and Description |
---|---|
AbstractTerminationCondition |
clone() |
AbstractTerminationCondition.AbstractTerminationConditionParameterSet |
getCurrentParameterSet()
Returns the
InstanceParameterSet that has been used to
instantiate the current instance of the implementing class. |
protected abstract String |
getXmlTag()
This method returns the xml tag that is used in the method
toXML() and
in the constructor AbstractTerminationCondition(StringBuffer) . |
protected abstract void |
set()
This method sets internal member variables from
parameter . |
StringBuffer |
toXML()
This method returns an XML representation as
StringBuffer of an
instance of the implementing class. |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doNextIteration, isSimple
protected AbstractTerminationCondition.AbstractTerminationConditionParameterSet parameter
protected AbstractTerminationCondition(AbstractTerminationCondition.AbstractTerminationConditionParameterSet parameter) throws CloneNotSupportedException
parameter
- the set of parametersCloneNotSupportedException
- if parameter
can not be cloned properly.protected AbstractTerminationCondition(StringBuffer xml) throws NonParsableException
Storable
.
Constructs a AbstractTerminationCondition
out of an XML representation.xml
- the XML representation as StringBuffer
NonParsableException
- if the AbstractTerminationCondition
could not be reconstructed out of
the StringBuffer
xml
public AbstractTerminationCondition clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
protected abstract String getXmlTag()
toXML()
and
in the constructor AbstractTerminationCondition(StringBuffer)
.protected abstract void set()
parameter
.
It is used in the constructors.public final StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.public AbstractTerminationCondition.AbstractTerminationConditionParameterSet getCurrentParameterSet() throws Exception
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
Exception
- if the InstanceParameterSet
could not be returned