operations public
GetAap: () ==> AtmosphericAirPressure
GetAap() == return aap;
public
SetAap: AtmosphericAirPressure ==> ()
SetAap(a) ==
aap := a;
public
GetBoilingPoint: real ==> real
GetBoilingPoint(atm) == return boiling_point(atm) pre atm insetdom boiling_point;
public
GetTemperature: () ==> real
GetTemperature() == return temperature;
public
SetTemperature: real ==> ()
SetTemperature(t) ==
temperature := t;
public
AddTemperature: () ==> ()
AddTemperature() == if temperature < boiling_point(aap.GetAtm()) then
temperature := temperature + 1.0 else
(temperature := boiling_point(aap.GetAtm());
amount := amount - 1.0--- evaporation (1.0 is inadequate value!)
) pre
aap.GetAtm() insetdom boiling_point and
temperature <= boiling_point(aap.GetAtm()) post
temperature <= boiling_point(aap.GetAtm());
pure public
GetAmount: () ==> real
GetAmount() == return amount;
public
SetAmount: real ==> ()
SetAmount(a) ==
amount := a;
end Liquid
Messung V0.5 in Prozent
[Dauer der Verarbeitung: 0.11 Sekunden, vorverarbeitet 2026-09-27]