Enum DirectionalLine.Side
- java.lang.Object
-
- java.lang.Enum<DirectionalLine.Side>
-
- nl.tudelft.simulation.language.d2.DirectionalLine.Side
-
- All Implemented Interfaces:
Serializable,Comparable<DirectionalLine.Side>
- Enclosing class:
- DirectionalLine
public static enum DirectionalLine.Side extends Enum<DirectionalLine.Side>
different values for the side a point can be at w.r.t. the line.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the value from DSOL-1 before enum was introduced.static DirectionalLine.SidevalueOf(String name)Returns the enum constant of this type with the specified name.static DirectionalLine.Side[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BACKSIDE
public static final DirectionalLine.Side BACKSIDE
point at the back of the line.
-
COLLINEAR
public static final DirectionalLine.Side COLLINEAR
point collinear with the line.
-
FRONTSIDE
public static final DirectionalLine.Side FRONTSIDE
point in front of the line.
-
SPANNING
public static final DirectionalLine.Side SPANNING
other line is spanning this line.
-
-
Method Detail
-
values
public static DirectionalLine.Side[] 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 (DirectionalLine.Side c : DirectionalLine.Side.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DirectionalLine.Side 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
-
getValue
public int getValue()
Returns the value from DSOL-1 before enum was introduced.- Returns:
- int; the value from DSOL-1 before enum was introduced
-
-