package dk.aau.cs.qweb.airbase.provenance;

import java.time.LocalDate;

import dk.aau.cs.qweb.airbase.types.Quad;
import dk.aau.cs.qweb.airbase.types.Tuple;

public class ProvenanceSignature {

	private Quad quad;
	private String level;
	private String file;
	private LocalDate now;
	private Tuple tuple;

	public ProvenanceSignature(Quad quad, String level, String file, LocalDate now, Tuple tuple) {
		this.tuple = tuple;
		this.setQuad(quad);
		this.setLevel(level);
		this.setFile(file);
		this.setNow(now);
	}

	public Quad getQuad() {
		return quad;
	}

	public void setQuad(Quad quad) {
		this.quad = quad;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getFilePath() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public LocalDate getNow() {
		return now;
	}

	public void setNow(LocalDate now) {
		this.now = now;
	}
	
	public Tuple getTuple() {
		return tuple;
	}

}

@@ -988,10 +988,554 @@
 le;%0A%09%7D%0A%0A
+%09public String getRawDataFilePath() %7B%0A%09%09String%5B%5D split = file.split(%22/%22);%0A%09%09String path = %22%22;%0A%09%09for (int i = 0; i %3C split.length-1; i++) %7B%0A%09%09%09path += split%5Bi%5D+%22/%22; %0A%09%09%7D%0A%09%09path += getRawDataFileName();%0A%09%09return path;%0A%09%7D%0A%0A%09public String getRawDataFileName() %7B%0A%09%09String%5B%5D splitPath = file.split(%22/%22);%0A%09%09String%5B%5D splitName = splitPath%5BsplitPath.length-1%5D.split(%22_%22);%0A%09%09String name = %22AirBase_%22+splitName%5B1%5D+%22_v8Vrawdata.zip%22;%0A%09%09return name;%0A%09%7D%0A%0A%09public String getFileName() %7B%0A%09%09String%5B%5D split = file.split(%22/%22);%0A%09%09return split%5Bsplit.length-1%5D;%0A%09%7D%0A%0A
 %7D%0A

add more support methods