Changeset 666 for trunk/quest-ui-core/src/main/java
- Timestamp:
- 08/28/12 13:46:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/GlobalDataContainer.java
r658 r666 7 7 import java.util.Collection; 8 8 import java.util.HashMap; 9 import java.util.LinkedList;10 9 import java.util.Map; 11 import java.util.Map.Entry;12 13 import de.ugoe.cs.quest.SequenceInstanceOf;14 import de.ugoe.cs.quest.eventcore.guimodel.GUIModel;15 import de.ugoe.cs.quest.usageprofiles.IStochasticProcess;16 10 17 11 /** … … 181 175 /** 182 176 * <p> 183 * Returns all keys of collections of sequences contained in the storage.184 * </p>185 *186 * @return keys of all collections of sequences contained in the storage187 */188 public Collection<String> getAllSequencesNames() {189 Collection<String> allSequencesNames = new LinkedList<String>();190 for (Entry<String, Object> entry : dataObjects.entrySet()) {191 if( SequenceInstanceOf.isCollectionOfSequences(entry.getValue())) {192 allSequencesNames.add(entry.getKey());193 }194 }195 return allSequencesNames;196 }197 198 /**199 * <p>200 * Returns the keys of all {@link IStochasticProcess}s contained in the201 * storage.202 * </p>203 *204 * @return keys of all {@link IStochasticProcess}s contained in the storage205 */206 public Collection<String> getAllModelNames() {207 Collection<String> modelNames = new LinkedList<String>();208 for (Entry<String, Object> entry : dataObjects.entrySet()) {209 if (entry.getValue() instanceof IStochasticProcess) {210 modelNames.add(entry.getKey());211 }212 }213 return modelNames;214 }215 216 /**217 * <p>218 * Returns the keys of all {@link GUIModel}s contained in the storage.219 * </p>220 *221 * @return keys of all {@link GUIModel}s contained in the storage222 */223 public Collection<String> getAllGUIModelNames() {224 Collection<String> modelNames = new LinkedList<String>();225 for(Entry<String, Object> entry : dataObjects.entrySet()) {226 if( entry.getValue() instanceof GUIModel ) {227 modelNames.add(entry.getKey());228 }229 }230 return modelNames;231 }232 233 /**234 * <p>235 177 * Returns the keys of all objects contained in the storage. 236 178 * </p>
Note: See TracChangeset
for help on using the changeset viewer.