Enum Maschine
- java.lang.Object
-
- java.lang.Enum<Maschine>
-
- de.desy.mst.libs.framework.mstapp.mode.Maschine
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Maschine>
public enum Maschine extends java.lang.Enum<Maschine>
Enumeration aller gültigen Maschinen:
L2(1), D2(2), Pe(3), Do(4)
falls nicht bekannt oder nicht anwendbar: NA(0)
Die Applikation bekommt es durch die Applikations Ini Datei. Einfach zu den properties versionUID, webAddress usw. folgendes einfügen:
<void property="maschinenNr"> <int>1</int> </void>
(mit der richtigen maschinenNr natürlich).
Die im Augenblick gewählte Maschine findet man durchMaschine.getMaschine()
ein Beispiel ist zu finden in:
&linkhttp //mstweb/ini/~~testAppMitAppIniOnWeb/~~testAppMitAppIniOnWeb.xml- Version:
- 1.0.0
- Author:
- ws
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Ag
Angus maschinenNr 19Al
ALPS maschinenNr 21Am
AMTF maschinenNr 15CS
Common-Service: maschinenNr 11D2
Desy 2: maschinenNr 2Dex
DEX(DESY 2 Exp.) maschinenNr 17Do
Doris: maschinenNr 4Ew
E-Weg: maschinenNr 8Fl
Flash: maschinenNr 10L2
Linac 2: maschinenNr 1Lw
L-Weg: maschinenNr 7Mst
Mst: maschinenNr 5NA
nicht anwendbar: maschinenNr 0Pe
Petra: maschinenNr 3Pex
PEX(PETRA Exp.) maschinenNr 18Pia
Pia: maschinenNr 6PZ
Pitz: maschinenNr 12Rg
Regae: maschinenNr 13Rw
R-Weg: maschinenNr 9SI
SINBAD maschinenNr 20So
Salome: maschinenNr 14XF
XFEL maschinenNr 16
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
bkrWikiName
java.lang.String
langerName
java.lang.String
logBuchName
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getBkrWikiName()
static Maschine
getDefaultMaschine()
Nimmt das Framework falls die Maschine im Mgr oder via ini xml Datei nicht anders gesetzt wird.java.lang.String
getLangenNamen()
java.lang.String
getLogBuchName()
java.lang.String
getLogBuchNameBild()
java.lang.String
getLogBuchNameText()
static Maschine
getMaschine()
Deprecated.static Maschine
getMaschineByString(java.lang.String maschinenString)
Implementation für MaschineMgrint
getMaschineNr()
int Maschinen Nummerboolean
hasBKRWikiAcceleratorWithControlsPage()
boolean
hasLogbuch()
boolean
istMaschine()
true falls es eine spezifische Maschine wie PETRA iststatic boolean
istMaschine(Maschine maschine)
true falls es eine spezifische Maschine wie PETRA istint
ordinalSorted()
static Maschine
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Maschine[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static Maschine[]
valuesSorted()
Sinnvoll Sortiert fuer Menues etc.
-
-
-
Enum Constant Detail
-
NA
public static final Maschine NA
nicht anwendbar: maschinenNr 0
-
L2
public static final Maschine L2
Linac 2: maschinenNr 1
-
D2
public static final Maschine D2
Desy 2: maschinenNr 2
-
Pe
public static final Maschine Pe
Petra: maschinenNr 3
-
Do
public static final Maschine Do
Doris: maschinenNr 4
-
Mst
public static final Maschine Mst
Mst: maschinenNr 5
-
Pia
public static final Maschine Pia
Pia: maschinenNr 6
-
Lw
public static final Maschine Lw
L-Weg: maschinenNr 7
-
Ew
public static final Maschine Ew
E-Weg: maschinenNr 8
-
Rw
public static final Maschine Rw
R-Weg: maschinenNr 9
-
Fl
public static final Maschine Fl
Flash: maschinenNr 10
-
CS
public static final Maschine CS
Common-Service: maschinenNr 11
-
PZ
public static final Maschine PZ
Pitz: maschinenNr 12
-
Rg
public static final Maschine Rg
Regae: maschinenNr 13
-
So
public static final Maschine So
Salome: maschinenNr 14
-
Am
public static final Maschine Am
AMTF maschinenNr 15
-
XF
public static final Maschine XF
XFEL maschinenNr 16
-
Dex
public static final Maschine Dex
DEX(DESY 2 Exp.) maschinenNr 17
-
Pex
public static final Maschine Pex
PEX(PETRA Exp.) maschinenNr 18
-
Ag
public static final Maschine Ag
Angus maschinenNr 19
-
SI
public static final Maschine SI
SINBAD maschinenNr 20
-
Al
public static final Maschine Al
ALPS maschinenNr 21
-
-
Method Detail
-
values
public static Maschine[] 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 (Maschine c : Maschine.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Maschine 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
-
istMaschine
public final boolean istMaschine()
true falls es eine spezifische Maschine wie PETRA ist
-
getMaschineNr
public int getMaschineNr()
int Maschinen Nummer
-
getMaschine
@Deprecated public static final Maschine getMaschine()
Deprecated.Maschine dieser Applikation, nie null use MaschineMgr Object .getMaschine() instead
-
istMaschine
public static boolean istMaschine(Maschine maschine)
true falls es eine spezifische Maschine wie PETRA ist
-
getDefaultMaschine
public static Maschine getDefaultMaschine()
Nimmt das Framework falls die Maschine im Mgr oder via ini xml Datei nicht anders gesetzt wird.
-
valuesSorted
public static final Maschine[] valuesSorted()
Sinnvoll Sortiert fuer Menues etc. (Reihenfolge KH)
-
getMaschineByString
public static Maschine getMaschineByString(java.lang.String maschinenString)
Implementation für MaschineMgr
-
getLogBuchName
public final java.lang.String getLogBuchName()
-
hasLogbuch
public final boolean hasLogbuch()
-
getLogBuchNameBild
public java.lang.String getLogBuchNameBild()
-
getLogBuchNameText
public java.lang.String getLogBuchNameText()
-
getLangenNamen
public final java.lang.String getLangenNamen()
-
getBkrWikiName
public final java.lang.String getBkrWikiName()
-
ordinalSorted
public final int ordinalSorted()
-
hasBKRWikiAcceleratorWithControlsPage
public boolean hasBKRWikiAcceleratorWithControlsPage()
-
-