All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.cuni.mff.d3s.spl.data.Revision Maven / Gradle / Ivy

Go to download

Stochastice Performance Logic is a formalism for capturing performance assumptions. It is, for example, possible to capture assumption that newer version of a function bar is faster than the previous version or that library foobar is faster than library barfoo when rendering antialiased text. The purpose of this framework is to allow evaluation of SPL formulas inside Java applications.

There is a newer version: 1.0.4
Show newest version
package cz.cuni.mff.d3s.spl.data;

/**
 * One data revision.
 */
public class Revision {
	/**
	 * Name of the revision. Could be file name, version control
	 * system hash, etc.
	 */
	public String name;

	/**
	 * Unix timestamp of the revision or 0 if the timestamp is unknown.
	 */
	public long timestamp;

	/**
	 * Data for given revision.
	 */
	public DataSource data;

	/**
	 * Constructor.
	 *
	 * @param n Name of the revision.
	 * @param t Unix timestamp of the revision.
	 * @param d Revision data.
	 */
	public Revision(String n, long t, DataSource d) {
		name = n;
		timestamp = t;
		data = d;
	}

	/**
	 * Constructor with unknown timestamp.
	 *
	 * @param n Name of the revision.
	 * @param d Revision data.
	 */
	public Revision(String n, DataSource d) {
		this(n, 0, d);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy