T- The configuration type to use. This configuration object should be of a type that is specific to the segment being used (such as
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 add the
currentValueto the appropriate setting in the
currentValue- The variable modifying the
configurationToModify. This is the delta, not the full value. It is up to you to add 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.