de.bsvrz.sys.usv.enums
Enum BatterieZustand

java.lang.Object
  extended by java.lang.Enum<BatterieZustand>
      extended by de.bsvrz.sys.usv.enums.BatterieZustand
All Implemented Interfaces:
Serializable, Comparable<BatterieZustand>

public enum BatterieZustand
extends Enum<BatterieZustand>

Zuordnung der Zustände des Attributs BatterieZustand der Attributgruppe atg.usvStatus

Author:
ObertM, Christian Hösel, BitCtrl Systems GmbH

Enum Constant Summary
na
          Der BatterieZustand "Nicht ermittelbar" (-1).
 
Field Summary
private  String m_text
           
private  int m_value
           
 
Method Summary
static BatterieZustand findBatterieZustand(int value)
          Sucht den BatterieZustand entsprechend der übergebenen Ordinalzahl.
static BatterieZustand findBatterieZustand(String name)
          Sucht eine BatterieZustand entsprechend des übergebenen Namens.
 String getText()
          Liefert den Namen des BatterieZustandes.
 int getValue()
          Liefert die Ordinalzahl des BatterieZustandes.
static BatterieZustand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BatterieZustand[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

na

public static final BatterieZustand na
Der BatterieZustand "Nicht ermittelbar" (-1).

Field Detail

m_text

private final String m_text

m_value

private final int m_value
Method Detail

values

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

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

valueOf

public static BatterieZustand 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

findBatterieZustand

public static final BatterieZustand findBatterieZustand(String name)
Sucht eine BatterieZustand entsprechend des übergebenen Namens.

Parameters:
name - der Name des gesuchten BatterieZustandes.
Returns:
den entsprechenden BatterieZustand, oder null, falls kein Zustand mit dem gesuchten Namen existiert.

findBatterieZustand

public static final BatterieZustand findBatterieZustand(int value)
Sucht den BatterieZustand entsprechend der übergebenen Ordinalzahl.

Parameters:
value - die Ordinalzahl des gesuchten BatterieZustandes.
Returns:
den entsprechenden BatterieZustand oder null, falls kein Zustand mit der gesuchten Ordinatzahl existiert. Das sollte damit immer der Fall sein, wenn sich der Ladezustand der Batterie zwischen 0..100% befindet.

getText

public String getText()
Liefert den Namen des BatterieZustandes.

Returns:
der Name des BatterieZustandes.

getValue

public int getValue()
Liefert die Ordinalzahl des BatterieZustandes.

Returns:
die Ordinalzahl des BatterieZustandes.