|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.reusablecores.instancefactory.IntegerInstanceFactory
public class IntegerInstanceFactory
Class for transforming Integer property values into an Instance. Cretaes a single numeric attribute with the integer value transformed into a double as its value.
Constructor Summary | |
---|---|
IntegerInstanceFactory()
|
Method Summary | |
---|---|
IntegerInstanceFactory |
prototype()
|
Instance |
transform(java.lang.Object value,
java.lang.String name)
Transform an object into an Instance where the name of the dataset and the names of the attributes are derived from the name provided. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerInstanceFactory()
Method Detail |
---|
public Instance transform(java.lang.Object value, java.lang.String name)
InstanceFactory
transform
in interface InstanceFactory
value
- Property value to be transformedname
- string utilized to derive a dataset name and attribute names.
public IntegerInstanceFactory prototype()
prototype
in interface InstanceFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |