Hook: Define MoneyBag Filter
Requirement
Only selected items of a MoneyBag shall be visible to a part of an
application.
Filters are most often used in connection with displaying the
contents of MoneyBags. E.g., if you want the user to select items
from a MoneyBag of available items, but want to keep a safety
margin, you can use a filtered MoneyBag for the source Stock.
Method of AdaptationEnable Feature
Level of SupportParameter Pattern
HotSpotFilters
ParticipantsMoneyBagFilter,
NewFilter
,
MoneyBag,
originalMoneyBag
,
filteredMoneyBag
Changes
-
subclass NewFilter of MoneyBagFilter.
-
NewFilter.countItems implements
MoneyBag.countItems
.
-
instance originalMoneyBag of MoneyBag.
-
instance filteredMoneyBag of NewFilter with parameter
originalMoneyBag.