Enum 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 durch Maschine.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 19
      Al
      ALPS maschinenNr 21
      Am
      AMTF maschinenNr 15
      CS
      Common-Service: maschinenNr 11
      D2
      Desy 2: maschinenNr 2
      Dex
      DEX(DESY 2 Exp.) maschinenNr 17
      Do
      Doris: maschinenNr 4
      Ew
      E-Weg: maschinenNr 8
      Fl
      Flash: maschinenNr 10
      L2
      Linac 2: maschinenNr 1
      Lw
      L-Weg: maschinenNr 7
      Mst
      Mst: maschinenNr 5
      NA
      nicht anwendbar: maschinenNr 0
      Pe
      Petra: maschinenNr 3
      Pex
      PEX(PETRA Exp.) maschinenNr 18
      Pia
      Pia: maschinenNr 6
      PZ
      Pitz: maschinenNr 12
      Rg
      Regae: maschinenNr 13
      Rw
      R-Weg: maschinenNr 9
      SI
      SINBAD maschinenNr 20
      So
      Salome: maschinenNr 14
      XF
      XFEL maschinenNr 16
    • 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
    • Field Detail

      • langerName

        public final java.lang.String langerName
      • logBuchName

        public final java.lang.String logBuchName
      • bkrWikiName

        public final java.lang.String bkrWikiName
    • 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 name
        java.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()