Class FWSimQueueObjectMap

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, SequencedMap<String,Object>

public class FWSimQueueObjectMap extends LinkedHashMap<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:
  • Constructor Details

    • FWSimQueueObjectMap

      public FWSimQueueObjectMap(String aSimulationID, LocalDateTime aDate)
      Creates an empty line.
      Parameters:
      aSimulationID - id of the simulation
      aDate - simulation date of the line, may be null
  • Method Details

    • getSimulationID

      public String getSimulationID()
      Returns:
      the id of the simulation the line belongs to
    • getCurrentDate

      public LocalDateTime getCurrentDate()
      Returns:
      the simulation date of the line
    • filterStatistics

      public FWSimQueueObjectMap filterStatistics(Set<Integer> aStatisticColmnIndices)
      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

      public Object put(String aKey, Object aValue)
      Specified by:
      put in interface Map<String,Object>
      Overrides:
      put in class HashMap<String,Object>