|
5 | 5 |
|
6 | 6 | public enum FFSpecies implements IStringSerializable {
|
7 | 7 | // Enum
|
8 |
| - RS(I18n.format("enum.pmtinfai.rs_ff")), P_RS(I18n.format("enum.pmtinfai.gated_rs_ff")), HF_RS(I18n.format("enum.pmtinfai.rising_rs_ff")), LF_RS(I18n.format("enum.pmtinfai.falling_rs_ff")), MS_RS(I18n.format("enum.pmtinfai.master_slave_rs_ff")), JK(I18n.format("enum.pmtinfai.jk_ff")), P_JK( |
9 |
| - I18n.format("enum.pmtinfai.gated_jk_ff")), HF_JK(I18n.format("enum.pmtinfai.rising_jk_ff")), LF_JK(I18n.format("enum.pmtinfai.falling_jk_ff")), MS_JK(I18n.format("enum.pmtinfai.master_slave_jk_ff")), D(I18n.format("enum.pmtinfai.d_ff")), P_D(I18n.format("enum.pmtinfai.gated_d_ff")), HF_D( |
10 |
| - I18n.format("enum.pmtinfai.rising_d_ff")), LF_D(I18n.format("enum.pmtinfai.falling_d_ff")), MS_D(I18n.format("enum.pmtinfai.master_slave_d_ff")), T( |
11 |
| - I18n.format("enum.pmtinfai.t_ff")), P_T( I18n.format("enum.pmtinfai.gated_t_ff")), HF_T(I18n.format("enum.pmtinfai.rising_t_ff")), LF_T(I18n.format("enum.pmtinfai.falling_t_ff")), MS_T(I18n.format("enum.pmtinfai.master_slave_t_ff")), NONE(I18n.format("enum.pmtinfai.none")); |
| 8 | + RS("rs_ff"), P_RS("gated_rs_ff"), HF_RS("rising_rs_ff"), LF_RS("falling_rs_ff"), MS_RS("master_slave_rs_ff"), JK("jk_ff"), P_JK( |
| 9 | + "gated_jk_ff"), HF_JK("rising_jk_ff"), LF_JK("falling_jk_ff"), MS_JK("master_slave_jk_ff"), D("d_ff"), P_D("gated_d_ff"), HF_D( |
| 10 | + "rising_d_ff"), LF_D("falling_d_ff"), MS_D("master_slave_f_ff"), T( |
| 11 | + "t_ff"), P_T("gated_t_ff"), HF_T("rising_t_ff"), LF_T("falling_t_ff"), MS_T("master_slave_t_ff"), NONE("none"); |
12 | 12 | // S | R
|
13 | 13 | // 0 | 0
|
14 | 14 | // 0 | 1
|
@@ -52,6 +52,75 @@ public String getName() {
|
52 | 52 | *
|
53 | 53 | * @return Aktiv wenn die InputSeite existiert
|
54 | 54 | */
|
| 55 | + |
| 56 | + public String getTranslationName() { |
| 57 | + if(this==RS){ |
| 58 | + return I18n.format("enum.pmtinfai.rs_ff"); |
| 59 | + } |
| 60 | + if(this==JK){ |
| 61 | + return I18n.format("enum.pmtinfai.jk_ff"); |
| 62 | + } |
| 63 | + if(this==D){ |
| 64 | + return I18n.format("enum.pmtinfai.d_ff"); |
| 65 | + } |
| 66 | + if(this==T){ |
| 67 | + return I18n.format("enum.pmtinfai.t_ff"); |
| 68 | + } |
| 69 | + if(this==P_RS){ |
| 70 | + return I18n.format("enum.pmtinfai.gated_rs_ff"); |
| 71 | + } |
| 72 | + if(this==P_JK){ |
| 73 | + return I18n.format("enum.pmtinfai.gated_jk_ff"); |
| 74 | + } |
| 75 | + if(this==P_D){ |
| 76 | + return I18n.format("enum.pmtinfai.gated_d_ff"); |
| 77 | + } |
| 78 | + if(this==P_T){ |
| 79 | + return I18n.format("enum.pmtinfai.gated_t_ff"); |
| 80 | + } |
| 81 | + if(this==HF_RS){ |
| 82 | + return I18n.format("enum.pmtinfai.rising_rs_ff"); |
| 83 | + } |
| 84 | + if(this==HF_JK){ |
| 85 | + return I18n.format("enum.pmtinfai.rising_jk_ff"); |
| 86 | + } |
| 87 | + if(this==HF_D){ |
| 88 | + return I18n.format("enum.pmtinfai.rising_d_ff"); |
| 89 | + } |
| 90 | + if(this==HF_T){ |
| 91 | + return I18n.format("enum.pmtinfai.rising_t_ff"); |
| 92 | + } |
| 93 | + if(this==LF_RS){ |
| 94 | + return I18n.format("enum.pmtinfai.falling_rs_ff"); |
| 95 | + } |
| 96 | + if(this==LF_JK){ |
| 97 | + return I18n.format("enum.pmtinfai.falling_jk_ff"); |
| 98 | + } |
| 99 | + if(this==LF_D){ |
| 100 | + return I18n.format("enum.pmtinfai.falling_d_ff"); |
| 101 | + } |
| 102 | + if(this==LF_T){ |
| 103 | + return I18n.format("enum.pmtinfai.falling_t_ff"); |
| 104 | + } |
| 105 | + if(this==MS_RS){ |
| 106 | + return I18n.format("enum.pmtinfai.master_slave_rs_ff"); |
| 107 | + } |
| 108 | + if(this==MS_JK){ |
| 109 | + return I18n.format("enum.pmtinfai.master_slave_jk_ff"); |
| 110 | + } |
| 111 | + if(this==MS_D){ |
| 112 | + return I18n.format("enum.pmtinfai.master_slave_d_ff"); |
| 113 | + } |
| 114 | + if(this==MS_T){ |
| 115 | + return I18n.format("enum.pmtinfai.master_slave_t_ff"); |
| 116 | + } |
| 117 | + if(this==NONE){ |
| 118 | + return I18n.format("enum.pmtinfai.none"); |
| 119 | + } |
| 120 | + return this.getName(); |
| 121 | + } |
| 122 | + |
| 123 | + |
55 | 124 | public boolean isActive() {
|
56 | 125 | return this != NONE;
|
57 | 126 | }
|
|
0 commit comments