Specify a property to use for a memorization strategy. Use with-value-at
when you want a strategy to advise for memorizing an option. This is particularly useful when the only way to distinguish between multiple options is to consider specific properties the option contains. The with-value-at
parameter specifies a property to include as part of that memorization.
selection-strategy {
id (phoneInfo_selection_strategy)
match {
PhoneInfo (this)
}
named-advice ("phone-info-selection") {
with-value-at (this.phoneType)
with-value-at (this.number)
advice (1.0)
advise-for {
lowerBoundClosed (1.0)
}
}
}
Copyright 2024 Samsung All rights reserved