-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCASystem.pd
More file actions
35 lines (23 loc) · 919 Bytes
/
CASystem.pd
File metadata and controls
35 lines (23 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//*******************************************************
//* File: C:/Users/User/Desktop/Third Year Project/CollisionAvoidanceSystem/CASystem.pd
//* Author: Varuna
//* Created: 09:57:34 on Wednesday January 28th 2015 UTC
//*******************************************************
class CASystem ^=
abstract
const defaultTimeToFlyFor ^= 0.10; //seconds
var atc : AirTrafficController;
interface
function atc;
function getAircrafts : seq of Aircraft
^= atc.aircrafts;
function getAircraftPairsOrderedByTimeToConflict : seq of AircraftPair
^= atc.getAircraftPairsOrderedByTimeToConflict;
schema !changeHeight(identification : string, targetHeight : real)
post atc!changeCraftHeight(identification, targetHeight);
schema !fly
post atc!fly(defaultTimeToFlyFor);
schema !addAircraft(aircraft : Aircraft)
post atc!addAircraft(aircraft);
build{!atc : AirTrafficController};
end;