The OptaPlanner docs suggest using a custom variable listener to implement an automatic delay when, for example, more than one person must be at a job site at the same time:
This requires that the planning entities must know about each other regardless of anchor, however, and in a chained timing scenario, the entities in a chain only know about previous, next, and the anchor. At least by default.
This means that the shadow variables that are being updated depend on the planning and shadow variables of entities in chains other than their own.
So, is there a standard to handling this? I could have the entities hold references to the other entities, but that doesn't explain how one can prevent variable listener or score corruption.
I'd imagine that this requires specifying sources on other chains, but I'm not sure how to go about that.