@KFStep(name="SetPropertiesFromEnvironment", category="Flow", toolTipText="Set properties of the connected algorithm-based step (e.g. Classifier, Clusterer etc.) using values stored in the flow environment. If no property path for a particular setting value is specified, then it is assumed that the value provided is scheme name + options in command-line form, in which case the underlying scheme of the connected step will be constructed and set; otherwise, the property path is used to set a value on the existing underlying scheme.", iconPath="weka/gui/knowledgeflow/icons/SetPropertiesFromEnvironment.gif") public class SetPropertiesFromEnvironment extends BaseStep
m_stepIsResourceIntensive, m_stepManager, m_stepName| Constructor and Description |
|---|
SetPropertiesFromEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
drillToProperty(java.lang.Object baseObject,
java.util.List<java.lang.String> propertyPath)
Drill down to the last element in the supplied property path list on
the given base object
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of acceptable incoming connection types
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
protected java.beans.PropertyDescriptor |
getPropDescriptor(java.lang.Object target,
java.lang.String propName)
Gets the property descriptor for the supplied property name on the
supplied target object
|
protected void |
setProperties(WekaAlgorithmWrapper target,
java.util.Map<java.lang.String,java.lang.String> propertiesToSet)
Set properties on the specified target objet
|
protected void |
setValue(java.lang.Object target,
java.lang.String targetName,
java.lang.String propName,
java.lang.Object valToSet)
Sets the value of the property on the target object
|
void |
stepInit()
Initialize the step.
|
protected java.lang.Object |
stringToVal(java.lang.String propVal,
java.lang.Object target,
java.lang.String propName)
Attempts to convert a property value in string form to the object type that
the actual property accepts
|
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, processIncoming, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stoppublic void stepInit()
throws WekaException
WekaException - if a problem occurspublic java.util.List<java.lang.String> getIncomingConnectionTypes()
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
Stepprotected void setProperties(WekaAlgorithmWrapper target, java.util.Map<java.lang.String,java.lang.String> propertiesToSet)
target - the target to set properties onpropertiesToSet - the properties to try and setprotected java.lang.Object stringToVal(java.lang.String propVal,
java.lang.Object target,
java.lang.String propName)
throws WekaException
propVal - the string representation of the property valuetarget - the target object to receive the property valuepropName - the name of the propertyWekaException - if a problem occursprotected void setValue(java.lang.Object target,
java.lang.String targetName,
java.lang.String propName,
java.lang.Object valToSet)
throws WekaException
target - the target objecttargetName - the name of the step owning the target objectpropName - the property namevalToSet - the value to setWekaException - if a problem occursprotected java.beans.PropertyDescriptor getPropDescriptor(java.lang.Object target,
java.lang.String propName)
throws java.beans.IntrospectionException
target - the target objectpropName - the property namejava.beans.IntrospectionException - if a problem occursprotected java.lang.Object drillToProperty(java.lang.Object baseObject,
java.util.List<java.lang.String> propertyPath)
throws WekaException
baseObject - the base object to drill downpropertyPath - the property path to traverseWekaException - if a problem occurs