public
distributeGoods : () ==> ()
distributeGoods() ==
(dcl doomed : setof Colli := {}; forall x insetinds goods do forall y insetinds slides do if goods(x).getDestination() = slides(y).getID() then--hvis destination matcher slisk ID
(slides(y).addGoods(goods(x));
doomed := doomed union {goods(x)};
); forall i inset doomed do
removeGoods(i);
);
public removeGoods : Colli ==> ()
removeGoods(elem) ==
(goods := [goods(x)|x insetinds goods & goods(x) <> elem ] --build a new sequence of all the elements <> input --IO`print( "removeGoods called, goods: \n"); --IO`print(goods);
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.