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:
 AutoCloseable,ModelFacade,ModelGenerator
- 
Nested Class Summary
Nested classes/interfaces inherited from class tools.refinery.generator.impl.ConcreteModelFacade
ConcreteModelFacade.Args - 
Constructor Summary
ConstructorsConstructorDescriptionModelGeneratorImpl(ConcreteModelFacade.Args args, CancellableCancellationToken cancellationToken)  - 
Method Summary
Modifier and TypeMethodDescriptionint<A extends AbstractValue<A,C>, C> 
PartialInterpretation<A, C> getPartialInterpretation(PartialSymbol<A, C> partialSymbol) longintbooleanvoidloadSolution(int index) voidsetMaxNumberOfSolutions(int maxNumberOfSolutions) voidsetRandomSeed(long randomSeed) tryGenerateWithTimeout(long l, TimeUnit timeUnit) Methods inherited from class tools.refinery.generator.impl.ConcreteModelFacade
getConcreteness, getSolutionSerializerMethods inherited from class tools.refinery.generator.impl.ModelFacadeImpl
afterPropagation, checkConsistency, close, getDiagnostics, getInitializationResult, getMetadataCreator, getModel, getModelStore, getNodesMetadata, getProblemTrace, getRelationsMetadata, throwIfInitializationFailed, trySerializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tools.refinery.generator.ModelFacade
checkConsistency, close, getConcreteness, getInitializationResult, getModel, getModelStore, getNodesMetadata, getPartialInterpretation, getProblemTrace, getRelationsMetadata, throwIfInitializationFailed, trySerializeMethods inherited from interface tools.refinery.generator.ModelGenerator
generate, generateWithTimeout 
- 
Constructor Details
- 
ModelGeneratorImpl
public ModelGeneratorImpl(ConcreteModelFacade.Args args, CancellableCancellationToken cancellationToken)  
 - 
 - 
Method Details
- 
getRandomSeed
public long getRandomSeed()- Specified by:
 getRandomSeedin interfaceModelGenerator
 - 
setRandomSeed
public void setRandomSeed(long randomSeed) - Specified by:
 setRandomSeedin interfaceModelGenerator
 - 
getMaxNumberOfSolutions
public int getMaxNumberOfSolutions()- Specified by:
 getMaxNumberOfSolutionsin interfaceModelGenerator
 - 
setMaxNumberOfSolutions
public void setMaxNumberOfSolutions(int maxNumberOfSolutions) - Specified by:
 setMaxNumberOfSolutionsin interfaceModelGenerator
 - 
getSolutionCount
public int getSolutionCount()- Specified by:
 getSolutionCountin interfaceModelGenerator
 - 
loadSolution
public void loadSolution(int index) - Specified by:
 loadSolutionin interfaceModelGenerator
 - 
isLastGenerationSuccessful
public boolean isLastGenerationSuccessful()- Specified by:
 isLastGenerationSuccessfulin interfaceModelGenerator
 - 
tryGenerate
- Specified by:
 tryGeneratein interfaceModelGenerator
 - 
tryGenerateWithTimeout
- Specified by:
 tryGenerateWithTimeoutin interfaceModelGenerator
 - 
getPartialInterpretation
public <A extends AbstractValue<A,C>, PartialInterpretation<A,C> C> getPartialInterpretation(PartialSymbol<A, C> partialSymbol) - Specified by:
 getPartialInterpretationin interfaceModelFacade- Overrides:
 getPartialInterpretationin classConcreteModelFacade
 - 
serialize
- Specified by:
 serializein interfaceModelFacade- Overrides:
 serializein classConcreteModelFacade
 
 -