public Path(Visit v) { this.user_id = v.getUser_id(); this.path = v.getPoiid(); this.postPath = v.getPost_id(); this.doy_oy = v.getDay_oy(); init(); }
public Path(Visit v, Path p) { this.user_id = p.getUser_id(); this.path = v.getPoiid() + "," + p.getPath(); this.postPath = v.getPost_id() + "," + p.getPostPath(); this.path_length = p.getPath_length() + 1; this.doy_oy = p.getDoy_oy(); init(); }