Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
11. Example – Robbie Goes Shopping 161<br />
frame medium_item is an item<br />
default size is medium .<br />
frame small_item is an item<br />
default size is small .<br />
The medium_item and small_item frames automatically inherit 3 as the<br />
value for maximum_allowed, whereas the large_item frame overrides<br />
this value with 1.<br />
The following KSL sentences define the characteristics of each shopping<br />
item.<br />
frame bread is a medium_item<br />
default container is a plastic_bag and<br />
default condition is fresh .<br />
frame butter is a small_item<br />
default container is a plastic_carton and<br />
default condition is fresh .<br />
frame coffee is a medium_item<br />
default container is a jar and<br />
default condition is freeze_dried .<br />
frame ice_cream is a medium_item<br />
default container is a cardboard_carton and<br />
default condition is frozen .<br />
frame crisps is a small_item<br />
default container is a plastic_bag and<br />
default condition is fragile .<br />
frame salted_peanuts is a small_item<br />
default container is a plastic_bag and<br />
default condition is salted .<br />
frame beer is a large_item<br />
default container is a bottle and<br />
default condition is liquid .<br />
frame lemonade is a large_item<br />
default container is a bottle and<br />
default condition is liquid .<br />
frame washing_powder is a large_item<br />
default container is a cardboard_carton and<br />
default condition is powder .<br />
The KSL rules for packing the items into bags are hopefully self explanatory.<br />
<strong>flex</strong> toolkit