This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onExecute() throws Exception | |
{ | |
process((BComponent)getProgram().getParent()); | |
} | |
public void process(BComplex c) | |
throws Exception | |
{ | |
if (c instanceof javax.baja.control.BEnumWritable) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOrd ord = BOrd.make("station:|slot:/Drivers/NiagaraNetwork|bql:select slotPath, type, toString from control:ControlPoint where slotPath like '*OCC_MODE'"); | |
public void onOccupied() throws Exception | |
{ | |
GetPoints("occ"); | |
} | |
public void onUnoccupied() throws Exception | |
{ | |
GetPoints("unocc"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean addEnergyModule(String paramString) | |
{ | |
int i = 0; | |
BFolder localBFolder1 = new BFolder();BFolder localBFolder2 = new BFolder();BEnergyAnalyzer localBEnergyAnalyzer = new BEnergyAnalyzer(); | |
Slot[] arrayOfSlot = BOrd.make("station:|slot:/").resolve().getComponent().getSlotsArray(); | |
for (int j = 0; j < arrayOfSlot.length; j++) | |
{ | |
if (arrayOfSlot[j].getName().toString().equals("EnergyReporting")) { | |
i = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a new component | |
Delete a component | |
public void xcmRemove(String paramString) | |
{ | |
Slot[] arrayOfSlot = BOrd.make("station:|slot:/EnergyReporting/EnergyLogic").resolve().getComponent().getSlotsArray(); | |
for (int i = 0; i < arrayOfSlot.length; i++) { | |
if (arrayOfSlot[i].getName().toString().equals(paramString)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alarm Queries | |
local:|fox:|station:|slot:/|bql:select name as 'Point Name',out as 'Point Status' from control:ControlPoint where status.alarm = 'true' | |
local:|fox:|station:|slot:/|bql:select * from alarm:AlarmSourceExt where alarmClass = 'defaultAlarmClass' and status.alarm = true | |
alarm:|bql:select timestamp,alarmData.sourceName,sourceState,ackState,ackRequired,alarmData.msgText,alarmClass where alarmData.sourceName like 'B1J*' and alarmClass like '*1*' order by timestamp desc | |
alarm:|bql:select timestamp,alarmData.sourceName,sourceState,ackState,ackRequired,alarmData.msgText,alarmClass where alarmData.sourceName like 'B1J*' and alarmClass like '*2*' order by timestamp desc | |
alarm:|bql:select * | |
History Queries | |
local:|fox:|history:/MyStation/ZoneTemp|bql:select timestamp, value where timestamp in bqltime.today | |
history:|bql:select * |