@AnchorShadowVariable(sourceVariableName = "previousBusOrStop") @Override public Bus getBus() { return bus; }
private void linkShadowSources(DescriptorPolicy descriptorPolicy) { AnchorShadowVariable shadowVariableAnnotation = variableMemberAccessor.getAnnotation(AnchorShadowVariable.class); String sourceVariableName = shadowVariableAnnotation.sourceVariableName(); sourceVariableDescriptor = entityDescriptor.getVariableDescriptor(sourceVariableName); if (sourceVariableDescriptor == null) { throw new IllegalArgumentException("The entityClass (" + entityDescriptor.getEntityClass() + ") has a " + AnchorShadowVariable.class.getSimpleName() + " annotated property (" + variableMemberAccessor.getName() + ") with sourceVariableName (" + sourceVariableName + ") which is not a valid planning variable on entityClass (" + entityDescriptor.getEntityClass() + ").\n" + entityDescriptor.buildInvalidVariableNameExceptionMessage(sourceVariableName)); } if (!(sourceVariableDescriptor instanceof GenuineVariableDescriptor) || !((GenuineVariableDescriptor) sourceVariableDescriptor).isChained()) { throw new IllegalArgumentException("The entityClass (" + entityDescriptor.getEntityClass() + ") has a " + AnchorShadowVariable.class.getSimpleName() + " annotated property (" + variableMemberAccessor.getName() + ") with sourceVariableName (" + sourceVariableName + ") which is not chained."); } sourceVariableDescriptor.registerSinkVariableDescriptor(this); }
@Override @AnchorShadowVariable(sourceVariableName = "previousStandstill") public Vehicle getVehicle() { return vehicle; }
@AnchorShadowVariable(sourceVariableName = "chainedObject") public TestdataRichChainedAnchor getAnchor() { return anchor; }
@AnchorShadowVariable(sourceVariableName = "previousTaskOrEmployee") private Employee employee; @CustomShadowVariable(variableListenerClass = StartTimeUpdatingVariableListener.class,
@AnchorShadowVariable(sourceVariableName = "previousStandstill") private RockBus bus;
@AnchorShadowVariable(sourceVariableName = "previousBusOrStop") @Override public Bus getBus() { return bus; }
@Override @AnchorShadowVariable(sourceVariableName = "previousStandstill") public Vehicle getVehicle() { return vehicle; }
@AnchorShadowVariable(sourceVariableName = ParcelVisit.PREV_VISIT) @Nullable @Override public Vehicle getVehicle() { return vehicle; }
@AnchorShadowVariable(sourceVariableName = "previousTaskOrEmployee") private Employee employee; @CustomShadowVariable(variableListenerClass = StartTimeUpdatingVariableListener.class,
@AnchorShadowVariable(sourceVariableName = "previousStandstill") private RockBus bus;