T - The kind of Thing to generate.S - The Type of the Thing being generated.public abstract class AbstractThingGenerator<T extends ai.grakn.concept.Thing,S extends ai.grakn.concept.Type> extends FromTxGenerator<T>
Things.| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractThingGenerator.WithResource
Specify if the generated
Thing should be connected to a Attribute |
FromTxGenerator.FromTx| Modifier and Type | Method and Description |
|---|---|
void |
configure(AbstractSchemaConceptGenerator.NonMeta nonMeta) |
void |
configure(AbstractThingGenerator.WithResource withResource) |
protected T |
generateFromTx() |
protected abstract T |
newInstance(S type) |
protected ai.grakn.concept.Attribute |
newResource(ai.grakn.concept.AttributeType type) |
configure, generate, genFromTx, txgenerate, listOf, setOfaddComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, doShrink, gen, hasComponents, narrow, numberOfNeededComponents, provide, shrink, typesprotected final T generateFromTx()
generateFromTx in class FromTxGenerator<T extends ai.grakn.concept.Thing>protected ai.grakn.concept.Attribute newResource(ai.grakn.concept.AttributeType type)
public final void configure(AbstractSchemaConceptGenerator.NonMeta nonMeta)
public final void configure(AbstractThingGenerator.WithResource withResource)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.