예제 #1
0
		// Copy constructor
		public Vertex(Vertex aVertex) {
		
			double latitude = aVertex.getLocation().getAbsoluteLocation().getLatitude();
			double longitude = aVertex.getLocation().getAbsoluteLocation().getLongitude();
			double altitude = aVertex.getLocation().getAbsoluteLocation().getAltitude();
		
			AggregateLocation aggLoc = new AggregateLocation(new AbsoluteLocation(latitude, longitude, altitude));
			this.location = aggLoc;
			this.inEdges = aVertex.getInEdges();
			this.outEdges = aVertex.getOutEdges();
			this.id = aVertex.getId();
			this.fingerprints = aVertex.getFingerPrints();
			this.radiusVertices = aVertex.getRadiusVertices();
		}
예제 #2
0
        // Copy constructor
        public Vertex(Vertex aVertex)
        {
            double latitude  = aVertex.getLocation().getAbsoluteLocation().getLatitude();
            double longitude = aVertex.getLocation().getAbsoluteLocation().getLongitude();
            double altitude  = aVertex.getLocation().getAbsoluteLocation().getAltitude();

            AggregateLocation aggLoc = new AggregateLocation(new AbsoluteLocation(latitude, longitude, altitude));

            this.location       = aggLoc;
            this.inEdges        = aVertex.getInEdges();
            this.outEdges       = aVertex.getOutEdges();
            this.id             = aVertex.getId();
            this.fingerprints   = aVertex.getFingerPrints();
            this.radiusVertices = aVertex.getRadiusVertices();
        }