Package com.groiss.ml.field
Class ProcessField
java.lang.Object
com.groiss.ml.field.ProcessField
- All Implemented Interfaces:
Field
A
Field
of this kind usually does not represent a field of a process form.
Instead it can be used to mix in other properties which then can be used as
an input for a machine learning algorithm.-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionCreates a new field for the givenProcessDefinition
protected
ProcessField
(ProcessDefinition pd, String fieldName) Creates a new field for the givenProcessDefinition
with the given field name -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the name of the field of the data source.Returns the name of the class of the data source.int
hashCode()
abstract void
insertValue
(Instance inst, DataSet instances, ProcessInstance pi) Sets a value for the attribute related to this object itself for theInstance
inst
.boolean
Returns false as fields of this type are normally not designed as output fields.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.groiss.ml.field.Field
getAttribute, getFieldNamePretty, getFullFieldName, getSourcePretty
-
Field Details
-
pd
-
-
Constructor Details
-
ProcessField
Creates a new field for the givenProcessDefinition
- Parameters:
pd
- the process definition of this field
-
ProcessField
Creates a new field for the givenProcessDefinition
with the given field name- Parameters:
pd
- the process definition of this fieldfieldName
- the name for this field
-
-
Method Details
-
insertValue
Sets a value for the attribute related to this object itself for theInstance
inst
. TheInstance
and theProcessInstance
object can be used to populateinst
- Parameters:
inst
- theInstance
object to where the value for the related Attribute should be setinstances
- this is where inst belongs topi
- theProcessInstance
of the current step
-
getFieldName
Description copied from interface:Field
Returns the name of the field of the data source.- Specified by:
getFieldName
in interfaceField
- Returns:
- the field which is to consider
-
getSource
Description copied from interface:Field
Returns the name of the class of the data source. -
isAllowedAsOutputField
public boolean isAllowedAsOutputField()Returns false as fields of this type are normally not designed as output fields. May be overwritten by subclasses.- Specified by:
isAllowedAsOutputField
in interfaceField
- Returns:
- true is usable as output field
-
toString
-
hashCode
public int hashCode() -
equals
-