Class FilterDouble

java.lang.Object
org.opentrafficsim.core.egtf.FilterDouble
All Implemented Interfaces:
Filter

public class FilterDouble
extends Object
implements Filter
Class containing processed output data.

Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Version:
$Revision$, $LastChangedDate$, by $Author$, initial version 24 okt. 2018
Author:
Wouter Schakel
  • Constructor Details

    • FilterDouble

      protected FilterDouble​(double[] location, double[] time, Map<Quantity<?,​?>,​double[][]> map)
      Constructor.
      Parameters:
      location - double[]; grid locations of output data
      time - double[]; grid times of output data
      map - Map<Quantity<?, ?>, double[][]>; filtered data
  • Method Details

    • getLocation

      public double[] getLocation()
      Returns the grid location.
      Specified by:
      getLocation in interface Filter
      Returns:
      double[]; grid location
    • getTime

      public double[] getTime()
      Returns the grid time.
      Specified by:
      getTime in interface Filter
      Returns:
      double[]; grid time
    • getSI

      public double[][] getSI​(Quantity<?,​?> quantity)
      Returns filtered data as SI values.
      Specified by:
      getSI in interface Filter
      Parameters:
      quantity - Quantity<?, ?>; quantity
      Returns:
      double[][]; filtered data as SI values
    • get

      public <K> K get​(Quantity<?,​K> quantity)
      Returns the filtered data in output format.
      Specified by:
      get in interface Filter
      Type Parameters:
      K - output format.
      Parameters:
      quantity - Quantity<?, K>; quantity.
      Returns:
      K; filtered data in output format
    • toString

      public String toString()
      Overrides:
      toString in class Object