@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface InverseRelationShadowVariable
PlanningVariable
, which implies it's a shadow variable.
It is specified on a getter of a java bean property (or a field) of a PlanningEntity
class.
Modifier and Type | Required Element and Description |
---|---|
String |
sourceVariableName
In a bidirectional relationship, the shadow side (= the slave side) uses this property
(and nothing else) to declare for which
PlanningVariable (= the master side) it is a shadow. |
public abstract String sourceVariableName
PlanningVariable
(= the master side) it is a shadow.
Both sides of a bidirectional relationship should be consistent: if A points to B, then B must point to A.
When the Solver
changes a genuine variable, it adjusts the shadow variable accordingly.
In practice, the Solver
ignores shadow variables (except for consistency housekeeping).
Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.