public class FunctionExpander extends BaseAttributeExpander implements Citable
The idea for this class was based on work by L. Ghiringhelli et al.
Functions should follow the syntax outlined in the Javadoc
ParsedFunction
,
Serialized FormConstructor and Description |
---|
FunctionExpander() |
Modifier and Type | Method and Description |
---|---|
void |
addNewFunction(java.lang.String function)
Add a new function to be used for expansion
|
void |
clearFunctionList()
Clear list of functions used to generate new attributes.
|
void |
expand(Dataset Data)
Generate new attributes based on the attributes already in Dataset
|
java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,Citation>> |
getCitations()
Return a list of citations for this object and any underlying objects.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
setOptions
in interface Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
printUsage
in interface Options
public void clearFunctionList()
public void addNewFunction(java.lang.String function) throws java.lang.Exception
function
- Function to be parsedjava.lang.Exception
public void expand(Dataset Data)
BaseAttributeExpander
expand
in class BaseAttributeExpander
Data
- Dataset to be expandedpublic java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,Citation>> getCitations()
Citable
getCitations
in interface Citable