Changeset 5909 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
- Timestamp:
- 2013-04-29T00:09:53+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
r5359 r5909 137 137 * Determines if the specified way denotes a power line. 138 138 * @param w The way to be tested 139 * @return Trueif power key is set and equal to line/minor_line139 * @return {@code true} if power key is set and equal to line/minor_line 140 140 */ 141 141 protected static final boolean isPowerLine(Way w) { … … 145 145 /** 146 146 * Determines if the specified primitive denotes a power station. 147 * @param w The wayto be tested148 * @return Trueif power key is set and equal to station/sub_station/plant147 * @param p The primitive to be tested 148 * @return {@code true} if power key is set and equal to station/sub_station/plant 149 149 */ 150 150 protected static final boolean isPowerStation(OsmPrimitive p) { … … 154 154 /** 155 155 * Determines if the specified node denotes a power tower/pole. 156 * @param wThe node to be tested157 * @return Trueif power key is set and equal to tower/pole156 * @param n The node to be tested 157 * @return {@code true} if power key is set and equal to tower/pole 158 158 */ 159 159 protected static final boolean isPowerTower(Node n) { … … 163 163 /** 164 164 * Determines if the specified node denotes a power infrastructure allowed on a power line. 165 * @param wThe node to be tested165 * @param n The node to be tested 166 166 * @return True if power key is set and equal to switch/tranformer/busbar/generator 167 167 */ … … 170 170 } 171 171 172 /** 173 * Helper function to check if power tags is a certain value. 174 * @param p The primitive to be tested 175 * @param values List of possible values 176 * @return {@code true} if power key is set and equal to possible values 177 */ 172 178 private static final boolean isPowerIn(OsmPrimitive p, Collection<String> values) { 173 179 String v = p.get("power");
Note:
See TracChangeset
for help on using the changeset viewer.