public abstract class ColumnFeature extends java.lang.Object implements FeatureFunction, Modifiable
| Modifier and Type | Field and Description |
|---|---|
protected ColumnDescription |
column |
protected SingleFeatureValue |
featureValue |
protected SymbolTable |
symbolTable |
| Constructor and Description |
|---|
ColumnFeature() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
castFeatureValue(java.lang.String symbol) |
boolean |
equals(java.lang.Object obj) |
int |
getCode(java.lang.String value)
Returns the integer representation of the string
symbol according to the feature function. |
ColumnDescription |
getColumn() |
java.lang.String |
getColumnName() |
FeatureValue |
getFeatureValue()
Returns the feature value
|
java.lang.String |
getMapIdentifier() |
abstract java.lang.Class<?>[] |
getParameterTypes()
Returns an array of class types used by the feature extraction system to invoke initialize with
correct arguments.
|
java.lang.String |
getSymbol(int value)
Returns the string representation of the integer
code according to the feature function. |
SymbolTable |
getSymbolTable()
Returns the symbol table used by the feature function.
|
int |
getType() |
abstract void |
initialize(java.lang.Object[] arguments)
Initialize the feature function
|
protected void |
setColumn(ColumnDescription column) |
void |
setFeatureValue(int indexCode)
Override the feature value of the feature function.
|
void |
setFeatureValue(java.lang.String symbol)
Override the feature value of the feature function.
|
protected void |
setSymbolTable(SymbolTable symbolTable) |
java.lang.String |
toString() |
abstract void |
update()
Cause the feature function to update the feature value.
|
protected ColumnDescription column
protected SymbolTable symbolTable
protected final SingleFeatureValue featureValue
public ColumnFeature() throws MaltChainedException
MaltChainedExceptionpublic abstract void update() throws MaltChainedException
Functionupdate in interface FunctionMaltChainedExceptionpublic abstract void initialize(java.lang.Object[] arguments) throws MaltChainedException
Functioninitialize in interface Functionarguments - an array of arguments with the type returned by getParameterTypes()MaltChainedExceptionpublic abstract java.lang.Class<?>[] getParameterTypes()
FunctiongetParameterTypes in interface Functionpublic java.lang.String getSymbol(int value) throws MaltChainedException
FeatureFunctioncode according to the feature function.getSymbol in interface FeatureFunctionvalue - the integer representation of the symbolcode according to the feature function.MaltChainedExceptionpublic int getCode(java.lang.String value) throws MaltChainedException
FeatureFunctionsymbol according to the feature function.getCode in interface FeatureFunctionvalue - the string representation of the symbolsymbol according to the feature function.MaltChainedExceptionpublic ColumnDescription getColumn()
protected void setColumn(ColumnDescription column)
public SymbolTable getSymbolTable()
FeatureFunctiongetSymbolTable in interface FeatureFunctionprotected void setSymbolTable(SymbolTable symbolTable)
public void setFeatureValue(int indexCode) throws MaltChainedException
ModifiablesetFeatureValue in interface ModifiableindexCode - an integer representation of the symbolMaltChainedExceptionpublic void setFeatureValue(java.lang.String symbol) throws MaltChainedException
ModifiablesetFeatureValue in interface Modifiablesymbol - an string representation of the symbolMaltChainedExceptionprotected void castFeatureValue(java.lang.String symbol) throws MaltChainedException
MaltChainedExceptionpublic FeatureValue getFeatureValue()
FeatureFunctiongetFeatureValue in interface FeatureFunctionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getColumnName()
public int getType()
getType in interface FeatureFunctionpublic java.lang.String getMapIdentifier()
getMapIdentifier in interface FeatureFunctionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.