|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.algorithms.optimization.termination.AbstractTerminationCondition
public abstract class AbstractTerminationCondition
This class is the abstract super class of many TerminationConditions. It implements several methods for
loading, saving, cloning, ... allowing for a fast implementation of a new TerminationCondition.
| Nested Class Summary | |
|---|---|
static class |
AbstractTerminationCondition.AbstractTerminationConditionParameterSet
This class implements the super class of all parameter sets of instances from AbstractTerminationCondition. |
| Field Summary | |
|---|---|
protected AbstractTerminationCondition.AbstractTerminationConditionParameterSet |
parameter
The internally used parameters. |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
AbstractTerminationCondition |
clone()
|
InstanceParameterSet |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.jstacs.algorithms.optimization.termination.TerminationCondition |
|---|
doNextIteration, isSimple |
| Field Detail |
|---|
protected AbstractTerminationCondition.AbstractTerminationConditionParameterSet parameter
| Constructor Detail |
|---|
protected AbstractTerminationCondition(AbstractTerminationCondition.AbstractTerminationConditionParameterSet parameter)
throws CloneNotSupportedException
parameter - the set of parameters
CloneNotSupportedException - 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| Method Detail |
|---|
public AbstractTerminationCondition clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionprotected 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()
StorableStringBuffer of an
instance of the implementing class.
toXML in interface Storable
public InstanceParameterSet getCurrentParameterSet()
throws Exception
InstantiableFromParameterSetInstanceParameterSet 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 InstantiableFromParameterSetInstanceParameterSet
Exception - if the InstanceParameterSet could not be returned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||