public abstract class AAtomicAllenAlgebraMapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AAtomicAllenAlgebraMapper()
Constructor of AtomicAllenAlgebraMapper class.
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getBeginProperty(String expression)
Extract first property (beginDate) from metric expression.
|
abstract TreeMap<String,Set<String>> |
getConcurrentEvents(ACache source,
ACache target,
String expression)
Returns the set of concurrent target events for each source instance.
|
protected static String |
getEndProperty(String expression)
Extract second property (endDate) from metric expression.
|
abstract String |
getName()
Returns the name of the atomic Allen's temporal mapper.
|
abstract TreeMap<String,Set<String>> |
getPredecessorEvents(ACache source,
ACache target,
String expression)
Returns the set of predecessor target events for each source instance.
|
protected static TreeMap<String,Set<String>> |
mapConcurrent(TreeMap<Long,Set<String>> sources,
TreeMap<Long,Set<String>> targets)
Maps each source event to its set of concurrent target events.
|
protected static TreeMap<String,Set<String>> |
mapPredecessor(TreeMap<Long,Set<String>> sources,
TreeMap<Long,Set<String>> targets)
Maps each source event to its set of predecessor target events.
|
protected static TreeMap<Long,Set<String>> |
orderByBeginDate(ACache cache,
String expression,
String kbType)
Orders a cache of instances based on their begin date property.
|
protected static TreeMap<Long,Set<String>> |
orderByEndDate(ACache cache,
String expression,
String kbType)
Orders a cache of instances based on their end date property.
|
public AAtomicAllenAlgebraMapper()
protected static String getBeginProperty(String expression)
expression, - The metric expressionprotected static String getEndProperty(String expression) throws IllegalArgumentException
expression, - The metric expressionIllegalArgumentException - if endDate property is not declaredprotected static TreeMap<Long,Set<String>> orderByBeginDate(ACache cache, String expression, String kbType)
cache, - The cache of instancesexpression, - The metric expressionkbType, - source or targetprotected static TreeMap<Long,Set<String>> orderByEndDate(ACache cache, String expression, String kbType)
kbType - TODOcache, - The cache of instancesexpression, - The metric expressionkbType, - source or targetprotected static TreeMap<String,Set<String>> mapConcurrent(TreeMap<Long,Set<String>> sources, TreeMap<Long,Set<String>> targets)
sources, - The set of source instances ordered by begin/end datetargets, - The set of target instances ordered by begin/end dateprotected static TreeMap<String,Set<String>> mapPredecessor(TreeMap<Long,Set<String>> sources, TreeMap<Long,Set<String>> targets)
sources, - The set of source instances ordered by begin/end datetargets, - The set of target instances ordered by begin/end datepublic abstract TreeMap<String,Set<String>> getConcurrentEvents(ACache source, ACache target, String expression)
source, - The source cachetarget, - The target cacheexpression, - The metric expressionpublic abstract TreeMap<String,Set<String>> getPredecessorEvents(ACache source, ACache target, String expression)
source, - The source cachetarget, - The target cacheexpression, - The metric expressionpublic abstract String getName()
Copyright © 2018. All rights reserved.