Enum SumoVersion
- java.lang.Object
-
- java.lang.Enum<SumoVersion>
-
- org.eclipse.mosaic.fed.sumo.bridge.SumoVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<SumoVersion>
public enum SumoVersion extends Enum<SumoVersion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HIGHEST
the highest version supported by this client.LOWEST
the lowest version supported by this client.SUMO_1_0_x
SUMO_1_1_x
SUMO_1_10_x
SUMO_1_11_x
SUMO_1_12_x
SUMO_1_13_x
SUMO_1_14_x
SUMO_1_15_x
SUMO_1_16_x
SUMO_1_17_x
SUMO_1_18_x
SUMO_1_19_x
SUMO_1_2_x
SUMO_1_20_x
SUMO_1_3_x
SUMO_1_4_x
SUMO_1_5_x
SUMO_1_6_x
SUMO_1_7_x
SUMO_1_8_x
SUMO_1_9_x
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getApiVersion()
String
getSumoVersion()
static SumoVersion
getSumoVersion(String sumoVersion)
TraciVersion
getTraciVersion()
boolean
isGreaterOrEqualThan(SumoVersion other)
static SumoVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static SumoVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final SumoVersion UNKNOWN
-
SUMO_1_0_x
public static final SumoVersion SUMO_1_0_x
-
SUMO_1_1_x
public static final SumoVersion SUMO_1_1_x
-
SUMO_1_2_x
public static final SumoVersion SUMO_1_2_x
-
SUMO_1_3_x
public static final SumoVersion SUMO_1_3_x
-
SUMO_1_4_x
public static final SumoVersion SUMO_1_4_x
-
SUMO_1_5_x
public static final SumoVersion SUMO_1_5_x
-
SUMO_1_6_x
public static final SumoVersion SUMO_1_6_x
-
SUMO_1_7_x
public static final SumoVersion SUMO_1_7_x
-
SUMO_1_8_x
public static final SumoVersion SUMO_1_8_x
-
SUMO_1_9_x
public static final SumoVersion SUMO_1_9_x
-
SUMO_1_10_x
public static final SumoVersion SUMO_1_10_x
-
SUMO_1_11_x
public static final SumoVersion SUMO_1_11_x
-
SUMO_1_12_x
public static final SumoVersion SUMO_1_12_x
-
SUMO_1_13_x
public static final SumoVersion SUMO_1_13_x
-
SUMO_1_14_x
public static final SumoVersion SUMO_1_14_x
-
SUMO_1_15_x
public static final SumoVersion SUMO_1_15_x
-
SUMO_1_16_x
public static final SumoVersion SUMO_1_16_x
-
SUMO_1_17_x
public static final SumoVersion SUMO_1_17_x
-
SUMO_1_18_x
public static final SumoVersion SUMO_1_18_x
-
SUMO_1_19_x
public static final SumoVersion SUMO_1_19_x
-
SUMO_1_20_x
public static final SumoVersion SUMO_1_20_x
-
LOWEST
public static final SumoVersion LOWEST
the lowest version supported by this client.
-
HIGHEST
public static final SumoVersion HIGHEST
the highest version supported by this client.
-
-
Method Detail
-
values
public static SumoVersion[] 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 (SumoVersion c : SumoVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SumoVersion 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
-
getApiVersion
public int getApiVersion()
-
getSumoVersion
public String getSumoVersion()
-
getSumoVersion
public static SumoVersion getSumoVersion(String sumoVersion)
-
getTraciVersion
public TraciVersion getTraciVersion()
-
isGreaterOrEqualThan
public boolean isGreaterOrEqualThan(SumoVersion other)
-
-