Hook: Define StoringStock Filter
Requirement
Only selected items of a StoringStock shall be visible to a part of
an application.
Filters are most often used in connection with displaying the
contents of StoringStocks. If you want to display only selected
StockItems, use a filtered StoringStock.
Method of AdaptationEnable Feature
Level of SupportParameter Pattern
HotSpotFilters
ParticipantsStoringStockFilter,
NewFilter
,
StoringStock,
originalStoringStock
,
filteredStoringStock
Changes
-
subclass NewFilter of StoringStockFilter.
-
NewFilter.contains implements
StoringStockFilter.contains
returning true for every StockItem that shall be
part of the filtered Stock.
-
instance originalStoringStock of StoringStock.
-
instance filteredStoringStock of NewFilter with parameter
originalStoringStock.