Package org.openstreetmap.josm.data
Class APIDataSet.RelationUploadDependencyGraph
java.lang.Object
org.openstreetmap.josm.data.APIDataSet.RelationUploadDependencyGraph
- Enclosing class:
- APIDataSet
Utility class to sort a collection of new relations with their dependencies
topologically.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRelationUploadDependencyGraph(Collection<Relation> relations, boolean newOrUndeleted) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependency(Relation relation, Relation child) final voidbuild(Collection<Relation> relations) computeUploadOrder(boolean reverse) getChildren(Relation relation) protected void
-
Field Details
-
children
-
relations
-
visited
-
uploadOrder
-
newOrUndeleted
-
-
Constructor Details
-
RelationUploadDependencyGraph
RelationUploadDependencyGraph(Collection<Relation> relations, boolean newOrUndeleted)
-
-
Method Details
-
build
-
getChildren
-
addDependency
-
visit
- Throws:
CyclicUploadDependencyException
-
computeUploadOrder
- Throws:
CyclicUploadDependencyException
-