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