Package ca.spatial.tracks.builder
Class AttributeResolver
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<AttributeKey,AttributeDef>
This class contains a Map of attribute defintions stored by
AttributeKey
.
The key to
the map has been transformed so that it has the feature and managed
tags replaced.
This resolver is specific to a unique block and state and cannot be reused outside of the context that it was created in.
This class will defer resolving attribute curves until they are requested. Once they have been resolved they will be cached.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
Method Summary
Modifier and TypeMethodDescriptiongetCurve(AttributeKey key, HashMap<String,AttributeDef> attributeRefs, CurveMatchCache curveRefs, Track track, String ftag, String mtag)
Get a curve.Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Method Details
-
getCurve
public Curve getCurve(AttributeKey key, HashMap<String,AttributeDef> attributeRefs, CurveMatchCache curveRefs, Track track, String ftag, String mtag)Get a curve. First look in the cache, and then recreate from the original attribute definition and cache the result.
-