Package tools.refinery.generator.impl
Class ModelGeneratorImpl
java.lang.Object
tools.refinery.generator.impl.ModelFacadeImpl
tools.refinery.generator.impl.ConcreteModelFacade
tools.refinery.generator.impl.ModelGeneratorImpl
- All Implemented Interfaces:
ModelFacade
,ModelGenerator
-
Constructor Summary
ConstructorDescriptionModelGeneratorImpl
(ProblemTrace problemTrace, ModelStore store, ModelSeed modelSeed, com.google.inject.Provider<SolutionSerializer> solutionSerializerProvider, com.google.inject.Provider<MetadataCreator> metadataCreatorProvider, CancellableCancellationToken cancellationToken, boolean keepNonExistingObjects) -
Method Summary
Modifier and TypeMethodDescriptionint
<A extends AbstractValue<A,
C>, C>
PartialInterpretation<A, C> getPartialInterpretation
(PartialSymbol<A, C> partialSymbol) long
int
boolean
void
loadSolution
(int index) void
setMaxNumberOfSolutions
(int maxNumberOfSolutions) void
setRandomSeed
(long randomSeed) tryGenerateWithTimeout
(long l, TimeUnit timeUnit) Methods inherited from class tools.refinery.generator.impl.ConcreteModelFacade
getConcreteness, getSolutionSerializer
Methods inherited from class tools.refinery.generator.impl.ModelFacadeImpl
afterPropagation, checkConsistency, getInitializationResult, getMetadataCreator, getModel, getModelStore, getNodesMetadata, getProblemTrace, getRelationsMetadata
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.refinery.generator.ModelFacade
checkConsistency, getConcreteness, getInitializationResult, getModel, getModelStore, getNodesMetadata, getPartialInterpretation, getProblemTrace, getRelationsMetadata
Methods inherited from interface tools.refinery.generator.ModelGenerator
generate, generateWithTimeout
-
Constructor Details
-
ModelGeneratorImpl
public ModelGeneratorImpl(ProblemTrace problemTrace, ModelStore store, ModelSeed modelSeed, com.google.inject.Provider<SolutionSerializer> solutionSerializerProvider, com.google.inject.Provider<MetadataCreator> metadataCreatorProvider, CancellableCancellationToken cancellationToken, boolean keepNonExistingObjects)
-
-
Method Details
-
getRandomSeed
public long getRandomSeed()- Specified by:
getRandomSeed
in interfaceModelGenerator
-
setRandomSeed
public void setRandomSeed(long randomSeed) - Specified by:
setRandomSeed
in interfaceModelGenerator
-
getMaxNumberOfSolutions
public int getMaxNumberOfSolutions()- Specified by:
getMaxNumberOfSolutions
in interfaceModelGenerator
-
setMaxNumberOfSolutions
public void setMaxNumberOfSolutions(int maxNumberOfSolutions) - Specified by:
setMaxNumberOfSolutions
in interfaceModelGenerator
-
getSolutionCount
public int getSolutionCount()- Specified by:
getSolutionCount
in interfaceModelGenerator
-
loadSolution
public void loadSolution(int index) - Specified by:
loadSolution
in interfaceModelGenerator
-
isLastGenerationSuccessful
public boolean isLastGenerationSuccessful()- Specified by:
isLastGenerationSuccessful
in interfaceModelGenerator
-
tryGenerate
- Specified by:
tryGenerate
in interfaceModelGenerator
-
tryGenerateWithTimeout
- Specified by:
tryGenerateWithTimeout
in interfaceModelGenerator
-
getPartialInterpretation
public <A extends AbstractValue<A,C>, PartialInterpretation<A,C> C> getPartialInterpretation(PartialSymbol<A, C> partialSymbol) - Specified by:
getPartialInterpretation
in interfaceModelFacade
- Overrides:
getPartialInterpretation
in classConcreteModelFacade
-
serialize
- Specified by:
serialize
in interfaceModelFacade
- Overrides:
serialize
in classConcreteModelFacade
-