Changeset 35312 in osm for applications/editors/josm/plugins/indoorhelper/src/model
- Timestamp:
- 2020-01-28T22:27:30+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/indoorhelper/src/model
- Files:
-
- 4 edited
-
IndoorHelperModel.java (modified) (2 diffs)
-
IndoorLevel.java (modified) (1 diff)
-
PresetCounter.java (modified) (4 diffs)
-
TagCatalog.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/model/IndoorHelperModel.java
r35228 r35312 1 /* 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 1 // License: GPL. For details, see LICENSE file. 20 2 package model; 21 3 … … 206 188 newMember = new RelationMember(role == null ? "" : role, osm); 207 189 relation.addMember(newMember); 208 } ;190 } 209 191 210 192 //Check if dataset is not empty or if {@link innerRelation} has no value -
applications/editors/josm/plugins/indoorhelper/src/model/IndoorLevel.java
r35240 r35312 1 /* 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 * Copyright (C) 2016 Erik Gruschka 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 1 // License: GPL. For details, see LICENSE file. 19 2 package model; 20 3 -
applications/editors/josm/plugins/indoorhelper/src/model/PresetCounter.java
r34179 r35312 1 /* 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 1 // License: GPL. For details, see LICENSE file. 20 2 package model; 21 3 … … 36 18 37 19 private List<IndoorObject> rankingList; 38 private List<ObjectCounter> counterList; 20 private final List<ObjectCounter> counterList = new ArrayList<>(); 39 21 40 22 /** … … 43 25 44 26 public PresetCounter() { 45 this.init();46 }47 48 private void init() {49 counterList = new ArrayList<>();50 51 27 counterList.add(new ObjectCounter(IndoorObject.CONCRETE_WALL, 0)); 52 28 counterList.add(new ObjectCounter(IndoorObject.DOOR_PRIVATE, 0)); … … 138 114 } 139 115 } 140 141 142 116 } -
applications/editors/josm/plugins/indoorhelper/src/model/TagCatalog.java
r35076 r35312 1 /* 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 1 // License: GPL. For details, see LICENSE file. 20 2 package model; 21 3 … … 100 82 return tagList; 101 83 } 102 103 84 } 104 85 … … 110 91 */ 111 92 public enum IndoorObject { 112 CONCRETE_WALL, GLASS_WALL, ROOM, TOILET_MALE, TOILET_FEMALE, ELEVATOR, DOOR_PRIVATE, DOOR_PUBLIC, ENTRANCE,113 ENTRANCE_EXIT_ONLY, ACCESS_PRIVATE, ACCESS_PUBLIC, STEPS, CORRIDOR, BENCH, AREA, NONE;93 CONCRETE_WALL, GLASS_WALL, ROOM, TOILET_MALE, TOILET_FEMALE, ELEVATOR, DOOR_PRIVATE, DOOR_PUBLIC, ENTRANCE, 94 ENTRANCE_EXIT_ONLY, ACCESS_PRIVATE, ACCESS_PUBLIC, STEPS, CORRIDOR, BENCH, AREA, NONE; 114 95 } 115 96 }
Note:
See TracChangeset
for help on using the changeset viewer.
