Package org.opentrafficsim.core.egtf
Class FilterDouble
- java.lang.Object
-
- org.opentrafficsim.core.egtf.FilterDouble
-
- All Implemented Interfaces:
Filter
public class FilterDouble extends java.lang.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 Summary
Constructors Modifier Constructor Description protectedFilterDouble(double[] location, double[] time, java.util.Map<Quantity<?,?>,double[][]> map)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K> Kget(Quantity<?,K> quantity)Returns the filtered data in output format.double[]getLocation()Returns the grid location.double[][]getSI(Quantity<?,?> quantity)Returns filtered data as SI values.double[]getTime()Returns the grid time.java.lang.StringtoString()
-
-
-
Constructor Detail
-
FilterDouble
protected FilterDouble(double[] location, double[] time, java.util.Map<Quantity<?,?>,double[][]> map)Constructor.- Parameters:
location- double[]; grid locations of output datatime- double[]; grid times of output datamap- Map<Quantity<?, ?>, double[][]>; filtered data
-
-
Method Detail
-
getLocation
public double[] getLocation()
Returns the grid location.- Specified by:
getLocationin interfaceFilter- Returns:
- double[]; grid location
-
getTime
public double[] getTime()
Returns the grid time.
-
getSI
public double[][] getSI(Quantity<?,?> quantity)
Returns filtered data as SI values.
-
get
public <K> K get(Quantity<?,K> quantity)
Returns the filtered data in output format.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-