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