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

openllet.profiler.statistical.Release Maven / Gradle / Ivy

There is a newer version: 2.6.5
Show newest version
package openllet.profiler.statistical;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import openllet.core.utils.VersionInfo;

/**
 * Contains information about the performance of a certain release
 * 
 * @author Pedro Oliveira 
 */
public class Release
{

	private final String _version;
	private final Long _releaseDate;

	private final Map> _statistics = new LinkedHashMap<>();

	public Release(final String version, final Long releaseDate)
	{
		_version = version;
		_releaseDate = releaseDate;
	}

	public Release()
	{
		this(VersionInfo.getInstance().getVersionString(), System.currentTimeMillis());
	}

	public String getVersion()
	{
		return _version;
	}

	public Long getReleaseDate()
	{
		return _releaseDate;
	}

	public List getStatistics(final String ontology)
	{
		return _statistics.get(ontology);
	}

	public void addStatistics(final String ontology, final List statistics)
	{
		this._statistics.put(ontology, statistics);
	}

	public Map> getAllStatistics()
	{
		return _statistics;
	}

	@Override
	public String toString()
	{
		return _version;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy