public abstract class AbstactImageManager extends Object implements ImageManager
ImageManager interface which takes
care of systems or benchmarks which have the same URI.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstactImageManager.DateBasedImageMetaDataComparator |
| Modifier and Type | Field and Description |
|---|---|
protected Comparator<org.hobbit.core.data.ImageMetaData> |
comparator |
| Constructor and Description |
|---|
AbstactImageManager() |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends org.hobbit.core.data.ImageMetaData> |
addErrorToDuplicates(List<T> images)
Sets the
ImageMetaData.defError attribute of all meta data elements
that are identified as duplicates. |
protected static <T extends org.hobbit.core.data.ImageMetaData> |
createListPerUri(List<T> images)
Creates a stream of lists each containing all image meta data instances that
are sharing the same URI.
|
org.hobbit.core.data.BenchmarkMetaData |
getBenchmark(String benchmarkUri)
Retrieves the RDF model of the benchmark with the given URI.
|
List<org.hobbit.core.data.BenchmarkMetaData> |
getBenchmarks()
Retrieves a list of all known benchmarks
|
protected List<org.hobbit.core.data.SystemMetaData> |
getFilteredSystems(Predicate<? super org.hobbit.core.data.ImageMetaData> filter)
Returns a filtered list of systems based on the given filter.
|
org.hobbit.core.data.SystemMetaData |
getSystem(String systemUri)
Retrieves the RDF model of the system with the given URI.
|
List<org.hobbit.core.data.SystemMetaData> |
getSystems()
Retrieves a list of all known benchmarks
|
protected abstract List<org.hobbit.core.data.BenchmarkMetaData> |
getUncheckedBenchmarks()
A method that returns a list of unchecked benchmarks (they may have
overlapping URIs).
|
protected abstract List<org.hobbit.core.data.SystemMetaData> |
getUncheckedSystems()
A method that returns a list of unchecked systems (they may have overlapping
URIs).
|
protected <T extends org.hobbit.core.data.ImageMetaData> |
markDuplicates(List<T> images)
Identifies duplicates and marks them using the
addErrorToDuplicates(List) method. |
void |
setComparator(Comparator<org.hobbit.core.data.ImageMetaData> comparator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBenchmarkImageName, getBenchmarkModel, getSystemImageName, getSystemModel, getSystemsForBenchmark, getSystemsForBenchmark, getSystemsOfUserprotected Comparator<org.hobbit.core.data.ImageMetaData> comparator
public List<org.hobbit.core.data.BenchmarkMetaData> getBenchmarks()
ImageManagergetBenchmarks in interface ImageManagerprotected abstract List<org.hobbit.core.data.BenchmarkMetaData> getUncheckedBenchmarks()
public List<org.hobbit.core.data.SystemMetaData> getSystems()
ImageManagergetSystems in interface ImageManagerprotected abstract List<org.hobbit.core.data.SystemMetaData> getUncheckedSystems()
public org.hobbit.core.data.BenchmarkMetaData getBenchmark(String benchmarkUri)
getBenchmark in interface ImageManagerbenchmarkUri - the URI of the chosen benchmarkpublic org.hobbit.core.data.SystemMetaData getSystem(String systemUri)
getSystem in interface ImageManagersystemUri - the URI of the chosen systemprotected <T extends org.hobbit.core.data.ImageMetaData> List<T> markDuplicates(List<T> images)
addErrorToDuplicates(List) method.images - a list of images that may contain duplicatesprotected <T extends org.hobbit.core.data.ImageMetaData> void addErrorToDuplicates(List<T> images)
ImageMetaData.defError attribute of all meta data elements
that are identified as duplicates.images - the list of image meta data objects that have the same URIprotected static <T extends org.hobbit.core.data.ImageMetaData> Stream<List<T>> createListPerUri(List<T> images)
images - a list of image meta data instancesprotected List<org.hobbit.core.data.SystemMetaData> getFilteredSystems(Predicate<? super org.hobbit.core.data.ImageMetaData> filter)
getSystems() method is used (i.e., the
method that adds additional information to the systems which can not be added
later on, after the filtering).filter - the filter that is used. Should be thread safe.public void setComparator(Comparator<org.hobbit.core.data.ImageMetaData> comparator)
comparator - the comparator to setCopyright © 2017–2018. All rights reserved.