public class DistanceUnit extends Unit
Copyright (c) 2014 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved.
See for project information www.opentrafficsim.org.
The OpenTrafficSim project is distributed under the following BSD-style license:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
| Modifier and Type | Field and Description |
|---|---|
static DistanceUnit |
KILOMETER |
static DistanceUnit |
METER |
static DistanceUnit |
MILE |
| Constructor and Description |
|---|
DistanceUnit(String ID,
double conversionFactorToMeter) |
| Modifier and Type | Method and Description |
|---|---|
double |
getConversionFactorToMeter() |
public static DistanceUnit METER
public static DistanceUnit KILOMETER
public static DistanceUnit MILE
public DistanceUnit(String ID, double conversionFactorToMeter)
ID - conversionFactorToMeter - Copyright © 2002–2014 Delft University of Technology. All rights reserved.