OptaPlanner core 6.2.0.Beta1

org.optaplanner.core.api.domain.variable
Annotation Type CustomShadowVariable.Source


public static @interface CustomShadowVariable.Source

Declares which genuine variable (or other shadow variable) causes the shadow variable to change.


Required Element Summary
 String variableName
          A source variable that causes the shadow variable to change.
 
Optional Element Summary
 Class<?> entityClass
          Specified if the source variable is on a different CustomShadowVariable.Source.NullEntityClass than the shadow variable.
 

Element Detail

variableName

public abstract String variableName
A source variable that causes the shadow variable to change.

Returns:
never null, a genuine or shadow variable

entityClass

public abstract Class<?> entityClass
Specified if the source variable is on a different CustomShadowVariable.Source.NullEntityClass than the shadow variable.

Returns:
CustomShadowVariable.Source.NullEntityClass when it is null (workaround for annotation limitation). Defaults to the same CustomShadowVariable.Source.NullEntityClass as the one that contains the CustomShadowVariable annotation.
Default:
org.optaplanner.core.api.domain.variable.CustomShadowVariable.Source.NullEntityClass.class

OptaPlanner core 6.2.0.Beta1

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.