Class TypedFilter

  • All Implemented Interfaces:
    Filter

    public class TypedFilter
    extends java.lang.Object
    implements Filter
    Typed version of a kernel.

    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 27 okt. 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • getLocation

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

        public LengthVector getLocationVector()
        Returns the grid location.
        Returns:
        LengthVector; grid location
      • getTime

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

        public DurationVector getTimeVector()
        Returns the grid time.
        Returns:
        DurationVector; 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object