de.cau.cs.kieler.synccharts
Enum StateType

java.lang.Object
  extended by java.lang.Enum<StateType>
      extended by de.cau.cs.kieler.synccharts.StateType
All Implemented Interfaces:
Comparable<StateType>, Enumerator

public enum StateType
extends Enum<StateType>
implements Enumerator

A representation of the literals of the enumeration 'State Type', and utility methods for working with them. A type for a State to specify some special properties.

See Also:
SyncchartsPackage.getStateType()
Rating red
Generated:
This code was automatically generated.
Model element

Enum Constant Summary
CONDITIONAL
          The 'CONDITIONAL' literal object.
NORMAL
          The 'NORMAL' literal object.
REFERENCE
          The 'REFERENCE' literal object.
TEXTUAL
          The 'TEXTUAL' literal object.
 
Field Summary
static int CONDITIONAL_VALUE
          The 'CONDITIONAL' literal value.
static String copyright
           
static int NORMAL_VALUE
          The 'NORMAL' literal value.
static int REFERENCE_VALUE
          The 'REFERENCE' literal value.
static int TEXTUAL_VALUE
          The 'TEXTUAL' literal value.
static List<StateType> VALUES
          A public read-only list of all the 'State Type' enumerators.
 
Method Summary
static StateType get(int value)
          Returns the 'State Type' literal with the specified integer value.
static StateType get(String literal)
          Returns the 'State Type' literal with the specified literal value.
static StateType getByName(String name)
          Returns the 'State Type' literal with the specified name.
 String getLiteral()
           
 String getName()
           
 int getValue()
           
 String toString()
          Returns the literal value of the enumerator, which is its string representation.
static StateType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StateType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NORMAL

public static final StateType NORMAL
The 'NORMAL' literal object.

See Also:
NORMAL_VALUE
Generated:
This code was automatically generated.
Ordered

CONDITIONAL

public static final StateType CONDITIONAL
The 'CONDITIONAL' literal object.

See Also:
CONDITIONAL_VALUE
Generated:
This code was automatically generated.
Ordered

REFERENCE

public static final StateType REFERENCE
The 'REFERENCE' literal object.

See Also:
REFERENCE_VALUE
Generated:
This code was automatically generated.
Ordered

TEXTUAL

public static final StateType TEXTUAL
The 'TEXTUAL' literal object.

See Also:
TEXTUAL_VALUE
Generated:
This code was automatically generated.
Ordered
Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Generated:
This code was automatically generated.

NORMAL_VALUE

public static final int NORMAL_VALUE
The 'NORMAL' literal value. Simple or macro States are of type NORMAL.

See Also:
NORMAL, Constant Field Values
Generated:
This code was automatically generated.
Model element
Ordered

CONDITIONAL_VALUE

public static final int CONDITIONAL_VALUE
The 'CONDITIONAL' literal value. A CONDITIONAL State is only a pseudostate in a sense that it will be left immediately within one tick. Its outgoing transitions have to be immediate.

See Also:
CONDITIONAL, Constant Field Values
Generated:
This code was automatically generated.
Model element
Ordered

REFERENCE_VALUE

public static final int REFERENCE_VALUE
The 'REFERENCE' literal value. A REFERENCE state carries a bodyReference to an arbitrary EObject. If this object is another State, e.g. from another file, this reference can be used to modularize SyncCharts. In such case all original interface of the referenced state needs to be redefined by Substitution objects.

See Also:
REFERENCE, Constant Field Values
Generated:
This code was automatically generated.
Model element
Ordered

TEXTUAL_VALUE

public static final int TEXTUAL_VALUE
The 'TEXTUAL' literal value. A TEXTUAL state will be defined not by child Regions but by bodyText that represents its behavior, e.g. in the language Esterel or something similar.

See Also:
TEXTUAL, Constant Field Values
Generated:
This code was automatically generated.
Model element
Ordered

VALUES

public static final List<StateType> VALUES
A public read-only list of all the 'State Type' enumerators.

Generated:
This code was automatically generated.
Method Detail

values

public static StateType[] 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 (StateType c : StateType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StateType 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 name
NullPointerException - if the argument is null

get

public static StateType get(String literal)
Returns the 'State Type' literal with the specified literal value.

Generated:
This code was automatically generated.

getByName

public static StateType getByName(String name)
Returns the 'State Type' literal with the specified name.

Generated:
This code was automatically generated.

get

public static StateType get(int value)
Returns the 'State Type' literal with the specified integer value.

Generated:
This code was automatically generated.

getValue

public int getValue()

Specified by:
getValue in interface Enumerator
Generated:
This code was automatically generated.

getName

public String getName()

Specified by:
getName in interface Enumerator
Generated:
This code was automatically generated.

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface Enumerator
Generated:
This code was automatically generated.

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<StateType>
Generated:
This code was automatically generated.