Package org.opentrafficsim.kpi.sampling
Enum SamplerData.CompressionMethod
- java.lang.Object
-
- java.lang.Enum<SamplerData.CompressionMethod>
-
- org.opentrafficsim.kpi.sampling.SamplerData.CompressionMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<SamplerData.CompressionMethod>
- Enclosing class:
- SamplerData<G extends GtuDataInterface>
public static enum SamplerData.CompressionMethod extends Enum<SamplerData.CompressionMethod>
Defines the compression method for stored 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 3 mei 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
No compression.OMIT_DUPLICATE_INFO
Duplicate info per trajectory is only stored at the first sample, and empty for other samples.ZIP
Zip compression.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SamplerData.CompressionMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static SamplerData.CompressionMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SamplerData.CompressionMethod NONE
No compression.
-
OMIT_DUPLICATE_INFO
public static final SamplerData.CompressionMethod OMIT_DUPLICATE_INFO
Duplicate info per trajectory is only stored at the first sample, and empty for other samples.
-
ZIP
public static final SamplerData.CompressionMethod ZIP
Zip compression.
-
-
Method Detail
-
values
public static SamplerData.CompressionMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SamplerData.CompressionMethod c : SamplerData.CompressionMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SamplerData.CompressionMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-