Class FWSimQueueObjectMap
- All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, SequencedMap<String, Object>
One output line: the values by column name in column order (
LinkedHashMap), plus the simulation id and the
simulation date the line belongs to. Output lines are passed through the queue of the output adapters.- Author:
- Andreas Enders
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionFWSimQueueObjectMap(String aSimulationID, LocalDateTime aDate) Creates an empty line. -
Method Summary
Modifier and TypeMethodDescriptionfilterStatistics(Set<Integer> aStatisticColmnIndices) Creates a new line with only the columns at the given positions (e.g.Methods inherited from class LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, removeEldestEntry, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class AbstractMap
equals, hashCode, toStringMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
FWSimQueueObjectMap
Creates an empty line.- Parameters:
aSimulationID- id of the simulationaDate- simulation date of the line, may benull
-
-
Method Details
-
getSimulationID
- Returns:
- the id of the simulation the line belongs to
-
getCurrentDate
- Returns:
- the simulation date of the line
-
filterStatistics
Creates a new line with only the columns at the given positions (e.g. the columns needed for statistics).- Parameters:
aStatisticColmnIndices- positions of the columns to keep- Returns:
- the filtered line
-
put
-