Terminal Unit Report
+ + + Export Data ++
+
+
+
+
diff --git a/DEPENDENCIES b/DEPENDENCIES
index ebc7151..d6e6835 100644
--- a/DEPENDENCIES
+++ b/DEPENDENCIES
@@ -1,3 +1,3 @@
file:tomcat-embed-core:webserver\lib
-url:CommissioningScripts-0.1.1.jar:https://github.com/automatic-controls/commissioning-scripts/releases/download/v0.1.1-beta/CommissioningScripts-0.1.1.jar
-url:CommissioningScripts-0.1.1-sources.jar:https://github.com/automatic-controls/commissioning-scripts/releases/download/v0.1.1-beta/CommissioningScripts-0.1.1-sources.jar
\ No newline at end of file
+url:CommissioningScripts-0.1.2.jar:https://github.com/automatic-controls/commissioning-scripts/releases/download/v0.1.2-beta/CommissioningScripts-0.1.2.jar
+url:CommissioningScripts-0.1.2-sources.jar:https://github.com/automatic-controls/commissioning-scripts/releases/download/v0.1.2-beta/CommissioningScripts-0.1.2-sources.jar
\ No newline at end of file
diff --git a/README.md b/README.md
index 68d0fb0..7ca03f6 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-# Terminal Unit Commissioning Script v0.1.0
+# Terminal Unit Commissioning Script
WebCTRL is a trademark of Automated Logic Corporation. Any other trademarks mentioned herein are the property of their respective owners.
-- [Terminal Unit Commissioning Script v0.1.0](#terminal-unit-commissioning-script-v010)
+- [Terminal Unit Commissioning Script](#terminal-unit-commissioning-script)
- [Overview](#overview)
- [High-Level Pseudocode](#high-level-pseudocode)
- [Supply Fan, Damper, and Hot Water Valve](#supply-fan-damper-and-hot-water-valve)
diff --git a/build.bat b/build.bat
index ecebe60..494b516 100644
--- a/build.bat
+++ b/build.bat
@@ -5,7 +5,7 @@ echo.
:: Modify these parameters when necessary
set "WebCTRL=C:\WebCTRL8.0"
set "mainClass=TerminalUnitTest"
-set "package="
+set "package=aces\webctrl\scripts\terminalunits\"
set "jdk=%JAVA_HOME%\bin"
set "release=8"
@@ -34,7 +34,7 @@ if %ERRORLEVEL% NEQ 0 (
echo Packing...
robocopy /E "%~dp0src" "%classes%" /XF "*.java" >nul 2>nul
if exist "%~dp0%mainClass%.jar" del /F "%~dp0%mainClass%.jar" >nul 2>nul
-"%jdk%\jar.exe" --create --verbose --file "%~dp0%mainClass%.jar" --main-class "%package%%mainClass%" -C "%classes%" . >nul
+"%jdk%\jar.exe" --create --verbose --file "%~dp0%mainClass%.jar" --main-class "%package:\=.%%mainClass%" -C "%classes%" . >nul
if %ERRORLEVEL% NEQ 0 (
rmdir /S /Q "%classes%" >nul
echo.
diff --git a/src/TerminalUnitTest.java b/src/TerminalUnitTest.java
deleted file mode 100644
index 881a56f..0000000
--- a/src/TerminalUnitTest.java
+++ /dev/null
@@ -1,1220 +0,0 @@
-import aces.webctrl.scripts.commissioning.core.*;
-import aces.webctrl.scripts.commissioning.web.*;
-import javax.servlet.http.*;
-import java.util.*;
-import java.util.function.*;
-import java.util.concurrent.atomic.*;
-public class TerminalUnitTest extends Script {
- private volatile boolean exited = false;
- private volatile Data[] data;
- private final AtomicInteger index = new AtomicInteger();
- private volatile boolean testDampers = false;
- private volatile boolean testFans = false;
- private volatile boolean testHeating = false;
- private volatile boolean initialized = false;
- @Override public String getDescription(){
- return "Terminal Unit Commissioning Script v0.1.0
Evaluates performance of fans, dampers, and heating components.";
- }
- @Override public String[] getParamNames(){
- return new String[]{"Dampers", "Fans", "Heating"};
- }
- @Override public void exit(){
- exited = true;
- }
- @Override public void init(){
- data = new Data[this.testsTotal];
- Arrays.fill(data,null);
- testDampers = this.params.getOrDefault("Dampers",false);
- testFans = this.params.getOrDefault("Fans",false);
- testHeating = this.params.getOrDefault("Heating",false);
- initialized = true;
- }
- @Override public void exec(ResolvedTestingUnit x) throws Throwable {
- final int index = this.index.getAndIncrement();
- if (index>=data.length){
- Initializer.log(new ArrayIndexOutOfBoundsException("Index exceeded expected capacity: "+index+">="+data.length));
- return;
- }
- data[index] = new Data(x);
- }
- @Override public String getOutput(boolean email) throws Throwable {
- if (!initialized){
- return null;
- }
- final StringBuilder sb = new StringBuilder(8192);
- sb.append("\n");
- sb.append("\n");
- sb.append("