Package org.svvrl.goal.core
Class AbstractEditableAlgorithm
java.lang.Object
org.svvrl.goal.core.AbstractAlgorithm
org.svvrl.goal.core.AbstractControllableAlgorithm
org.svvrl.goal.core.AbstractEditableAlgorithm
- All Implemented Interfaces:
java.util.EventListener
,Algorithm
,AlgorithmListener
,ControllableAlgorithm
,EditableAlgorithm
- Direct Known Subclasses:
AbstractComplementConstruction
,AbstractTranslator
,DeterminizationToDBWByDEK07
,DeterminizationToWDBWByDEK07
,GameSolverWrapper
,Subset
public abstract class AbstractEditableAlgorithm extends AbstractControllableAlgorithm implements EditableAlgorithm
This class provides default implementations for the
EditableAlgorithm
interface. The initial running status is Run.
There are some methods that act as marks of a step or a stage of an
algorithm.
An object of this class is capable of adding other
ControllableAlgorithm
objects as subroutines. In this case, the
object will listen to the execution of its subroutines.
- Author:
- Ming-Hsien Tsai
-
Constructor Summary
Constructors Constructor Description AbstractEditableAlgorithm()
Constructs this algorithm with an empty name and empty options.AbstractEditableAlgorithm(java.lang.String name)
Constructs this algorithm with a specified name and empty options.AbstractEditableAlgorithm(java.lang.String name, Properties options)
Constructs this algorithm with a specified name and predefined options.AbstractEditableAlgorithm(Properties options)
Constructs this algorithm with an empty name and predefined options. -
Method Summary
Methods inherited from class org.svvrl.goal.core.AbstractControllableAlgorithm
addControllableListener, addSubAlgorithm, doPause, doStage, doStart, doStep, fireReferenceChangedEvent, getInterval, getStages, getStatus, pause, pause, removeControllableListener, removeSubAlgorithm, setInterval, setStages, setStatus, setSynchronizationObject, stagePause, stagePause
Methods inherited from class org.svvrl.goal.core.AbstractAlgorithm
addAlgorithmListener, addProgress, appendStageMessage, appendStepMessage, getAlgorithmListeners, getCurrentProgress, getMaximalProgress, getMinimalProgress, getName, getOptions, getSubAlgorithms, isDeterministicProgress, removeAlgorithmListener, setCurrentProgress, setDeterministicProgress, setMaximalProgress, setMinimalProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.svvrl.goal.core.Algorithm
addAlgorithmListener, getAlgorithmListeners, getOptions, removeAlgorithmListener
Methods inherited from interface org.svvrl.goal.core.AlgorithmListener
appendStageMessage, appendStepMessage, getCurrentProgress, getMaximalProgress, getMinimalProgress, setCurrentProgress, setDeterministicProgress, setMaximalProgress, setMinimalProgress
Methods inherited from interface org.svvrl.goal.core.ControllableAlgorithm
addControllableListener, doPause, doStage, doStart, doStep, getInterval, getStages, getStatus, removeControllableListener, setInterval, setStages, setStatus, setSynchronizationObject
-
Constructor Details
-
AbstractEditableAlgorithm
public AbstractEditableAlgorithm()Constructs this algorithm with an empty name and empty options. -
AbstractEditableAlgorithm
public AbstractEditableAlgorithm(java.lang.String name)Constructs this algorithm with a specified name and empty options.- Parameters:
name
- the name of this algorithm
-
AbstractEditableAlgorithm
Constructs this algorithm with an empty name and predefined options.- Parameters:
options
- the predefined options of this algorithm
-
AbstractEditableAlgorithm
Constructs this algorithm with a specified name and predefined options.- Parameters:
name
- the name of this algorithmoptions
- the predefined options of this algorithm
-