Esempio n. 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();
		}
Esempio n. 2
0
		public Vertex(int id, AggregateLocation aggregateLocation)
		{
			this.id = id;
			this.location = aggregateLocation;
		}
Esempio n. 3
0
		public Vertex(int id, AbsoluteLocation absoluteLocation)
		{
			this.id = id;
			this.location = new AggregateLocation(absoluteLocation);
		}