cz.cuni.mff.d3s.spl.data.Revision Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spl-evaluation-java Show documentation
Show all versions of spl-evaluation-java Show documentation
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.
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);
}
}