org.jdmp.core.algorithm
Class AbstractAlgorithm
java.lang.Object
org.jdmp.core.AbstractCoreObject
org.jdmp.core.algorithm.AbstractAlgorithm
- All Implemented Interfaces:
- Serializable, Cloneable, Algorithm, HasAlgorithmMap, HasAlgorithms, CoreObject, HasVariableMap, HasVariables, Clearable, HasDescription, HasGUIObject, HasLabel
- Direct Known Subclasses:
- About, Abs, AbstractClusterer, AbstractIndexer, AbstractRegressor, AbstractTagger, AbstractTokenizer, AlgorithmFiveSources, AlgorithmNoSource, AlgorithmTwoSources, Cd, ClassPath, Clone, Copy, CreateDiskMap, CreateEmptyMatrix, CreateHenon, CreateIris, CreateLinReg, CreateListMatrix, CreateMapMatrix, CreateMLP, CreateModule, CreateNaiveBayes, CreateSample, CreateSunSpotData, Env, Exec, Exit, Export, Gauss, Help, Import, Info, LogisticFunction, Logisticmap, Mean, Memory, NetworkLayerBackward, NetworkLayerForward, Paste, Processors, Properties, Pwd, Repeat, Seed, SerialExecution, Show, ShowLicense, Sum, Tanh, TanhPlusOne, Threads, Transpose, Version
public abstract class AbstractAlgorithm
- extends AbstractCoreObject
- implements Algorithm
- See Also:
- Serialized Form
|
Method Summary |
void |
addVariableKey(Object key)
|
Map<Object,Object> |
calculate()
|
Map<Object,Object> |
calculate(double... input)
|
Map<Object,Object> |
calculate(List<Matrix> matrices)
|
Map<Object,Object> |
calculate(Matrix... input)
|
Map<Object,Object> |
calculateObjects(List<Object> matrices)
|
Map<Object,Object> |
calculateObjects(Map<Object,Object> objects)
|
Map<Object,Object> |
calculateObjects(Object... input)
|
void |
clear()
|
ObservableMap<Algorithm> |
getAlgorithms()
|
String |
getAsString(Object variableKey)
|
String |
getDescription()
|
Algorithm.EdgeDirection |
getEdgeDirection(Object key)
|
String |
getEdgeLabel(Object key)
|
GUIObject |
getGUIObject()
|
List<Object> |
getInputKeys()
|
String |
getLabel()
|
Matrix |
getMatrix(Object variableKey)
|
List<Object> |
getOutputKeys()
|
List<Object> |
getVariableKeys()
|
ObservableMap<Variable> |
getVariables()
|
void |
notifyGUIObject()
|
void |
setAlgorithm(Object index,
Algorithm a)
|
void |
setDescription(String description)
|
void |
setEdgeDirection(Object key,
Algorithm.EdgeDirection direction)
|
void |
setEdgeLabel(Object key,
String edgeLabel)
|
void |
setLabel(String label)
|
void |
setMatrix(Object variableKey,
Matrix matrix)
|
void |
setObject(Object variableKey,
Object value)
|
void |
setVariable(Object index,
Variable variable)
|
void |
setVariables(ObservableMap<Variable> variables)
|
void |
setVariables(Variable... variables)
|
String |
toString()
|
AbstractAlgorithm
public AbstractAlgorithm()
setEdgeLabel
public final void setEdgeLabel(Object key,
String edgeLabel)
- Specified by:
setEdgeLabel in interface Algorithm
addVariableKey
public final void addVariableKey(Object key)
- Specified by:
addVariableKey in interface Algorithm
setVariables
public void setVariables(Variable... variables)
- Specified by:
setVariables in interface Algorithm
getVariableKeys
public final List<Object> getVariableKeys()
- Specified by:
getVariableKeys in interface Algorithm
setObject
public final void setObject(Object variableKey,
Object value)
- Specified by:
setObject in interface HasVariableMap
getDescription
public final String getDescription()
- Specified by:
getDescription in interface HasDescription
setDescription
public final void setDescription(String description)
- Specified by:
setDescription in interface HasDescription
getLabel
public String getLabel()
- Specified by:
getLabel in interface HasLabel
setLabel
public final void setLabel(String label)
- Specified by:
setLabel in interface HasLabel
setEdgeDirection
public final void setEdgeDirection(Object key,
Algorithm.EdgeDirection direction)
- Specified by:
setEdgeDirection in interface Algorithm
setVariable
public void setVariable(Object index,
Variable variable)
- Specified by:
setVariable in interface Algorithm
setAlgorithm
public final void setAlgorithm(Object index,
Algorithm a)
- Specified by:
setAlgorithm in interface Algorithm
clear
public void clear()
- Specified by:
clear in interface Clearable
calculate
public final Map<Object,Object> calculate()
throws Exception
- Specified by:
calculate in interface Algorithm
- Throws:
Exception
getInputKeys
public final List<Object> getInputKeys()
- Specified by:
getInputKeys in interface Algorithm
getOutputKeys
public final List<Object> getOutputKeys()
- Specified by:
getOutputKeys in interface Algorithm
calculate
public final Map<Object,Object> calculate(Matrix... input)
throws Exception
- Specified by:
calculate in interface Algorithm
- Throws:
Exception
calculateObjects
public final Map<Object,Object> calculateObjects(Object... input)
throws Exception
- Specified by:
calculateObjects in interface Algorithm
- Throws:
Exception
calculate
public final Map<Object,Object> calculate(double... input)
throws Exception
- Specified by:
calculate in interface Algorithm
- Throws:
Exception
calculate
public final Map<Object,Object> calculate(List<Matrix> matrices)
throws Exception
- Specified by:
calculate in interface Algorithm
- Throws:
Exception
calculateObjects
public final Map<Object,Object> calculateObjects(List<Object> matrices)
throws Exception
- Specified by:
calculateObjects in interface Algorithm
- Throws:
Exception
calculateObjects
public Map<Object,Object> calculateObjects(Map<Object,Object> objects)
throws Exception
- Specified by:
calculateObjects in interface Algorithm
- Throws:
Exception
getEdgeDirection
public final Algorithm.EdgeDirection getEdgeDirection(Object key)
- Specified by:
getEdgeDirection in interface Algorithm
getAsString
public final String getAsString(Object variableKey)
- Specified by:
getAsString in interface HasVariableMap
getMatrix
public Matrix getMatrix(Object variableKey)
- Specified by:
getMatrix in interface HasVariableMap
setMatrix
public void setMatrix(Object variableKey,
Matrix matrix)
- Specified by:
setMatrix in interface HasVariableMap
getVariables
public final ObservableMap<Variable> getVariables()
- Specified by:
getVariables in interface HasVariableMap- Specified by:
getVariables in interface HasVariables
getAlgorithms
public final ObservableMap<Algorithm> getAlgorithms()
- Specified by:
getAlgorithms in interface HasAlgorithmMap- Specified by:
getAlgorithms in interface HasAlgorithms
getEdgeLabel
public final String getEdgeLabel(Object key)
- Specified by:
getEdgeLabel in interface Algorithm
getGUIObject
public final GUIObject getGUIObject()
- Specified by:
getGUIObject in interface HasGUIObject
toString
public final String toString()
- Specified by:
toString in class AbstractCoreObject
notifyGUIObject
public void notifyGUIObject()
- Specified by:
notifyGUIObject in interface HasGUIObject
setVariables
public void setVariables(ObservableMap<Variable> variables)
- Specified by:
setVariables in interface HasVariableMap
Copyright © 2009. All Rights Reserved.