org.optaplanner.core.impl.domain.solution.descriptor
Class SolutionDescriptor
java.lang.Object
org.optaplanner.core.impl.domain.solution.descriptor.SolutionDescriptor
public class SolutionDescriptor
- extends Object
Field Summary |
protected org.slf4j.Logger |
logger
|
logger
protected final transient org.slf4j.Logger logger
SolutionDescriptor
public SolutionDescriptor(Class<? extends Solution> solutionClass)
addEntityDescriptor
public void addEntityDescriptor(EntityDescriptor entityDescriptor)
processAnnotations
public void processAnnotations(DescriptorPolicy descriptorPolicy)
afterAnnotationsProcessed
public void afterAnnotationsProcessed(DescriptorPolicy descriptorPolicy)
getSolutionClass
public Class<? extends Solution> getSolutionClass()
getSolutionCloner
public SolutionCloner getSolutionCloner()
getEntityPropertyAccessorMap
public Map<String,PropertyAccessor> getEntityPropertyAccessorMap()
getEntityCollectionPropertyAccessorMap
public Map<String,PropertyAccessor> getEntityCollectionPropertyAccessorMap()
getPropertyAccessor
public PropertyAccessor getPropertyAccessor(String propertyName)
getEntityClassSet
public Set<Class<?>> getEntityClassSet()
getEntityDescriptors
public Collection<EntityDescriptor> getEntityDescriptors()
getGenuineEntityDescriptors
public Collection<EntityDescriptor> getGenuineEntityDescriptors()
hasEntityDescriptorStrict
public boolean hasEntityDescriptorStrict(Class<?> entityClass)
getEntityDescriptorStrict
public EntityDescriptor getEntityDescriptorStrict(Class<?> entityClass)
hasEntityDescriptor
public boolean hasEntityDescriptor(Class<?> entitySubclass)
findEntityDescriptorOrFail
public EntityDescriptor findEntityDescriptorOrFail(Class<?> entitySubclass)
findEntityDescriptor
public EntityDescriptor findEntityDescriptor(Class<?> entitySubclass)
getChainedVariableDescriptors
public Collection<GenuineVariableDescriptor> getChainedVariableDescriptors()
buildVariableListenerSupport
public VariableListenerSupport buildVariableListenerSupport()
findGenuineVariableDescriptor
public GenuineVariableDescriptor findGenuineVariableDescriptor(Object entity,
String variableName)
findGenuineVariableDescriptorOrFail
public GenuineVariableDescriptor findGenuineVariableDescriptorOrFail(Object entity,
String variableName)
findVariableDescriptor
public VariableDescriptor findVariableDescriptor(Object entity,
String variableName)
findVariableDescriptorOrFail
public VariableDescriptor findVariableDescriptorOrFail(Object entity,
String variableName)
getAllFacts
public Collection<Object> getAllFacts(Solution solution)
getEntityCount
public int getEntityCount(Solution solution)
- Parameters:
solution
- never null
- Returns:
- >= 0
getEntityList
public List<Object> getEntityList(Solution solution)
getEntityListByEntityClass
public List<Object> getEntityListByEntityClass(Solution solution,
Class<?> entityClass)
getValueCount
public int getValueCount(Solution solution)
- Parameters:
solution
- never null
- Returns:
- >= 0
getProblemScale
public long getProblemScale(Solution solution)
- Calculates an indication on how big this problem instance is.
This is intentionally very loosely defined for now.
- Parameters:
solution
- never null
- Returns:
- >= 0
countUninitializedVariables
public int countUninitializedVariables(Solution solution)
isInitialized
public boolean isInitialized(ScoreDirector scoreDirector,
Solution solution)
- Parameters:
scoreDirector
- never nullsolution
- never null
- Returns:
- true if all the movable planning entities are initialized
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.