90 lines
2.6 KiB
Java
90 lines
2.6 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* javax.baja.sys.BFrozenEnum
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
*/
|
|
package javax.baja.alarm;
|
|
|
|
import javax.baja.alarm.BAlarmTransitionBits;
|
|
import javax.baja.sys.BFrozenEnum;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public final class BSourceState
|
|
extends BFrozenEnum {
|
|
public static final int NORMAL = 0;
|
|
public static final int OFFNORMAL = 1;
|
|
public static final int FAULT = 2;
|
|
public static final int ALERT = 3;
|
|
public static final BSourceState normal = new BSourceState(0);
|
|
public static final BSourceState offnormal = new BSourceState(1);
|
|
public static final BSourceState fault = new BSourceState(2);
|
|
public static final BSourceState alert = new BSourceState(3);
|
|
public static final Type TYPE;
|
|
public static final BSourceState DEFAULT;
|
|
static /* synthetic */ Class class$javax$baja$alarm$BSourceState;
|
|
|
|
public final Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public static final BSourceState make(int n) {
|
|
return (BSourceState)normal.getRange().get(n, false);
|
|
}
|
|
|
|
public static final BSourceState make(String string) {
|
|
return (BSourceState)normal.getRange().get(string);
|
|
}
|
|
|
|
public final BAlarmTransitionBits getAlarmTransitionBits() {
|
|
switch (this.getOrdinal()) {
|
|
case 0: {
|
|
return BAlarmTransitionBits.toNormal;
|
|
}
|
|
case 1: {
|
|
return BAlarmTransitionBits.toOffnormal;
|
|
}
|
|
case 2: {
|
|
return BAlarmTransitionBits.toFault;
|
|
}
|
|
case 3: {
|
|
return BAlarmTransitionBits.toAlert;
|
|
}
|
|
}
|
|
return BAlarmTransitionBits.DEFAULT;
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
private BSourceState(int n) {
|
|
super(n);
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$alarm$BSourceState;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$alarm$BSourceState = BSourceState.class("[Ljavax.baja.alarm.BSourceState;", false);
|
|
}
|
|
TYPE = Sys.loadType((Class)clazz);
|
|
DEFAULT = normal;
|
|
}
|
|
}
|
|
|