Class LengthBeginEnd
java.lang.Object
org.opentrafficsim.xml.bindings.types.LengthBeginEnd
public class LengthBeginEnd extends Object
LengthBeginEnd contains the information from the LengthBeginEndType. Examples of type instances are
- BEGIN
- END
- END - 10m
- 25 ft
- 0.8
- 80%
Copyright (c) 2003-2018 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
- BEGIN
- END
- END - 10m
- 25 ft
- 0.8
- 80%
Copyright (c) 2003-2018 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
- Author:
- Alexander Verbraeck
-
Constructor Summary
Constructors Constructor Description LengthBeginEnd(boolean begin, Length offset)LengthBeginEnd(double fraction) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)doublegetFraction()LengthgetOffset()inthashCode()booleanisAbsolute()booleanisBegin()StringtoString()
-
Constructor Details
-
LengthBeginEnd
- Parameters:
begin- boolean; begin or end?offset- the offset; absolute = true
-
LengthBeginEnd
public LengthBeginEnd(double fraction)- Parameters:
fraction- the fraction; absolute = false
-
-
Method Details
-
isBegin
public final boolean isBegin()- Returns:
- begin
-
isAbsolute
public final boolean isAbsolute()- Returns:
- absolute
-
getOffset
- Returns:
- offset
-
getFraction
public final double getFraction()- Returns:
- fraction
-
hashCode
public int hashCode() -
equals
-
toString
-