+ public Config<Transformation> getTransformationConfig() {
+ return new Config<Transformation>() {
+ @Override
+ public Id<Transformation> add(Transformation aT) {
+ return addTransformation(aT);
+ }
+
+ @Override
+ public Transformation get(Id<Transformation> aId) {
+ return transformations.get(aId);
+ }
+
+ @Override
+ public Collection<Id<Transformation>> ids() {
+ return transformations.ids();
+ }
+
+ @Override
+ public boolean remove(Id<Transformation> aId) {
+ return transformations.remove(aId);
+ }
+ };
+ }
+
+ /**
+ * Adds a transformation. Leads to recomputation of shortest paths.
+ *
+ * @param aTransformation
+ * Transformation to add.
+ * @return Id of the transformation.
+ */