package it.polimi.processing.events;

import it.polimi.processing.collector.saver.data.CSV;
import it.polimi.processing.collector.saver.data.CollectableData;
import it.polimi.processing.collector.saver.data.TriG;
import it.polimi.processing.events.interfaces.EventResult;

import java.util.Set;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result implements EventResult {

	private Set<TripleContainer> statements;
	private long from, to;
	private long timestamp;
	private Boolean completeSMPL, soundSMPL, completeRHODF, soundRHODF;
	private boolean abox;

	@Override
	public CollectableData getTrig() {
		return new TriG("<http://example.org/" + from + "/" + to + ">", statements);
	}

	@Override
	public CollectableData getCSV() {
		String s = "<http://example.org/" + from + "/" + to + ">";
		return new CSV(s);
	}

	public Result(Set<TripleContainer> statements, long from, long to, long timestamp, boolean abox) {
		this.statements = statements;
		this.from = from;
		this.to = to;
		this.timestamp = timestamp;
		this.abox = abox;

	}
}

@@ -507,16 +507,40 @@
 estamp;%0A
+%09private double memory;%0A
 %09private
@@ -969,16 +969,31 @@
 mestamp,
+ double memory,
  boolean
@@ -1099,16 +1099,40 @@
 estamp;%0A
+%09%09this.memory = memory;%0A
 %09%09this.a

add memory