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
MaltChainedException
public abstract void update() throws MaltChainedException
Function
update
in interface Function
MaltChainedException
public abstract void initialize(java.lang.Object[] arguments) throws MaltChainedException
Function
initialize
in interface Function
arguments
- an array of arguments with the type returned by getParameterTypes()MaltChainedException
public abstract java.lang.Class<?>[] getParameterTypes()
Function
getParameterTypes
in interface Function
public java.lang.String getSymbol(int value) throws MaltChainedException
FeatureFunction
code
according to the feature function.getSymbol
in interface FeatureFunction
value
- the integer representation of the symbolcode
according to the feature function.MaltChainedException
public int getCode(java.lang.String value) throws MaltChainedException
FeatureFunction
symbol
according to the feature function.getCode
in interface FeatureFunction
value
- the string representation of the symbolsymbol
according to the feature function.MaltChainedException
public ColumnDescription getColumn()
protected void setColumn(ColumnDescription column)
public SymbolTable getSymbolTable()
FeatureFunction
getSymbolTable
in interface FeatureFunction
protected void setSymbolTable(SymbolTable symbolTable)
public void setFeatureValue(int indexCode) throws MaltChainedException
Modifiable
setFeatureValue
in interface Modifiable
indexCode
- an integer representation of the symbolMaltChainedException
public void setFeatureValue(java.lang.String symbol) throws MaltChainedException
Modifiable
setFeatureValue
in interface Modifiable
symbol
- an string representation of the symbolMaltChainedException
protected void castFeatureValue(java.lang.String symbol) throws MaltChainedException
MaltChainedException
public FeatureValue getFeatureValue()
FeatureFunction
getFeatureValue
in interface FeatureFunction
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getColumnName()
public int getType()
getType
in interface FeatureFunction
public java.lang.String getMapIdentifier()
getMapIdentifier
in interface FeatureFunction
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.