|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.miningmart.compiler.utils.AttributeCreationTool
Abstract superclass for tools which create a MiningMart step that uses FeatureConstruction for a number of attributes, where this number is dependent on the number of values of another column. Direct known subclasses: Binarify, PivotizeWithoutAggregation
Field Summary | |
protected Case |
myCase
|
protected Chain |
myChain
|
protected DB |
myDB
|
protected BaseAttribute |
myIndexBA
|
protected Column |
myIndexColumn
|
protected Columnset |
myInputColumnset
|
protected Concept |
myInputConcept
|
protected Operator |
myOperator
|
protected Step |
myStep
|
protected int |
numOfLoops
|
Constructor Summary | |
AttributeCreationTool(Concept inputConcept,
BaseAttribute indexBA,
Chain chain)
Constructor for AttributeCreationTool. |
Method Summary | |
protected void |
createInputValueParameter(java.lang.String parameterName,
int loopNr,
java.lang.String value,
int valCondDT,
int parNr)
Creates a new looped parameter for a given step. |
protected void |
createLoopForBa(BaseAttribute outputBa,
java.lang.String targetValS)
Creates another loop for the step created with createStep() and increments the loop number. |
protected java.util.Collection |
createOutputBAs()
Create the new BaseAttributes that will be added to the input concept. |
protected void |
createParameterForNewStep(int loopNr,
int parNr,
java.lang.String parName,
boolean isInput,
ParameterObject theParObject)
Create a new Parameter Object with the given specifications and attach it to the new Step. |
protected void |
createStep()
Create a step with the operator GenericFeatureConstruction and the input concept as parameter TheInputConcept. |
void |
execute()
|
protected abstract java.lang.String |
getConceptualDatatypeNameOfNewAttributes()
|
protected abstract int |
getIdOfOperator()
|
protected abstract java.lang.String |
getNameOfNewStep()
|
protected abstract java.lang.String |
getNameOfOperator()
|
protected abstract void |
insertSpecificParameters(int loopNr,
int parNr,
java.lang.String value)
Create specific parameters for the new Step for the given loop number, starting with the given parameter number. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final DB myDB
protected final Case myCase
protected final Concept myInputConcept
protected final Chain myChain
protected final Columnset myInputColumnset
protected final Column myIndexColumn
protected final BaseAttribute myIndexBA
protected Step myStep
protected Operator myOperator
protected int numOfLoops
Constructor Detail |
public AttributeCreationTool(Concept inputConcept, BaseAttribute indexBA, Chain chain) throws M4Exception
inputConcept
- The Input Concept for the Step to be created.indexBA
- The index attribute, used to determine the number of output attributeschain
- The Chain to which to add the new StepMethod Detail |
public void execute() throws java.lang.Exception
java.lang.Exception
protected abstract int getIdOfOperator()
protected abstract java.lang.String getNameOfOperator()
protected abstract java.lang.String getNameOfNewStep()
protected abstract java.lang.String getConceptualDatatypeNameOfNewAttributes() throws M4Exception
M4Exception
protected abstract void insertSpecificParameters(int loopNr, int parNr, java.lang.String value) throws M4Exception
loopNr
- The loop number for which the specific parameters must be createdparNr
- The first parameter number to be used; increment it for each additional parametervalue
- The value of the index attribute for the given loop
M4Exception
protected void createStep() throws M4Exception
M4Exception
protected void createLoopForBa(BaseAttribute outputBa, java.lang.String targetValS) throws M4Exception
M4Exception
protected java.util.Collection createOutputBAs() throws M4Exception, M4CompilerError
Collection
of arrays.
element 0: a value of the index attribute as a String
element 1: the corresponding new BaseAttribute
M4Exception
M4CompilerError
protected void createParameterForNewStep(int loopNr, int parNr, java.lang.String parName, boolean isInput, ParameterObject theParObject) throws M4Exception
M4Exception
protected void createInputValueParameter(java.lang.String parameterName, int loopNr, java.lang.String value, int valCondDT, int parNr) throws M4Exception
parameterName
- the name of the parameter in the PARAMETER_T
tableloopNr
- the number of the loop this parameter belongs tovalue
- the value to be passed to the operator. Use no quotation.valCondDT
- the conditional datatype of the valueparNr
- the number of the parameter. Not really used by the compiler, but should
be unique for each step.
M4Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |