pure public Covers : setof Waypoint ==> bool
Covers(waypoints) == return {w.GetId() | w inset waypoints} = {w.GetId() | w inset wps}; --does road cover the waypoints in arg
pure public GetWaypoints : () ==> setof Waypoint
GetWaypoints()== return wps;
pure public OppositeEnd : Waypoint ==> Waypoint
OppositeEnd(wp)== let opposite inset wps \ {wp} inreturn opposite pre wp inset wps; -- if the waypoint is not found on the road -- it may indicate that the route is not connected -- by the same waypoint
pure public GetSpeedLimit : () ==> nat
GetSpeedLimit()== return speedlimit;
public GetLength : () ==> nat
GetLength() == return roadLength;
pure public GetRoadNumber : () ==> RoadNumber
GetRoadNumber()== return roadNmbr;
pure public GetTimePenalty : () ==> nat
GetTimePenalty()== return timePenalty;
end Road
¤ Dauer der Verarbeitung: 0.14 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.