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)
linkInheritedEntityDescriptors
public void linkInheritedEntityDescriptors(DescriptorPolicy descriptorPolicy)
linkShadowSources
public void linkShadowSources(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()
hasProperty
public boolean hasProperty(String propertyName)
hasAnyDeclaredGenuineVariableDescriptor
public boolean hasAnyDeclaredGenuineVariableDescriptor()
getGenuineVariableNameSet
public Collection<String> getGenuineVariableNameSet()
getGenuineVariableDescriptorMap
public Map<String,GenuineVariableDescriptor> getGenuineVariableDescriptorMap()
getShadowVariableDescriptorMap
public Map<String,ShadowVariableDescriptor> getShadowVariableDescriptorMap()
getGenuineVariableDescriptors
public Collection<GenuineVariableDescriptor> getGenuineVariableDescriptors()
hasGenuineVariableDescriptor
public boolean hasGenuineVariableDescriptor(String variableName)
getGenuineVariableDescriptor
public GenuineVariableDescriptor getGenuineVariableDescriptor(String variableName)
hasShadowVariableDescriptor
public boolean hasShadowVariableDescriptor(String variableName)
getShadowVariableDescriptor
public ShadowVariableDescriptor getShadowVariableDescriptor(String variableName)
addDeclaredVariableListenersToMap
public void addDeclaredVariableListenersToMap(Map<VariableDescriptor,List<VariableListener>> variableListenerMap)
getDeclaredVariableDescriptors
public Collection<VariableDescriptor> getDeclaredVariableDescriptors()
getVariableDescriptor
public VariableDescriptor getVariableDescriptor(String variableName)
buildInvalidVariableNameExceptionMessage
public String buildInvalidVariableNameExceptionMessage(String variableName)
extractEntities
public List<Object> extractEntities(Solution solution)
getVariableCount
public long getVariableCount()
getProblemScale
public long getProblemScale(Solution solution,
Object entity)
countUninitializedVariables
public int countUninitializedVariables(Object entity)
isInitialized
public boolean isInitialized(Object entity)
countReinitializableVariables
public int countReinitializableVariables(ScoreDirector scoreDirector,
Object entity)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.