FlightGear next
FGGroundNetwork Class Reference

#include <groundnetwork.hxx>

Public Member Functions

 FGGroundNetwork (FGAirport *pr)
 
virtual ~FGGroundNetwork ()
 
void setVersion (int v)
 
int getVersion ()
 
void init ()
 
bool exists ()
 
FGAirportairport () const
 
FGTaxiNodeRef findNearestNode (const SGGeod &aGeod) const
 
FGTaxiNodeRef findNearestNodeOnRunwayEntry (const SGGeod &aGeod) const
 
FGTaxiNodeRef findNearestNodeOnRunwayExit (const SGGeod &aGeod, FGRunway *aRunway=NULL) const
 Returns the nearest node in that is in direction of runway heading.
 
FGTaxiNodeRef findNearestNodeOffRunway (const SGGeod &aGeod, FGRunway *aRunway, double distanceM) const
 
FGTaxiSegmentfindOppositeSegment (unsigned int index) const
 
const FGParkingListallParkings () const
 
FGParkingRef getParkingByIndex (unsigned int index) const
 
FGParkingRef findParkingByName (const std::string &name) const
 
FGTaxiSegmentfindSegment (const FGTaxiNode *from, const FGTaxiNode *to) const
 Find the taxiway segment joining two (ground-net) nodes.
 
FGTaxiSegmentfindSegmentByHeading (const FGTaxiNode *from, const double heading) const
 Find the taxiway segment best matching the heading.
 
FGTaxiSegmentfindSegment (unsigned int idx) const
 
FGTaxiNodeVector findSegmentsFrom (const FGTaxiNodeRef &from) const
 Find the segments connected to the node.
 
FGTaxiRoute findShortestRoute (FGTaxiNode *start, FGTaxiNode *end, bool fullSearch=true)
 
void blockSegmentsEndingAt (const FGTaxiSegment *seg, int blockId, time_t blockTime, time_t now)
 
void addVersion (int v)
 
void unblockAllSegments (time_t now)
 
const intVecgetApproachFrequencies () const
 
const intVecgetTowerFrequencies () const
 
const intVecgetGroundFrequencies () const
 

Friends

class FGGroundNetXMLLoader
 

Detailed Description

Definition at line 179 of file groundnetwork.hxx.

Constructor & Destructor Documentation

◆ FGGroundNetwork()

FGGroundNetwork::FGGroundNetwork ( FGAirport * pr)
explicit

Definition at line 159 of file groundnetwork.cxx.

◆ ~FGGroundNetwork()

FGGroundNetwork::~FGGroundNetwork ( )
virtual

Definition at line 166 of file groundnetwork.cxx.

Member Function Documentation

◆ addVersion()

void FGGroundNetwork::addVersion ( int v)
inline

Definition at line 291 of file groundnetwork.hxx.

◆ airport()

FGAirport * FGGroundNetwork::airport ( ) const
inline

Definition at line 251 of file groundnetwork.hxx.

◆ allParkings()

const FGParkingList & FGGroundNetwork::allParkings ( ) const

Definition at line 387 of file groundnetwork.cxx.

◆ blockSegmentsEndingAt()

void FGGroundNetwork::blockSegmentsEndingAt ( const FGTaxiSegment * seg,
int blockId,
time_t blockTime,
time_t now )

Definition at line 516 of file groundnetwork.cxx.

◆ exists()

bool FGGroundNetwork::exists ( )
inline

Definition at line 246 of file groundnetwork.hxx.

◆ findNearestNode()

FGTaxiNodeRef FGGroundNetwork::findNearestNode ( const SGGeod & aGeod) const

Definition at line 205 of file groundnetwork.cxx.

◆ findNearestNodeOffRunway()

FGTaxiNodeRef FGGroundNetwork::findNearestNodeOffRunway ( const SGGeod & aGeod,
FGRunway * aRunway,
double distanceM ) const

Definition at line 223 of file groundnetwork.cxx.

◆ findNearestNodeOnRunwayEntry()

FGTaxiNodeRef FGGroundNetwork::findNearestNodeOnRunwayEntry ( const SGGeod & aGeod) const

Definition at line 255 of file groundnetwork.cxx.

◆ findNearestNodeOnRunwayExit()

FGTaxiNodeRef FGGroundNetwork::findNearestNodeOnRunwayExit ( const SGGeod & aGeod,
FGRunway * aRunway = NULL ) const

Returns the nearest node in that is in direction of runway heading.

Falls back to ones behind aircraft

Parameters
aGeodReference point
aRunway
Returns

Definition at line 281 of file groundnetwork.cxx.

◆ findOppositeSegment()

FGTaxiSegment * FGGroundNetwork::findOppositeSegment ( unsigned int index) const

Definition at line 379 of file groundnetwork.cxx.

◆ findParkingByName()

FGParkingRef FGGroundNetwork::findParkingByName ( const std::string & name) const

Definition at line 557 of file groundnetwork.cxx.

◆ findSegment() [1/2]

FGTaxiSegment * FGGroundNetwork::findSegment ( const FGTaxiNode * from,
const FGTaxiNode * to ) const

Find the taxiway segment joining two (ground-net) nodes.

Returns NULL if no such segment exists. It is permitted to pass HULL for the 'to' indicating that any segment originating at 'from' is acceptable.

Definition at line 402 of file groundnetwork.cxx.

◆ findSegment() [2/2]

FGTaxiSegment * FGGroundNetwork::findSegment ( unsigned int idx) const

◆ findSegmentByHeading()

FGTaxiSegment * FGGroundNetwork::findSegmentByHeading ( const FGTaxiNode * from,
const double heading ) const

Find the taxiway segment best matching the heading.

Definition at line 610 of file groundnetwork.cxx.

◆ findSegmentsFrom()

FGTaxiNodeVector FGGroundNetwork::findSegmentsFrom ( const FGTaxiNodeRef & from) const

Find the segments connected to the node.

Definition at line 597 of file groundnetwork.cxx.

◆ findShortestRoute()

FGTaxiRoute FGGroundNetwork::findShortestRoute ( FGTaxiNode * start,
FGTaxiNode * end,
bool fullSearch = true )

Definition at line 440 of file groundnetwork.cxx.

◆ getApproachFrequencies()

const intVec & FGGroundNetwork::getApproachFrequencies ( ) const

Definition at line 633 of file groundnetwork.cxx.

◆ getGroundFrequencies()

const intVec & FGGroundNetwork::getGroundFrequencies ( ) const

Definition at line 643 of file groundnetwork.cxx.

◆ getParkingByIndex()

FGParkingRef FGGroundNetwork::getParkingByIndex ( unsigned int index) const

Definition at line 547 of file groundnetwork.cxx.

◆ getTowerFrequencies()

const intVec & FGGroundNetwork::getTowerFrequencies ( ) const

Definition at line 638 of file groundnetwork.cxx.

◆ getVersion()

int FGGroundNetwork::getVersion ( )
inline

Definition at line 243 of file groundnetwork.hxx.

◆ init()

void FGGroundNetwork::init ( )

Definition at line 173 of file groundnetwork.cxx.

◆ setVersion()

void FGGroundNetwork::setVersion ( int v)
inline

Definition at line 242 of file groundnetwork.hxx.

◆ unblockAllSegments()

void FGGroundNetwork::unblockAllSegments ( time_t now)

Definition at line 509 of file groundnetwork.cxx.

Friends And Related Symbol Documentation

◆ FGGroundNetXMLLoader

friend class FGGroundNetXMLLoader
friend

Definition at line 182 of file groundnetwork.hxx.


The documentation for this class was generated from the following files: