FlightGear next
TowerController.hxx
Go to the documentation of this file.
1// Extracted from trafficcontrol.hxx - classes to manage AIModels based air traffic control
2// Written by Durk Talsma, started September 2006.
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License as
6// published by the Free Software Foundation; either version 2 of the
7// License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program; if not, write to the Free Software
16// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17//
18// $Id$
19
20#ifndef TOWER_CONTROLLER_HXX
21#define TOWER_CONTROLLER_HXX
22
24
25#include <osg/Geode>
26#include <osg/Geometry>
27#include <osg/MatrixTransform>
28#include <osg/Shape>
29
30#include <simgear/compiler.h>
31#include <simgear/constants.h>
32#include <simgear/debug/logstream.hxx>
33#include <simgear/structure/SGReferenced.hxx>
34#include <simgear/structure/SGSharedPtr.hxx>
35
36#include <ATC/ATCController.hxx>
38
39/******************************************************************************
40 * class FGTowerControl
41 *****************************************************************************/
43{
44private:
46 int getFrequency();
47
48public:
50 virtual ~FGTowerController();
51
52 virtual void announcePosition(int id, FGAIFlightPlan *intendedRoute, int currentRoute,
53 double lat, double lon,
54 double hdg, double spd, double alt, double radius, int leg,
55 FGAIAircraft *aircraft);
56 void signOff(int id);
57 bool hasInstruction(int id);
59 virtual void updateAircraftInformation(int id, SGGeod geod,
60 double heading, double speed, double alt, double dt);
61
62 virtual void render(bool);
63 virtual std::string getName() const;
64 virtual void update(double dt);
65};
66
67#endif
FGAirportDynamics * parent
virtual void render(bool)
virtual void announcePosition(int id, FGAIFlightPlan *intendedRoute, int currentRoute, double lat, double lon, double hdg, double spd, double alt, double radius, int leg, FGAIAircraft *aircraft)
FGATCInstruction getInstruction(int id)
virtual void update(double dt)
bool hasInstruction(int id)
virtual std::string getName() const
virtual void updateAircraftInformation(int id, SGGeod geod, double heading, double speed, double alt, double dt)
FGTowerController(FGAirportDynamics *parent)
void signOff(int id)
Sign off the aircraft with the id from this controller.