Changeset 29854 in osm for applications/editors/josm/plugins/junctionchecking
- Timestamp:
- 2013-08-21T03:47:16+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/junctionchecking
- Files:
-
- 1 added
- 8 edited
-
.settings/org.eclipse.core.resources.prefs (added)
-
.settings/org.eclipse.jdt.core.prefs (modified) (2 diffs)
-
build.xml (modified) (1 diff)
-
src/org/openstreetmap/josm/plugins/JunctionChecker/connectedness/DiGraphSealer.java (modified) (6 diffs)
-
src/org/openstreetmap/josm/plugins/JunctionChecker/converting/PseudoChannelRemover.java (modified) (3 diffs)
-
src/org/openstreetmap/josm/plugins/JunctionChecker/converting/TurnRestrictionChecker.java (modified) (2 diffs)
-
src/org/openstreetmap/josm/plugins/JunctionChecker/datastructure/OSMRelation.java (modified) (1 diff)
-
src/org/openstreetmap/josm/plugins/JunctionChecker/junctionchecking/BackPropagation.java (modified) (2 diffs)
-
src/org/openstreetmap/josm/plugins/JunctionChecker/junctionchecking/JMinimality.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/junctionchecking/.settings/org.eclipse.jdt.core.prefs
r29853 r29854 1 1 eclipse.preferences.version=1 2 org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled 3 org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore 4 org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull 5 org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault 6 org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable 7 org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled 2 8 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 9 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 … … 7 13 org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 14 org.eclipse.jdt.core.compiler.debug.sourceFile=generate 15 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 9 16 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 17 org.eclipse.jdt.core.compiler.problem.autoboxing=ignore 18 org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning 19 org.eclipse.jdt.core.compiler.problem.deadCode=warning 20 org.eclipse.jdt.core.compiler.problem.deprecation=warning 21 org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled 22 org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled 23 org.eclipse.jdt.core.compiler.problem.discouragedReference=warning 24 org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore 10 25 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 26 org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore 27 org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore 28 org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled 29 org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore 30 org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning 31 org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning 32 org.eclipse.jdt.core.compiler.problem.forbiddenReference=error 33 org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning 34 org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled 35 org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning 36 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning 37 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 38 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore 39 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning 40 org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore 41 org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore 42 org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled 43 org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore 44 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore 45 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled 46 org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore 47 org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore 48 org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning 49 org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning 50 org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore 51 org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning 52 org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error 53 org.eclipse.jdt.core.compiler.problem.nullReference=warning 54 org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error 55 org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning 56 org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning 57 org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore 58 org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore 59 org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore 60 org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore 61 org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning 62 org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning 63 org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore 64 org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore 65 org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore 66 org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore 67 org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore 68 org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled 69 org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning 70 org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled 71 org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled 72 org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled 73 org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore 74 org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning 75 org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled 76 org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning 77 org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning 78 org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore 79 org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning 80 org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore 81 org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore 82 org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore 83 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore 84 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled 85 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled 86 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled 87 org.eclipse.jdt.core.compiler.problem.unusedImport=warning 88 org.eclipse.jdt.core.compiler.problem.unusedLabel=warning 89 org.eclipse.jdt.core.compiler.problem.unusedLocal=warning 90 org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore 91 org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore 92 org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled 93 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled 94 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled 95 org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning 96 org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore 97 org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning 98 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning 11 99 org.eclipse.jdt.core.compiler.source=1.6 -
applications/editors/josm/plugins/junctionchecking/build.xml
r29596 r29854 3 3 <property name="commit.message" value="Changed the constructor signature of the plugin main class"/> 4 4 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 5 <property name="plugin.main.version" value=" 5960"/>5 <property name="plugin.main.version" value="6162"/> 6 6 7 7 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/connectedness/DiGraphSealer.java
r25501 r29854 1 1 package org.openstreetmap.josm.plugins.JunctionChecker.connectedness; 2 2 3 import java.util.ArrayList;4 3 import java.util.Vector; 4 5 5 import org.openstreetmap.josm.plugins.JunctionChecker.datastructure.Channel; 6 6 import org.openstreetmap.josm.plugins.JunctionChecker.datastructure.ChannelDiGraph; … … 45 45 } 46 46 } 47 int counter = 0;48 47 Channel tempChannel; 49 48 LeadsTo tempLeadsTo; … … 73 72 newID++; 74 73 digraph.addChannel(tempChannel); 75 counter++;76 74 } 77 75 } … … 103 101 newID++; 104 102 digraph.addChannel(tempChannel); 105 counter++;106 103 } 107 104 } … … 125 122 */ 126 123 private void deleteDuplicateChannels() { 127 ArrayList<Integer> pointer = new ArrayList<Integer>();128 124 129 125 for (int i = 0; i < digraph.getChannels().size(); i++) { … … 136 132 } 137 133 } 138 139 134 } 140 135 } -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/converting/PseudoChannelRemover.java
r25501 r29854 13 13 14 14 private final ChannelDiGraph digraph; 15 private final ArrayList<Channel> pseudochannels = new ArrayList<Channel>(); 16 private int c = 0; 15 //private final ArrayList<Channel> pseudochannels = new ArrayList<Channel>(); 17 16 private Channel succChannel; 18 private String s;19 17 private Channel tempToChannel; 20 18 private LeadsTo tempLeadsTo; … … 27 25 succChannel = tempchannel.getLeadsTo().get(0).getToChannel(); 28 26 tempchannel.setToNode(succChannel.getToNode()); 29 s = "";30 27 //log.trace("---Folgender Channel ist überflüssig: " + succChannel.getNewid() + "---"); 31 28 //log.trace("... und wird durch diesen ersetzt: " + tempchannel.getNewid()); … … 57 54 digraph.removeChannel(succChannel); 58 55 //pseudochannels.add(tempchannel.getSuccChannels().get(0)); 59 c++;60 56 } 61 57 -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/converting/TurnRestrictionChecker.java
r25501 r29854 20 20 private final ArrayList<OSMRelation> turnrestrictionsrelations = new ArrayList<OSMRelation>(); 21 21 private final ChannelDiGraph channelDigraph; 22 private final boolean isInturnrestriction;23 22 private int relationpointer; 24 23 private LeadsTo tempLeadsTo; … … 35 34 } 36 35 this.channelDigraph = channelDigraph; 37 this.isInturnrestriction = false;38 36 } 39 37 -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/datastructure/OSMRelation.java
r25501 r29854 64 64 } 65 65 66 public Class getType() { 66 public Class<? extends OSMEntity> getType() { 67 67 return member.getClass(); 68 68 } -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/junctionchecking/BackPropagation.java
r25501 r29854 11 11 public class BackPropagation { 12 12 13 private Channel y;14 private Channel z;15 13 private final ChannelDiGraph digraph; 16 14 … … 25 23 */ 26 24 public void backPropagation(Channel y, Channel z, Channel zstrich) { 27 this.y = y;28 this.z = z;29 25 for (int i = 0; i < z.getReachableNodes().size(); i++) { 30 26 y.addReachableNode(z.getReachableNodeAt(i)); -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/junctionchecking/JMinimality.java
r25501 r29854 30 30 private long EEovern = 0; 31 31 private final HashSet<Channel> subgraph = new HashSet<Channel>();//The candidate subgraph to be tested 32 private double durchlauf = 1;33 32 private ProgressMonitor pm; 34 33 private final boolean pmenabled; 35 private final ArrayList<Integer> anzahlchannels = new ArrayList<Integer>();36 34 private final ArrayList<HashSet<Channel>> junctions = new ArrayList<HashSet<Channel>>(); 37 35 private final boolean searchFirstJunction; … … 85 83 86 84 Combination c = new Combination(Grid.length, n); 87 EEovern = (int) c.Choose(Grid.length*Grid.length, n*n);85 EEovern = (int) Combination.Choose(Grid.length*Grid.length, n*n); 88 86 long ans = c.Choose(); //This is the number of subcolumns to be generated 89 87 int[][] v; // this is a column variable containing n y-index entries plus true false values (0/1) … … 135 133 ArrayList<int[]> CandidateK = new ArrayList<int[]>(n*n); //saves the candidate K_{n-1} in entry-exit pairs 136 134 long lindex= 0; 137 int countk = 0;138 135 int h = 0; 139 136 int m = 0; … … 188 185 } 189 186 if (missing <=1 && smallerjunction == true){//The k-subgrid is a different junction candidate satisfying total reachability 190 countk++;191 187 CheckMinimal = CheckSmallJunction(CandidateK)==false;// If the candidate is a smaller junction, then minimality is false 192 durchlauf++;193 188 //log.info("durchlauf: " + durchlauf + " Wert von CheckMinimal: " + CheckMinimal); 194 189 if (!CheckMinimal) {
Note:
See TracChangeset
for help on using the changeset viewer.
