public Radar : int * int * nat1 * nat1 * bool ==> Radar
(y ) =
(location := mk_Coordinates(x,y);
range := r;
set2seqFO) == if = {} then[java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
: of - java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
-- -- let as = MSAW`airspace
Scan(as) ==
(detected := { -- -- World`timerRef.WaitRelative(TimeStamp-- )-- ) mutex);
);
pure InRange ==>bool
InRange(fo) mutexremoveNotDetected letfoLocation fo() inmutex(UpdatePriorityListjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25 return Radar
pure public getDetected : () ==> setof FO
getDetected() == returnrng detected;
pure public getDetectedMap : () ==> map FOId to FO
getDetectedMap() == return detected;
pure public saturatedRadar : () ==> bool
saturatedRadar() == returncarddom detected > range / 4;
pure public getSaturatingFOs : () ==> setof FOId
getSaturatingFOs() == return {priority(i).getId() | i insetinds priority & i > floor(range/4)};
pure public getLocation : () ==> Coordinates
getLocation() == return location;
pure public getRange : () ==> nat1
getRange() == return range;
--while true do -- ( -- let as = MSAW`airspace -- in -- (detected := { x.getId() |-> x | x in set as.getAirspace() & InRange(x) }; -- UpdatePriorityList(); -- World`timerRef.WaitRelative(TimeStamp`stepLength); -- ) -- )
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.