package cz.muni.fi.lasaris.sbms.data.entities;

import java.time.Duration;
import java.time.ZonedDateTime;

public class SeriesSpecs {
	private ZonedDateTime start;
	private ZonedDateTime end;
	private Sampling sampling;
	private Interpolation interpolation;
	private Duration samplingDuration;
	private String samplingCron;
	
	public ZonedDateTime getStart() {
		return start;
	}

	public ZonedDateTime getEnd() {
		return end;
	}

	public Sampling getSampling() {
		return sampling;
	}

	public Interpolation getInterpolation() {
		return interpolation;
	}

	public Duration getSamplingDuration() {
		return samplingDuration;
	}

	public String getSamplingCron() {
		return samplingCron;
	}

	public SeriesSpecs(ZonedDateTime start, ZonedDateTime end) {
		this.start = start;
		this.end = end;
		this.sampling = Sampling.NONE;
	}

	public SeriesSpecs(ZonedDateTime start, ZonedDateTime end, Duration samplingDuration, Interpolation interpolation) {
		this.start = start;
		this.end = end;
		this.samplingDuration = samplingDuration;
		this.sampling = Sampling.DURATION;
		this.interpolation = interpolation;
	}

	public SeriesSpecs(ZonedDateTime start, ZonedDateTime end, String samplingCron, Interpolation interpolation) {
		this.start = start;
		this.end = end;
		this.samplingCron = samplingCron;
		this.sampling = Sampling.CRON;
		this.interpolation = interpolation;
	}
	
	
	
	
	
	
	
}
