instancevariables
stocks : map StockIdentifier to Stock := {|->};
operations public UpdateStocks:() ==> ()
UpdateStocks() == forall stock insetrng stocks do
stock.UpdateStock();
public AddStock:(Stock )==> ()
AddStock(stock) ==
stocks := {stock.GetName() |-> stock} munion stocks pre stock.GetName() not insetdom stocks post stock.GetName() insetdom stocks;
public RemoveStock:(Stock )==> ()
RemoveStock(stock) ==
stocks := {stock.GetName()} <-: stocks pre stock.GetName() insetdom stocks post stock.GetName() not insetdom stocks;
pure public GetStock:(StockIdentifier)==> Stock
GetStock(name) == return stocks(name) pre name insetdom stocks;
pure public GetStockNames: () ==> setof StockIdentifier
GetStockNames() == returndom stocks;
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 und die Messung sind noch experimentell.