This class models physical cards. Each card has a code, a card id and an
account id stored on it. The class provides operationsto create a card andto read information stored on a card.
\begin{vdm_al} classCard
types public CardId = nat; public Code = nat; public PinCode = nat;
pure public GetCode : () ==> Code
GetCode() == return code;
pure public GetAccountId : () ==> Account`AccountId
GetAccountId() == return accountId;
pure public GetCardId : () ==> CardId
GetCardId() == return cardId;
endCard
\end{vdm_al}
¤ 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.0.0Bemerkung:
(vorverarbeitet)
¤
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.