Package org.opentrafficsim.imb.connector
Enum Connector.IMBEventType
- java.lang.Object
-
- java.lang.Enum<Connector.IMBEventType>
-
- org.opentrafficsim.imb.connector.Connector.IMBEventType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Connector.IMBEventType>
- Enclosing interface:
- Connector
public static enum Connector.IMBEventType extends java.lang.Enum<Connector.IMBEventType>
Enum for IMB event types.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 Sep 9, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEventEntry()Return the corresponding integer IMB type.static Connector.IMBEventTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Connector.IMBEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final Connector.IMBEventType NEW
Corresponds to TEventEntry.ACTION_NEW.
-
CHANGE
public static final Connector.IMBEventType CHANGE
Corresponds to TEventEntry.ACTION_CHANGE.
-
DELETE
public static final Connector.IMBEventType DELETE
Corresponds to TEventEntry.ACTION_DELETE.
-
-
Method Detail
-
values
public static Connector.IMBEventType[] 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 (Connector.IMBEventType c : Connector.IMBEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Connector.IMBEventType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getEventEntry
public int getEventEntry()
Return the corresponding integer IMB type.- Returns:
- int; the IMB event type
-
-