Changeset 209 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/data
- Timestamp:
- 09/28/11 03:03:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/data/GlobalDataContainer.java
r191 r209 8 8 import java.util.HashMap; 9 9 import java.util.LinkedList; 10 import java.util.List;11 10 import java.util.Map; 12 11 import java.util.Map.Entry; 13 12 13 import de.ugoe.cs.eventbench.SequenceInstanceOf; 14 14 import de.ugoe.cs.eventbench.models.IStochasticProcess; 15 15 … … 188 188 Collection<String> allSequencesNames = new LinkedList<String>(); 189 189 for (Entry<String, Object> entry : dataObjects.entrySet()) { 190 if (entry.getValue() instanceof Collection<?>) { 191 Object listObj = ((Collection<?>) entry.getValue()).iterator() 192 .next(); 193 if (listObj instanceof List<?>) { 194 if (((List<?>) listObj).iterator().next() instanceof Event<?>) { 195 allSequencesNames.add(entry.getKey()); 196 } 197 } 190 if( SequenceInstanceOf.isCollectionOfSequences(entry.getValue())) { 191 allSequencesNames.add(entry.getKey()); 198 192 } 199 193 }
Note: See TracChangeset
for help on using the changeset viewer.