public final class NumOfFeature extends java.lang.Object implements FeatureFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
NumOfFeature.NumOfRelation |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Class<?>[] |
paramTypes |
| Constructor and Description |
|---|
NumOfFeature(SymbolTableHandler tableHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
AddressFunction |
getAddressFunction()
Returns the address function
|
int |
getCode(java.lang.String symbol)
Returns the integer representation of the string
symbol according to the numof feature function. |
FeatureValue |
getFeatureValue()
Returns the feature value
|
java.lang.String |
getMapIdentifier() |
NumOfFeature.NumOfRelation |
getNumOfRelation() |
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 code)
Returns the string representation of the integer
code according to the numof feature function. |
SymbolTable |
getSymbolTable()
Returns the symbol table used by the numof feature function
|
int |
getType() |
int |
hashCode() |
void |
initialize(java.lang.Object[] arguments)
Initialize the distance feature function
|
void |
setAddressFunction(AddressFunction addressFunction)
Sets the address function
|
void |
setNumOfRelation(java.lang.String numOfRelationName) |
void |
setSymbolTable(SymbolTable table)
Sets the symbol table used by the numof feature function
|
java.lang.String |
toString() |
void |
update()
Cause the feature function to update the feature value.
|
public static final java.lang.Class<?>[] paramTypes
public NumOfFeature(SymbolTableHandler tableHandler) throws MaltChainedException
MaltChainedExceptionpublic void initialize(java.lang.Object[] arguments) throws MaltChainedException
initialize in interface Functionarguments - an array of arguments with the type returned by getParameterTypes()MaltChainedExceptionpublic java.lang.Class<?>[] getParameterTypes()
getParameterTypes in interface Functionpublic java.lang.String getSymbol(int code) throws MaltChainedException
code according to the numof feature function.getSymbol in interface FeatureFunctioncode - the integer representation of the symbolcode according to the numof feature function.MaltChainedExceptionpublic int getCode(java.lang.String symbol) throws MaltChainedException
symbol according to the numof feature function.getCode in interface FeatureFunctionsymbol - the string representation of the symbolsymbol according to the numof feature function.MaltChainedExceptionpublic void update() throws MaltChainedException
update in interface FunctionMaltChainedExceptionpublic void setNumOfRelation(java.lang.String numOfRelationName)
public NumOfFeature.NumOfRelation getNumOfRelation()
public FeatureValue getFeatureValue()
getFeatureValue in interface FeatureFunctionpublic SymbolTable getSymbolTable()
getSymbolTable in interface FeatureFunctionpublic AddressFunction getAddressFunction()
public void setAddressFunction(AddressFunction addressFunction)
addressFunction - a address functionpublic void setSymbolTable(SymbolTable table)
table - public int getType()
getType in interface FeatureFunctionpublic java.lang.String getMapIdentifier()
getMapIdentifier in interface FeatureFunctionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.