/* values public StringOrder = lambda x : seq of char , y : seq of char & String`LT(x,y); public NumericOrder = lambda x : NumericalValue, y : NumericalValue & x < y; public DateOrder = lambda x : Date, y : Date & x.LT(y); public AmountOfMoneyOrder = lambda x : AmountOfMoney, y : AmountOfMoney & x < y;
*/
public NumericOrder : NumericalValue * NumericalValue -> bool
NumericOrder(x, y) == x < y;
public DateOrder : Date * Date -> bool
DateOrder(x, y) == x.LT(y);
public AmountOfMoneyOrder : AmountOfMoney * AmountOfMoney -> bool
AmountOfMoneyOrder(x, y) == x < y;
types public Identifier = seqofchar inv - == forall s1, s2 : seqofchar, id1, id2 : Identifier & id1 <> id2 => s1 <> s2; public Quantity = int; public NumericalValue = int; public Percent = real inv p == 0 <= p and p <= 100; public AmountOfMoney = int; public NonNegativeAmountOfMoney = nat; public PositiveAmountOfMoney = nat1; public AmountOfMoney2 = real inv am == newReal().isNDigitsAfterTheDecimalPoint(am,2) ; -- 2 digits after the decimal point
end CommonDefinition
¤ Dauer der Verarbeitung: 0.12 Sekunden
(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.