public abstract class AbstractAlgorithm extends Object implements Algorithm
Algorithm interface.| Constructor and Description |
|---|
AbstractAlgorithm(Algorithms algorithms,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract Value |
compute(Segment<PrimitiveParameter> segment,
AlgorithmArguments arguments)
Computes whether or not a temporal abstraction exists in a segment of a
time series.
|
Filter |
createDataSourceConstraint() |
protected void |
finalize() |
int |
getAdvanceRowSkipEnd() |
String |
getId()
The algorithm's unique id.
|
ValueType |
getInValueType() |
int |
getMaximumNumberOfValues()
Gets the default maximum sliding window width.
|
int |
getMinimumNumberOfValues()
Gets the default minimum sliding window width.
|
AlgorithmParameter[] |
getParameters() |
void |
initialize(AlgorithmArguments arguments) |
AlgorithmParameter |
parameter(String name)
Returns the named parameter.
|
protected void |
setAdvanceRowSkipEnd(int advanceRowSkipEnd) |
void |
setInValueType(ValueType inValueType) |
void |
setMaximumNumberOfValues(int val)
Sets the default maximum sliding window width.
|
void |
setMinimumNumberOfValues(int val)
Sets the default minimum sliding window width.
|
void |
setParameters(AlgorithmParameter[] parameters) |
String |
toString() |
public AbstractAlgorithm(Algorithms algorithms, String id)
public final String getId()
Algorithmpublic final void setMinimumNumberOfValues(int val)
maximumNumberOfValues.val - public final int getMinimumNumberOfValues()
AlgorithmmaximumNumberOfValues.getMinimumNumberOfValues in interface Algorithmint != 0.org.protempa.LowLevelAbstractionValueDefinition#getMaximumNumberOfValues()public final void setMaximumNumberOfValues(int val)
val - an int > 0.IllegalArgumentException - if val is < 1.public final int getMaximumNumberOfValues()
AlgorithmgetMaximumNumberOfValues in interface Algorithmint > 0.org.protempa.LowLevelAbstractionValueDefinition#getMaximumNumberOfValues()public final ValueType getInValueType()
getInValueType in interface Algorithmpublic final void setInValueType(ValueType inValueType)
public void setParameters(AlgorithmParameter[] parameters)
public AlgorithmParameter[] getParameters()
getParameters in interface Algorithmpublic AlgorithmParameter parameter(String name)
Algorithmparameter in interface Algorithmname - a String.AlgorithmParameter, or null if the named
parameter does not exist.public Filter createDataSourceConstraint()
createDataSourceConstraint in interface Algorithmprotected void setAdvanceRowSkipEnd(int advanceRowSkipEnd)
public int getAdvanceRowSkipEnd()
getAdvanceRowSkipEnd in interface Algorithmpublic void initialize(AlgorithmArguments arguments) throws AlgorithmInitializationException
initialize in interface AlgorithmAlgorithmInitializationExceptionpublic abstract Value compute(Segment<PrimitiveParameter> segment, AlgorithmArguments arguments) throws AlgorithmProcessingException
Algorithmcompute in interface Algorithmsegment - a Segment of Parameter objects.null if the pattern does not exist, or an
algorithm-specific Value if it does.AlgorithmProcessingExceptionCopyright © 2012–2017 Emory University. All rights reserved.