- FGTaxiNode();
- FGTaxiNode(double, double, int);
-
- void setIndex(int idx) { index = idx;};
- void setLatitude (double val) { lat = val;};
- void setLongitude(double val) { lon = val;};
- void setLatitude (const string& val) { lat = processPosition(val); };
- void setLongitude(const string& val) { lon = processPosition(val); };
- void addSegment(FGTaxiSegment *segment) { next.push_back(segment); };
-
- double getLatitude() { return lat;};
- double getLongitude(){ return lon;};
+ FGTaxiNode() :
+ index(0),
+ isOnRunway(false),
+ holdType(0),
+ pathScore(0),
+ previousNode(0),
+ previousSeg(0)
+{
+};
+
+ FGTaxiNode(const FGTaxiNode &other) :
+ geod(other.geod),
+ index(other.index),
+ isOnRunway(other.isOnRunway),
+ holdType(other.holdType),
+ next(other.next),
+ pathScore(other.pathScore),
+ previousNode(other.previousNode),
+ previousSeg(other.previousSeg)
+{
+};
+
+FGTaxiNode &operator =(const FGTaxiNode &other)
+{
+ geod = other.geod;
+ index = other.index;
+ isOnRunway = other.isOnRunway;
+ holdType = other.holdType;
+ next = other.next;
+ pathScore = other.pathScore;
+ previousNode = other.previousNode;
+ previousSeg = other.previousSeg;
+ return *this;
+};
+
+ void setIndex(int idx) { index = idx; };
+ void setLatitude (double val);
+ void setLongitude(double val);
+ void setElevation(double val);
+ void setLatitude (const std::string& val);
+ void setLongitude(const std::string& val);
+ void addSegment(FGTaxiSegment *segment) { next.push_back(segment); };
+ void setHoldPointType(int val) { holdType = val; };
+ void setOnRunway(bool val) { isOnRunway = val; };
+
+ void setPathScore (double val) { pathScore = val; };
+ void setPreviousNode(FGTaxiNode *val) { previousNode = val; };
+ void setPreviousSeg (FGTaxiSegment *val) { previousSeg = val; };
+
+ FGTaxiNode *getPreviousNode() { return previousNode; };
+ FGTaxiSegment *getPreviousSegment() { return previousSeg; };
+
+ double getPathScore() { return pathScore; };
+ double getLatitude() { return geod.getLatitudeDeg();};
+ double getLongitude(){ return geod.getLongitudeDeg();};
+ double getElevation() { return geod.getElevationM();};
+
+ const SGGeod& getGeod() const { return geod; }