org.optaplanner.core.impl.domain.entity.descriptor
Class EntityDescriptor
java.lang.Object
org.optaplanner.core.impl.domain.entity.descriptor.EntityDescriptor
public class EntityDescriptor
- extends Object
EntityDescriptor
public EntityDescriptor(SolutionDescriptor solutionDescriptor,
Class<?> entityClass)
processAnnotations
public void processAnnotations(DescriptorPolicy descriptorPolicy)
afterAnnotationsProcessed
public void afterAnnotationsProcessed(DescriptorPolicy descriptorPolicy)
getSolutionDescriptor
public SolutionDescriptor getSolutionDescriptor()
getEntityClass
public Class<?> getEntityClass()
matchesEntity
public boolean matchesEntity(Object entity)
hasMovableEntitySelectionFilter
public boolean hasMovableEntitySelectionFilter()
getMovableEntitySelectionFilter
public SelectionFilter getMovableEntitySelectionFilter()
getDecreasingDifficultySorter
public SelectionSorter getDecreasingDifficultySorter()
getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor(String propertyName)
getPlanningVariableNameSet
public Collection<String> getPlanningVariableNameSet()
getVariableDescriptors
public Collection<GenuineVariableDescriptor> getVariableDescriptors()
hasVariableDescriptor
public boolean hasVariableDescriptor(String propertyName)
getVariableDescriptor
public GenuineVariableDescriptor getVariableDescriptor(String propertyName)
hasGenuineVariableDescriptor
public boolean hasGenuineVariableDescriptor()
hasShadowVariableDescriptor
public boolean hasShadowVariableDescriptor(String propertyName)
getShadowVariableDescriptor
public ShadowVariableDescriptor getShadowVariableDescriptor(String propertyName)
addVariableListenersToMap
public void addVariableListenersToMap(Map<GenuineVariableDescriptor,List<VariableListener>> variableListenerMap)
extractEntities
public List<Object> extractEntities(Solution solution)
getProblemScale
public long getProblemScale(Solution solution,
Object entity)
countUninitializedVariables
public int countUninitializedVariables(Object entity)
isInitialized
public boolean isInitialized(Object entity)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.