|
ThinkUI Data Generator 1.0.2 API | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectthinkui.datagen.AbstractAttributeValueGenerator
Abstract implementation of the AttributeValueGenerator.
| Field Summary |
| Fields inherited from interface thinkui.datagen.AttributeValueGenerator |
ALL_MODES, BERNOULLI_MODE, BINOMIAL_MODE, CONSTANT_MODE, DEFAULT_MODE, EXPONENTIAL_MODE, MILLIS_PER_DAY, MILLIS_PER_HOUR, MILLIS_PER_MINUTE, MILLIS_PER_SECOND, NORMAL_MODE, POISON_MODE, SEQUENTIAL_MODE, UNIFORM_MODE |
| Constructor Summary | |
AbstractAttributeValueGenerator(Attribute attribute)
AbstractAttributeValueGenerator constructor. |
|
| Method Summary | |
AttributeValueGenerator |
copy()
Makes a copy of the AttributeValueGenerator. |
static AttributeValueGenerator |
createGenerator(AttributeValueGeneratorParam generatorParam)
Helper method to create an AttributeValueGenerator for the given generatorParam. |
abstract java.lang.Object |
generateValue()
Generate a value for the attribute. |
Attribute |
getAttribute()
|
java.lang.Object |
getConstantValue()
|
java.lang.Number |
getCount()
|
int |
getCountAsInt()
Return the count as an int or throw a runtime exception. |
DataObject |
getDataObject()
|
java.util.Map |
getDataObjectMap()
|
int |
getGeneratorMode()
|
java.lang.Comparable |
getMaxValue()
|
java.lang.Number |
getMeanIndex()
|
double |
getMeanIndexAsDouble()
Return the mean index as a double or throw a runtime exception. |
java.lang.Number |
getMeanLength()
|
double |
getMeanLengthAsDouble()
Return the mean length as a double or throw a runtime exception. |
java.lang.Comparable |
getMeanValue()
|
double |
getMeanValueAsDouble()
Return the mean value as a double or throw a runtime exception. |
AttributeType |
getMinMaxAttributeType()
Return the attribute type for the min/max values. |
java.lang.Comparable |
getMinValue()
|
DataObject |
getParameterData()
Returns the data object containing the optional data required by the generator. |
DataObject |
getParentDataObject()
|
java.lang.Number |
getProbability()
|
double |
getProbabilityAsDouble()
Return the probability as a double or throw a runtime exception. |
int |
getProbabilityNull()
|
java.lang.Number |
getStdDevValue()
|
double |
getStdDevValueAsDouble()
Return the standard deviation value as a double or throw a runtime exception. |
java.lang.String |
getValueAttributeName()
Returns the attribute name in the case where we are generating data objects. |
void |
initGenerator()
Initialize the attribute generator with dynamic data (if any). |
boolean |
isDataDependent()
|
boolean |
isMultiValued()
|
boolean |
isParentDataDependent()
|
void |
setAttribute(Attribute attribute)
Sets the attribute for the generator. |
void |
setConstantValue(java.lang.Object constantValue)
Sets the constant value for the generator. |
void |
setCount(java.lang.Number count)
Sets the count for the BERNOULLI and BINOMIAL probability distribution. |
void |
setDataDependent(boolean dataDependent)
Sets whether or not the generator is dependent on previously generated data. |
void |
setDataObject(DataObject dataObject)
Sets the data object currently being generated. |
void |
setDataObjectMap(java.util.Map dataObjectMap)
Sets the data object map to use for variable resolution. |
void |
setGeneratorMode(int generatorMode)
Sets the generation mode for the generator. |
void |
setMaxValue(java.lang.Comparable maxValue)
Sets the maximum value that can be generated. |
void |
setMeanIndex(java.lang.Number meanIndex)
Sets the mean index for the various probability distributions. |
void |
setMeanLength(java.lang.Number meanLength)
Sets the mean length for the various probability distributions. |
void |
setMeanValue(java.lang.Comparable meanValue)
Sets the mean value for the various probability distributions. |
void |
setMinValue(java.lang.Comparable minValue)
Sets the minimum value that can be generated. |
void |
setMultiValued(boolean multiValued)
Sets whether or not we are generating data objects or single attribute values. |
void |
setParentDataDependent(boolean parentDataDependent)
Sets whether or not the generator is dependent on previously generated parent data. |
void |
setParentDataObject(DataObject parentDataObject)
Sets the parent data object currently being generated. |
void |
setProbability(java.lang.Number probability)
Sets the probability value for the BERNOULLI and BINOMIAL probability distribution. |
void |
setProbabilityNull(int probabilityNull)
Sets the probability that the generated value is null. |
void |
setStdDevValue(java.lang.Number stdDevValue)
Sets the standard deviation value for the various probability distributions. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractAttributeValueGenerator(Attribute attribute)
| Method Detail |
public AttributeValueGenerator copy()
copy in interface AttributeValueGenerator
public static final AttributeValueGenerator createGenerator(AttributeValueGeneratorParam generatorParam)
throws java.lang.Exception
java.lang.Exception
public abstract java.lang.Object generateValue()
throws java.lang.Exception
generateValue in interface AttributeValueGeneratorjava.lang.Exceptionpublic final Attribute getAttribute()
getAttribute in interface AttributeValueGeneratorpublic java.lang.Object getConstantValue()
getConstantValue in interface AttributeValueGeneratorpublic final java.lang.Number getCount()
getCount in interface AttributeValueGeneratorpublic final int getCountAsInt()
public final DataObject getDataObject()
getDataObject in interface AttributeValueGeneratorpublic final java.util.Map getDataObjectMap()
getDataObjectMap in interface AttributeValueGeneratorpublic int getGeneratorMode()
getGeneratorMode in interface AttributeValueGeneratorpublic final java.lang.Comparable getMaxValue()
getMaxValue in interface AttributeValueGeneratorpublic java.lang.Number getMeanIndex()
getMeanIndex in interface AttributeValueGeneratorpublic final double getMeanIndexAsDouble()
public java.lang.Number getMeanLength()
getMeanLength in interface AttributeValueGeneratorpublic final double getMeanLengthAsDouble()
public final java.lang.Comparable getMeanValue()
getMeanValue in interface AttributeValueGeneratorpublic final double getMeanValueAsDouble()
public AttributeType getMinMaxAttributeType()
getMinMaxAttributeType in interface AttributeValueGeneratorpublic final java.lang.Comparable getMinValue()
getMinValue in interface AttributeValueGeneratorpublic DataObject getParameterData()
getParameterData in interface AttributeValueGeneratorpublic final DataObject getParentDataObject()
getParentDataObject in interface AttributeValueGeneratorpublic final java.lang.Number getProbability()
getProbability in interface AttributeValueGeneratorpublic final double getProbabilityAsDouble()
public int getProbabilityNull()
getProbabilityNull in interface AttributeValueGeneratorpublic java.lang.Number getStdDevValue()
getStdDevValue in interface AttributeValueGeneratorpublic final double getStdDevValueAsDouble()
public java.lang.String getValueAttributeName()
getValueAttributeName in interface AttributeValueGenerator
public void initGenerator()
throws java.lang.Exception
initGenerator in interface AttributeValueGeneratorjava.lang.Exceptionpublic final boolean isDataDependent()
isDataDependent in interface AttributeValueGeneratorpublic final boolean isMultiValued()
isMultiValued in interface AttributeValueGeneratorpublic final boolean isParentDataDependent()
isParentDataDependent in interface AttributeValueGeneratorpublic final void setAttribute(Attribute attribute)
setAttribute in interface AttributeValueGeneratorpublic void setConstantValue(java.lang.Object constantValue)
setConstantValue in interface AttributeValueGeneratorpublic final void setCount(java.lang.Number count)
setCount in interface AttributeValueGeneratorpublic final void setDataDependent(boolean dataDependent)
setDataDependent in interface AttributeValueGeneratorpublic final void setDataObject(DataObject dataObject)
setDataObject in interface AttributeValueGeneratorpublic final void setDataObjectMap(java.util.Map dataObjectMap)
setDataObjectMap in interface AttributeValueGeneratorpublic void setGeneratorMode(int generatorMode)
setGeneratorMode in interface AttributeValueGeneratorpublic final void setMaxValue(java.lang.Comparable maxValue)
setMaxValue in interface AttributeValueGeneratorpublic void setMeanIndex(java.lang.Number meanIndex)
setMeanIndex in interface AttributeValueGeneratorpublic void setMeanLength(java.lang.Number meanLength)
setMeanLength in interface AttributeValueGeneratorpublic final void setMeanValue(java.lang.Comparable meanValue)
setMeanValue in interface AttributeValueGeneratorpublic final void setMinValue(java.lang.Comparable minValue)
setMinValue in interface AttributeValueGeneratorpublic final void setMultiValued(boolean multiValued)
setMultiValued in interface AttributeValueGeneratorpublic final void setParentDataDependent(boolean parentDataDependent)
setParentDataDependent in interface AttributeValueGeneratorpublic final void setParentDataObject(DataObject parentDataObject)
setParentDataObject in interface AttributeValueGeneratorpublic final void setProbability(java.lang.Number probability)
setProbability in interface AttributeValueGeneratorpublic void setProbabilityNull(int probabilityNull)
setProbabilityNull in interface AttributeValueGeneratorpublic void setStdDevValue(java.lang.Number stdDevValue)
setStdDevValue in interface AttributeValueGenerator
|
ThinkUI Data Generator 1.0.2 API | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.