link start!
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.sys.BBoolean
|
||||
* javax.baja.sys.BInterface
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
*/
|
||||
package com.tridium.platform.alarm;
|
||||
|
||||
import com.tridium.platform.alarm.BPlatformServiceAlarmRecord;
|
||||
import com.tridium.platform.alarm.PlatformServiceAlarmListener;
|
||||
import javax.baja.sys.BBoolean;
|
||||
import javax.baja.sys.BInterface;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
public interface BIAlarmablePlatformService
|
||||
extends BInterface {
|
||||
public static final Type TYPE;
|
||||
public static final String MSG_TEXT = "msgText";
|
||||
public static final String SOURCE_NAME = "sourceName";
|
||||
public static final String HYPERLINK_ORD = "hyperlinkOrd";
|
||||
public static final String SOUND_FILE = "soundFile";
|
||||
public static final String ICON = "icon";
|
||||
public static final String P_ALARM_TYPE = "alarmType";
|
||||
|
||||
public void addPlatformServiceAlarmListener(PlatformServiceAlarmListener var1);
|
||||
|
||||
public void removePlatformServiceAlarmListener(PlatformServiceAlarmListener var1);
|
||||
|
||||
public void firePlatformServiceAlarmEvent(BPlatformServiceAlarmRecord var1);
|
||||
|
||||
public BBoolean ackAlarm(BPlatformServiceAlarmRecord var1);
|
||||
|
||||
static {
|
||||
Class clazz = 1.class$com$tridium$platform$alarm$BIAlarmablePlatformService;
|
||||
if (clazz == null) {
|
||||
clazz = 1.class$com$tridium$platform$alarm$BIAlarmablePlatformService = 1.class("[Lcom.tridium.platform.alarm.BIAlarmablePlatformService;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.sys.Action
|
||||
* javax.baja.sys.BBoolean
|
||||
* javax.baja.sys.BComponent
|
||||
* javax.baja.sys.BValue
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
*/
|
||||
package com.tridium.platform.alarm;
|
||||
|
||||
import com.tridium.platform.alarm.BIAlarmablePlatformService;
|
||||
import com.tridium.platform.alarm.BPlatformAlarmSupport;
|
||||
import com.tridium.platform.alarm.BPlatformServiceAlarmRecord;
|
||||
import com.tridium.platform.alarm.PlatformServiceAlarmListener;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Vector;
|
||||
import javax.baja.sys.Action;
|
||||
import javax.baja.sys.BBoolean;
|
||||
import javax.baja.sys.BComponent;
|
||||
import javax.baja.sys.BValue;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public class BPlatformAlarmProxy
|
||||
extends BComponent
|
||||
implements BIAlarmablePlatformService {
|
||||
public static final Action ackAlarm = BPlatformAlarmProxy.newAction((int)0, (BValue)new BPlatformServiceAlarmRecord(), null);
|
||||
public static final Type TYPE;
|
||||
Vector alarmListeners;
|
||||
BPlatformAlarmSupport alarmSupport;
|
||||
static /* synthetic */ Class class$com$tridium$platform$alarm$BPlatformAlarmProxy;
|
||||
|
||||
public BBoolean ackAlarm(BPlatformServiceAlarmRecord bPlatformServiceAlarmRecord) {
|
||||
return (BBoolean)this.invoke(ackAlarm, (BValue)bPlatformServiceAlarmRecord, null);
|
||||
}
|
||||
|
||||
public Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public void setAlarmSupport(BPlatformAlarmSupport bPlatformAlarmSupport) {
|
||||
this.alarmSupport = bPlatformAlarmSupport;
|
||||
bPlatformAlarmSupport.setSourceComponent(this);
|
||||
}
|
||||
|
||||
public void addPlatformServiceAlarmListener(PlatformServiceAlarmListener platformServiceAlarmListener) {
|
||||
this.alarmListeners.add(platformServiceAlarmListener);
|
||||
}
|
||||
|
||||
public void removePlatformServiceAlarmListener(PlatformServiceAlarmListener platformServiceAlarmListener) {
|
||||
this.alarmListeners.remove(platformServiceAlarmListener);
|
||||
}
|
||||
|
||||
public void firePlatformServiceAlarmEvent(BPlatformServiceAlarmRecord bPlatformServiceAlarmRecord) {
|
||||
if (this.alarmListeners.size() == 0) {
|
||||
return;
|
||||
}
|
||||
Enumeration enumeration = this.alarmListeners.elements();
|
||||
while (enumeration.hasMoreElements()) {
|
||||
PlatformServiceAlarmListener platformServiceAlarmListener = (PlatformServiceAlarmListener)enumeration.nextElement();
|
||||
platformServiceAlarmListener.platformServiceAlarm(bPlatformServiceAlarmRecord);
|
||||
}
|
||||
}
|
||||
|
||||
public BBoolean doAckAlarm(BPlatformServiceAlarmRecord bPlatformServiceAlarmRecord) {
|
||||
boolean bl = this.alarmSupport.ackAlarm(bPlatformServiceAlarmRecord);
|
||||
return BBoolean.make((boolean)bl);
|
||||
}
|
||||
|
||||
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 final /* synthetic */ void this() {
|
||||
this.alarmListeners = new Vector(1);
|
||||
this.alarmSupport = null;
|
||||
}
|
||||
|
||||
public BPlatformAlarmProxy() {
|
||||
this.this();
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$com$tridium$platform$alarm$BPlatformAlarmProxy;
|
||||
if (clazz == null) {
|
||||
clazz = class$com$tridium$platform$alarm$BPlatformAlarmProxy = BPlatformAlarmProxy.class("[Lcom.tridium.platform.alarm.BPlatformAlarmProxy;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,288 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.data.BIDataValue
|
||||
* javax.baja.naming.BOrd
|
||||
* javax.baja.naming.OrdQuery
|
||||
* javax.baja.sys.BAbsTime
|
||||
* javax.baja.sys.BComponent
|
||||
* javax.baja.sys.BFacets
|
||||
* javax.baja.sys.BIcon
|
||||
* javax.baja.sys.BString
|
||||
* javax.baja.sys.BValue
|
||||
* javax.baja.sys.Property
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
* javax.baja.util.BFormat
|
||||
*/
|
||||
package com.tridium.platform.alarm;
|
||||
|
||||
import com.tridium.platform.alarm.BPlatformServiceAlarmRecord;
|
||||
import com.tridium.platform.alarm.BPlatformServiceSourceState;
|
||||
import java.util.HashMap;
|
||||
import javax.baja.data.BIDataValue;
|
||||
import javax.baja.naming.BOrd;
|
||||
import javax.baja.naming.OrdQuery;
|
||||
import javax.baja.sys.BAbsTime;
|
||||
import javax.baja.sys.BComponent;
|
||||
import javax.baja.sys.BFacets;
|
||||
import javax.baja.sys.BIcon;
|
||||
import javax.baja.sys.BString;
|
||||
import javax.baja.sys.BValue;
|
||||
import javax.baja.sys.Property;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
import javax.baja.util.BFormat;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public class BPlatformAlarmSupport
|
||||
extends BComponent {
|
||||
public static final Property alarmClass = BPlatformAlarmSupport.newProperty((int)0, (String)"defaultAlarmClass", (BFacets)BFacets.make((String)"fieldEditor", (BIDataValue)BString.make((String)"alarm:AlarmClassFE")));
|
||||
public static final Property sourceName = BPlatformAlarmSupport.newProperty((int)0, (BValue)BFormat.make((String)"%parent.displayName%"), null);
|
||||
public static final Property alertText = BPlatformAlarmSupport.newProperty((int)0, (BValue)BFormat.make((String)""), null);
|
||||
public static final Property toFaultText = BPlatformAlarmSupport.newProperty((int)0, (BValue)BFormat.make((String)""), null);
|
||||
public static final Property toOffnormalText = BPlatformAlarmSupport.newProperty((int)0, (BValue)BFormat.make((String)""), null);
|
||||
public static final Property toNormalText = BPlatformAlarmSupport.newProperty((int)0, (BValue)BFormat.make((String)""), null);
|
||||
public static final Property hyperlinkOrd = BPlatformAlarmSupport.newProperty((int)0, (BValue)BOrd.NULL, (BFacets)BFacets.make((String)"ordRelativize", (boolean)false));
|
||||
public static final Property soundFile = BPlatformAlarmSupport.newProperty((int)0, (BValue)BOrd.NULL, (BFacets)BFacets.make((String)"targetType", (BIDataValue)BString.make((String)"file:AudioFile")));
|
||||
public static final Property alarmIcon = BPlatformAlarmSupport.newProperty((int)0, (BValue)BOrd.NULL, (BFacets)BFacets.make((String)"targetType", (BIDataValue)BString.make((String)"file:ImageFile")));
|
||||
public static final Property metaData = BPlatformAlarmSupport.newProperty((int)0, (BValue)BFacets.DEFAULT, null);
|
||||
public static final Type TYPE;
|
||||
private static final BIcon icon;
|
||||
BComponent comp;
|
||||
BAbsTime lastAlertTime;
|
||||
BAbsTime lastOffnormalTime;
|
||||
BAbsTime lastFaultTime;
|
||||
static /* synthetic */ Class class$com$tridium$platform$alarm$BPlatformAlarmSupport;
|
||||
|
||||
public String getAlarmClass() {
|
||||
return this.getString(alarmClass);
|
||||
}
|
||||
|
||||
public void setAlarmClass(String string) {
|
||||
this.setString(alarmClass, string, null);
|
||||
}
|
||||
|
||||
public BFormat getSourceName() {
|
||||
return (BFormat)this.get(sourceName);
|
||||
}
|
||||
|
||||
public void setSourceName(BFormat bFormat) {
|
||||
this.set(sourceName, (BValue)bFormat, null);
|
||||
}
|
||||
|
||||
public BFormat getAlertText() {
|
||||
return (BFormat)this.get(alertText);
|
||||
}
|
||||
|
||||
public void setAlertText(BFormat bFormat) {
|
||||
this.set(alertText, (BValue)bFormat, null);
|
||||
}
|
||||
|
||||
public BFormat getToFaultText() {
|
||||
return (BFormat)this.get(toFaultText);
|
||||
}
|
||||
|
||||
public void setToFaultText(BFormat bFormat) {
|
||||
this.set(toFaultText, (BValue)bFormat, null);
|
||||
}
|
||||
|
||||
public BFormat getToOffnormalText() {
|
||||
return (BFormat)this.get(toOffnormalText);
|
||||
}
|
||||
|
||||
public void setToOffnormalText(BFormat bFormat) {
|
||||
this.set(toOffnormalText, (BValue)bFormat, null);
|
||||
}
|
||||
|
||||
public BFormat getToNormalText() {
|
||||
return (BFormat)this.get(toNormalText);
|
||||
}
|
||||
|
||||
public void setToNormalText(BFormat bFormat) {
|
||||
this.set(toNormalText, (BValue)bFormat, null);
|
||||
}
|
||||
|
||||
public BOrd getHyperlinkOrd() {
|
||||
return (BOrd)this.get(hyperlinkOrd);
|
||||
}
|
||||
|
||||
public void setHyperlinkOrd(BOrd bOrd) {
|
||||
this.set(hyperlinkOrd, (BValue)bOrd, null);
|
||||
}
|
||||
|
||||
public BOrd getSoundFile() {
|
||||
return (BOrd)this.get(soundFile);
|
||||
}
|
||||
|
||||
public void setSoundFile(BOrd bOrd) {
|
||||
this.set(soundFile, (BValue)bOrd, null);
|
||||
}
|
||||
|
||||
public BOrd getAlarmIcon() {
|
||||
return (BOrd)this.get(alarmIcon);
|
||||
}
|
||||
|
||||
public void setAlarmIcon(BOrd bOrd) {
|
||||
this.set(alarmIcon, (BValue)bOrd, null);
|
||||
}
|
||||
|
||||
public BFacets getMetaData() {
|
||||
return (BFacets)this.get(metaData);
|
||||
}
|
||||
|
||||
public void setMetaData(BFacets bFacets) {
|
||||
this.set(metaData, (BValue)bFacets, null);
|
||||
}
|
||||
|
||||
public Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public void setSourceComponent(BComponent bComponent) {
|
||||
this.comp = bComponent;
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord makeNewAlert() {
|
||||
return this.makeNewAlert(BFacets.NULL);
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord makeNewAlert(BFacets bFacets) {
|
||||
return this.makeNewAlarm(BPlatformServiceSourceState.alert, bFacets);
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord makeNewOffnormalAlarm() {
|
||||
return this.makeNewOffnormalAlarm(BFacets.NULL);
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord makeNewOffnormalAlarm(BFacets bFacets) {
|
||||
return this.makeNewAlarm(BPlatformServiceSourceState.offnormal, bFacets);
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord makeNewFaultAlarm() {
|
||||
return this.makeNewFaultAlarm(BFacets.NULL);
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord makeNewFaultAlarm(BFacets bFacets) {
|
||||
return this.makeNewAlarm(BPlatformServiceSourceState.fault, bFacets);
|
||||
}
|
||||
|
||||
private final BPlatformServiceAlarmRecord makeNewAlarm(BPlatformServiceSourceState bPlatformServiceSourceState, BFacets bFacets) {
|
||||
BFacets bFacets2 = BFacets.make((BFacets)this.makeAlarmData(bPlatformServiceSourceState), (BFacets)bFacets);
|
||||
BPlatformServiceAlarmRecord bPlatformServiceAlarmRecord = new BPlatformServiceAlarmRecord(BOrd.make((OrdQuery)this.comp.getSlotPath()), this.getAlarmClass(), bPlatformServiceSourceState, bFacets2);
|
||||
if (bPlatformServiceSourceState == BPlatformServiceSourceState.offnormal) {
|
||||
this.lastOffnormalTime = bPlatformServiceAlarmRecord.getTimestamp();
|
||||
} else if (bPlatformServiceSourceState == BPlatformServiceSourceState.fault) {
|
||||
this.lastFaultTime = bPlatformServiceAlarmRecord.getTimestamp();
|
||||
} else if (bPlatformServiceSourceState == BPlatformServiceSourceState.alert) {
|
||||
this.lastAlertTime = bPlatformServiceAlarmRecord.getTimestamp();
|
||||
}
|
||||
return bPlatformServiceAlarmRecord;
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord makeToNormal() {
|
||||
return this.makeToNormal(BFacets.NULL);
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord makeToNormal(BFacets bFacets) {
|
||||
return this.makeNewAlarm(BPlatformServiceSourceState.normal, bFacets);
|
||||
}
|
||||
|
||||
public boolean ackAlarm(BPlatformServiceAlarmRecord bPlatformServiceAlarmRecord) {
|
||||
boolean bl = false;
|
||||
bPlatformServiceAlarmRecord.setAlarmClass(this.getAlarmClass());
|
||||
if (bPlatformServiceAlarmRecord.getSourceState() == BPlatformServiceSourceState.offnormal) {
|
||||
boolean bl2 = true;
|
||||
if (this.lastOffnormalTime != null) {
|
||||
bl2 = bPlatformServiceAlarmRecord.getTimestamp().equals((Object)this.lastOffnormalTime);
|
||||
}
|
||||
bl = bl2;
|
||||
} else if (bPlatformServiceAlarmRecord.getSourceState() == BPlatformServiceSourceState.fault) {
|
||||
boolean bl3 = true;
|
||||
if (this.lastFaultTime != null) {
|
||||
bl3 = bPlatformServiceAlarmRecord.getTimestamp().equals((Object)this.lastFaultTime);
|
||||
}
|
||||
bl = bl3;
|
||||
} else if (bPlatformServiceAlarmRecord.getSourceState() == BPlatformServiceSourceState.alert) {
|
||||
boolean bl4 = true;
|
||||
if (this.lastAlertTime != null) {
|
||||
bl4 = bPlatformServiceAlarmRecord.getTimestamp().equals((Object)this.lastAlertTime);
|
||||
}
|
||||
bl = bl4;
|
||||
}
|
||||
return bl;
|
||||
}
|
||||
|
||||
public BFacets makeAlarmData(BPlatformServiceSourceState bPlatformServiceSourceState) {
|
||||
HashMap<String, Object> hashMap = new HashMap<String, Object>();
|
||||
if (!this.getSourceName().toString().equals("")) {
|
||||
hashMap.put("sourceName", BString.make((String)this.getSourceName().format((Object)this)));
|
||||
}
|
||||
String string = "";
|
||||
if (bPlatformServiceSourceState == BPlatformServiceSourceState.offnormal) {
|
||||
string = this.getToOffnormalText().toString();
|
||||
} else if (bPlatformServiceSourceState == BPlatformServiceSourceState.fault) {
|
||||
string = this.getToFaultText().toString();
|
||||
} else if (bPlatformServiceSourceState == BPlatformServiceSourceState.alert) {
|
||||
string = this.getAlertText().toString();
|
||||
} else if (bPlatformServiceSourceState == BPlatformServiceSourceState.normal) {
|
||||
string = this.getToNormalText().toString();
|
||||
}
|
||||
if (!string.equals("")) {
|
||||
hashMap.put("msgText", BString.make((String)string));
|
||||
}
|
||||
if (this.getHyperlinkOrd() != BOrd.NULL) {
|
||||
hashMap.put("hyperlinkOrd", BString.make((String)this.getHyperlinkOrd().toString()));
|
||||
}
|
||||
if (this.getSoundFile() != BOrd.NULL) {
|
||||
hashMap.put("soundFile", BString.make((String)this.getSoundFile().toString()));
|
||||
}
|
||||
if (this.getAlarmIcon() != BOrd.NULL) {
|
||||
hashMap.put("icon", BString.make((String)this.getAlarmIcon().toString()));
|
||||
}
|
||||
String[] stringArray = this.getMetaData().list();
|
||||
int n = 0;
|
||||
while (n < stringArray.length) {
|
||||
hashMap.put(stringArray[n], this.getMetaData().get(stringArray[n]));
|
||||
++n;
|
||||
}
|
||||
return BFacets.make(hashMap);
|
||||
}
|
||||
|
||||
public BIcon getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
public BPlatformAlarmSupport() {
|
||||
}
|
||||
|
||||
public BPlatformAlarmSupport(BComponent bComponent) {
|
||||
this.comp = bComponent;
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$com$tridium$platform$alarm$BPlatformAlarmSupport;
|
||||
if (clazz == null) {
|
||||
clazz = class$com$tridium$platform$alarm$BPlatformAlarmSupport = BPlatformAlarmSupport.class("[Lcom.tridium.platform.alarm.BPlatformAlarmSupport;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
icon = BIcon.std((String)"alarm.png");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.naming.BOrd
|
||||
* javax.baja.sys.BAbsTime
|
||||
* javax.baja.sys.BFacets
|
||||
* javax.baja.sys.BStruct
|
||||
* javax.baja.sys.BValue
|
||||
* javax.baja.sys.Property
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
* javax.baja.util.BUuid
|
||||
*/
|
||||
package com.tridium.platform.alarm;
|
||||
|
||||
import com.tridium.platform.alarm.BPlatformServiceSourceState;
|
||||
import javax.baja.naming.BOrd;
|
||||
import javax.baja.sys.BAbsTime;
|
||||
import javax.baja.sys.BFacets;
|
||||
import javax.baja.sys.BStruct;
|
||||
import javax.baja.sys.BValue;
|
||||
import javax.baja.sys.Property;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
import javax.baja.util.BUuid;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public class BPlatformServiceAlarmRecord
|
||||
extends BStruct {
|
||||
public static final Property uuid = BPlatformServiceAlarmRecord.newProperty((int)0, (BValue)BUuid.make(), null);
|
||||
public static final Property source = BPlatformServiceAlarmRecord.newProperty((int)0, (BValue)BOrd.DEFAULT, null);
|
||||
public static final Property alarmClass = BPlatformServiceAlarmRecord.newProperty((int)0, (String)"defaultAlarmClass", null);
|
||||
public static final Property sourceState = BPlatformServiceAlarmRecord.newProperty((int)0, (BValue)BPlatformServiceSourceState.offnormal, null);
|
||||
public static final Property timestamp = BPlatformServiceAlarmRecord.newProperty((int)0, (BValue)BAbsTime.NULL, null);
|
||||
public static final Property alarmData = BPlatformServiceAlarmRecord.newProperty((int)0, (BValue)BFacets.DEFAULT, null);
|
||||
public static final Type TYPE;
|
||||
static /* synthetic */ Class class$com$tridium$platform$alarm$BPlatformServiceAlarmRecord;
|
||||
|
||||
public BUuid getUuid() {
|
||||
return (BUuid)this.get(uuid);
|
||||
}
|
||||
|
||||
public void setUuid(BUuid bUuid) {
|
||||
this.set(uuid, (BValue)bUuid, null);
|
||||
}
|
||||
|
||||
public BOrd getSource() {
|
||||
return (BOrd)this.get(source);
|
||||
}
|
||||
|
||||
public void setSource(BOrd bOrd) {
|
||||
this.set(source, (BValue)bOrd, null);
|
||||
}
|
||||
|
||||
public String getAlarmClass() {
|
||||
return this.getString(alarmClass);
|
||||
}
|
||||
|
||||
public void setAlarmClass(String string) {
|
||||
this.setString(alarmClass, string, null);
|
||||
}
|
||||
|
||||
public BPlatformServiceSourceState getSourceState() {
|
||||
return (BPlatformServiceSourceState)this.get(sourceState);
|
||||
}
|
||||
|
||||
public void setSourceState(BPlatformServiceSourceState bPlatformServiceSourceState) {
|
||||
this.set(sourceState, (BValue)bPlatformServiceSourceState, null);
|
||||
}
|
||||
|
||||
public BAbsTime getTimestamp() {
|
||||
return (BAbsTime)this.get(timestamp);
|
||||
}
|
||||
|
||||
public void setTimestamp(BAbsTime bAbsTime) {
|
||||
this.set(timestamp, (BValue)bAbsTime, null);
|
||||
}
|
||||
|
||||
public BFacets getAlarmData() {
|
||||
return (BFacets)this.get(alarmData);
|
||||
}
|
||||
|
||||
public void setAlarmData(BFacets bFacets) {
|
||||
this.set(alarmData, (BValue)bFacets, null);
|
||||
}
|
||||
|
||||
public Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord() {
|
||||
this.setUuid(BUuid.make());
|
||||
}
|
||||
|
||||
public BPlatformServiceAlarmRecord(BOrd bOrd, String string, BPlatformServiceSourceState bPlatformServiceSourceState, BFacets bFacets) {
|
||||
this.setUuid(BUuid.make());
|
||||
this.setSource(bOrd);
|
||||
this.setAlarmClass(string);
|
||||
this.setSourceState(bPlatformServiceSourceState);
|
||||
this.setTimestamp(BAbsTime.now());
|
||||
this.setAlarmData(bFacets);
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$com$tridium$platform$alarm$BPlatformServiceAlarmRecord;
|
||||
if (clazz == null) {
|
||||
clazz = class$com$tridium$platform$alarm$BPlatformServiceAlarmRecord = BPlatformServiceAlarmRecord.class("[Lcom.tridium.platform.alarm.BPlatformServiceAlarmRecord;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.sys.BFrozenEnum
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
*/
|
||||
package com.tridium.platform.alarm;
|
||||
|
||||
import javax.baja.sys.BFrozenEnum;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public final class BPlatformServiceSourceState
|
||||
extends BFrozenEnum {
|
||||
public static final int OFFNORMAL = 0;
|
||||
public static final int FAULT = 1;
|
||||
public static final int NORMAL = 2;
|
||||
public static final int ALERT = 3;
|
||||
public static final BPlatformServiceSourceState offnormal = new BPlatformServiceSourceState(0);
|
||||
public static final BPlatformServiceSourceState fault = new BPlatformServiceSourceState(1);
|
||||
public static final BPlatformServiceSourceState normal = new BPlatformServiceSourceState(2);
|
||||
public static final BPlatformServiceSourceState alert = new BPlatformServiceSourceState(3);
|
||||
public static final Type TYPE;
|
||||
public static final BPlatformServiceSourceState DEFAULT;
|
||||
static /* synthetic */ Class class$com$tridium$platform$alarm$BPlatformServiceSourceState;
|
||||
|
||||
public final Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static final BPlatformServiceSourceState make(int n) {
|
||||
return (BPlatformServiceSourceState)offnormal.getRange().get(n, false);
|
||||
}
|
||||
|
||||
public static final BPlatformServiceSourceState make(String string) {
|
||||
return (BPlatformServiceSourceState)offnormal.getRange().get(string);
|
||||
}
|
||||
|
||||
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 BPlatformServiceSourceState(int n) {
|
||||
super(n);
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$com$tridium$platform$alarm$BPlatformServiceSourceState;
|
||||
if (clazz == null) {
|
||||
clazz = class$com$tridium$platform$alarm$BPlatformServiceSourceState = BPlatformServiceSourceState.class("[Lcom.tridium.platform.alarm.BPlatformServiceSourceState;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
DEFAULT = offnormal;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package com.tridium.platform.alarm;
|
||||
|
||||
import com.tridium.platform.alarm.BPlatformServiceAlarmRecord;
|
||||
|
||||
public interface PlatformServiceAlarmListener {
|
||||
public void platformServiceAlarm(BPlatformServiceAlarmRecord var1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user