T- The configuration type this
delegatewill modify. This configuration type should be the type that is specific to the segment being used (for example, use a
InitialStateSegmentConfigurationif the associated segment is a
@FunctionalInterface public static interface SetVariableCallback.Function<T extends ICloneWithContext>
void invoke(double currentValue, T configurationToModify)
DelegateBasedVariable. You will want to apply the
currentValueto the appropriate element in the
currentValue- The value modifying the
configurationToModify. It is up to you to apply this value to whatever the initial value is in the
configurationToModify. The values in the
configurationToModifymust be modified such that they reflect this update.
configurationToModify- The configuration of the segment getting modified.