Skip to content

Commit 8b3f1e5

Browse files
committed
Science Commit 5.
1 parent 732c611 commit 8b3f1e5

6 files changed

Lines changed: 94 additions & 31 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ logging/archive/
5454

5555
### Large PyTorch native binary ###
5656
jars/djl/pytorch-native-cpu-2.5.1-linux-x86_64.jar
57+
source/city/analysis/data/durham.nc.addresses.csv

bash/Compile.check.sh

100644100755
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
#!/usr/bin/env bash
2+
# compile.check.sh — Compile all source Java files and report errors.
3+
# Uses the project's jar dependencies and --release 25.
24
set -e
3-
REPO_URL="https://github.com/mearvk/Java.Web.Server.Telnet.Front.Java.21"
4-
TARGET_DIR="Java.Web.Server.Telnet.Front.Java.21"
5-
BIN_DIR="bin"
65

7-
if ! command -v git &> /dev/null || ! command -v javac &> /dev/null; then
8-
echo "Error: git and javac must be installed." >&2
6+
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
7+
SRC="$ROOT/source"
8+
OUT="$ROOT/out"
9+
10+
if ! command -v javac &> /dev/null; then
11+
echo "Error: javac must be installed." >&2
912
exit 1
1013
fi
1114

12-
if [ ! -d "$TARGET_DIR" ]; then
13-
git clone "$REPO_URL"
14-
fi
15-
cd "$TARGET_DIR"
16-
mkdir -p "$BIN_DIR"
15+
mkdir -p "$OUT"
16+
17+
DJL_CP=$(find "$ROOT/jars/djl" -name "*.jar" 2>/dev/null | tr '\n' ':')
18+
CP="$OUT:$ROOT/jars/mysql/mysql-connector-j-9.7.0.jar:${DJL_CP}$ROOT/jars/lanterna-3.1.5.jar"
1719

18-
find . -name "*.java" > java_files.txt
19-
javac -d "$BIN_DIR" --release 21 @java_files.txt
20-
rm -f java_files.txt
20+
find "$SRC" -name "*.java" > /tmp/nwe-compile-check.txt
21+
javac -d "$OUT" --release 25 -cp "$CP" -sourcepath "$SRC" @/tmp/nwe-compile-check.txt
22+
rm -f /tmp/nwe-compile-check.txt
2123
echo "Compilation successful."

bash/compile.check.sh

100644100755
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
#!/usr/bin/env bash
2+
# compile.check.sh — Compile all source Java files and report errors.
3+
# Uses the project's jar dependencies and --release 25.
24
set -e
3-
REPO_URL="https://github.com/mearvk/Java.Web.Server.Telnet.Front.Java.21"
4-
TARGET_DIR="Java.Web.Server.Telnet.Front.Java.21"
5-
BIN_DIR="bin"
65

7-
if ! command -v git &> /dev/null || ! command -v javac &> /dev/null; then
8-
echo "Error: git and javac must be installed." >&2
6+
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
7+
SRC="$ROOT/source"
8+
OUT="$ROOT/out"
9+
10+
if ! command -v javac &> /dev/null; then
11+
echo "Error: javac must be installed." >&2
912
exit 1
1013
fi
1114

12-
if [ ! -d "$TARGET_DIR" ]; then
13-
git clone "$REPO_URL"
14-
fi
15-
cd "$TARGET_DIR"
16-
mkdir -p "$BIN_DIR"
15+
mkdir -p "$OUT"
16+
17+
DJL_CP=$(find "$ROOT/jars/djl" -name "*.jar" 2>/dev/null | tr '\n' ':')
18+
CP="$OUT:$ROOT/jars/mysql/mysql-connector-j-9.7.0.jar:${DJL_CP}$ROOT/jars/lanterna-3.1.5.jar"
1719

18-
find . -name "*.java" > java_files.txt
19-
javac -d "$BIN_DIR" --release 21 @java_files.txt
20-
rm -f java_files.txt
20+
find "$SRC" -name "*.java" > /tmp/nwe-compile-check.txt
21+
javac -d "$OUT" --release 25 -cp "$CP" -sourcepath "$SRC" @/tmp/nwe-compile-check.txt
22+
rm -f /tmp/nwe-compile-check.txt
2123
echo "Compilation successful."

configuration/middle-director-modules.xml

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,20 @@
22
<!--
33
Middle Director Module Configuration
44
=====================================
5-
Defines the synchronization modules for finance and target goals
6-
consumed on port 8888.
5+
Defines synchronization modules, strategic goals, SSL checkin service,
6+
and full server topology (main/middle/occupy-writ/endpoint).
7+
8+
Server topology:
9+
- main: Core NWE installations. Full authority. Many allowed.
10+
- middle: Intermediate directors. Synchronize goals. Many allowed.
11+
- occupy-writ: Occupy only a mode, not the whole scenario. Many allowed.
12+
- endpoint: Terminal game servers. Occupy total game. Many allowed.
13+
14+
Author: Max Rupplin — MEARVK LLC
715
-->
816
<middle-director port="8888">
17+
18+
<!-- ═══ Synchronization Modules ════════════════════════════════════════════ -->
919
<module name="ShortHops" class="middle.director.ShortHopsModule"
1020
description="Short-range finance synchronization hops between middle nodes"/>
1121
<module name="MediumHops" class="middle.director.MediumHopsModule"
@@ -20,9 +30,57 @@
2030
description="Angular math roughing sketches (.mdmd), IQ-gated submissions, composure and trade review"/>
2131
<module name="AuditorContent" class="middle.director.AuditorContentModule"
2232
description="Auditor content verification and goal compliance"/>
33+
<module name="StrategicGoals" class="middle.director.StrategicGoalsModule"
34+
config="configuration/strategic-goals-config.xml"
35+
description="IQ, initiatives, total IQ wealth, state savings, main money, feelings"/>
36+
37+
<!-- ═══ SSL Checkin Service ═════════════════════════════════════════════════ -->
38+
<ssl-checkin enabled="true" interval-seconds="60"
39+
class="middle.director.SSLCheckinService"/>
40+
41+
<!-- ═══ Server Topology ════════════════════════════════════════════════════ -->
42+
43+
<!-- Main servers: full authority, core NWE installations -->
44+
<servers tier="main" description="Core NWE installations — full authority">
45+
<server host="127.0.0.1" port="8888" role="primary"/>
46+
<!-- Add additional main servers as needed -->
47+
</servers>
2348

49+
<!-- Middle servers: intermediate directors, synchronize goals -->
50+
<servers tier="middle" description="Intermediate directors — goal synchronization">
51+
<server host="127.0.0.1" port="8889" role="peer"/>
52+
<!-- Add additional middle servers as needed -->
53+
</servers>
54+
55+
<!-- Occupy-writ servers: occupy only a mode, not the whole scenario -->
56+
<servers tier="occupy-writ" description="Mode-occupying servers — partial scenario only">
57+
<server host="127.0.0.1" port="8890" role="modal"/>
58+
<!-- Add additional occupy-writ servers as needed -->
59+
</servers>
60+
61+
<!-- Endpoint servers: occupy total game -->
62+
<servers tier="endpoint" description="Terminal game servers — total game occupation">
63+
<server host="127.0.0.1" port="49152" role="national"/>
64+
<server host="127.0.0.1" port="49155" role="finance"/>
65+
<!-- Add additional endpoint servers as needed -->
66+
</servers>
67+
68+
<!-- ═══ Strategic Goals Configuration ══════════════════════════════════════ -->
69+
<strategic-goals>
70+
<goal name="IQ" weight="1.00" description="Raw intelligence measurement and initiative scoring"/>
71+
<goal name="Initiatives" weight="0.90" description="State and national initiative tracking"/>
72+
<goal name="TotalIQWealth" weight="0.95" description="Aggregate intelligence capital across participants"/>
73+
<goal name="StateSavings" weight="0.85" description="State initiatives for fiscal/moral savings programs"/>
74+
<goal name="MainMoney" weight="0.80" description="Presidents at real stats — post-evaluation capital"/>
75+
<goal name="FeelingGood" weight="0.75" description="Feeling good natures — morale, well-being, feelings"/>
76+
</strategic-goals>
77+
78+
<!-- ═══ Targets (routing) ══════════════════════════════════════════════════ -->
2479
<targets>
25-
<target type="middle" description="Forward to other middle nodes on port 8888"/>
26-
<target type="national" description="Forward to final NWE installations on port 49152"/>
80+
<target type="main" description="Forward to main NWE core servers"/>
81+
<target type="middle" description="Forward to other middle nodes on port 8888+"/>
82+
<target type="occupy-writ" description="Forward to modal occupy-writ servers"/>
83+
<target type="endpoint" description="Forward to terminal endpoint servers (total game)"/>
2784
</targets>
85+
2886
</middle-director>
Binary file not shown.

scripts/build-jar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ DJL_CP=$(find "$DJL_DIR" -name "*.jar" 2>/dev/null | tr '\n' ':')
2121
CP="$OUT:$MYSQL_JAR:${DJL_CP}$LANTERNA_JAR"
2222

2323
find "$SRC" -name "*.java" > /tmp/nwe-sources.txt
24-
javac --release 25 -cp "$CP" -sourcepath "$SRC" -d "$OUT" @/tmp/nwe-sources.txt
24+
javac --release 25 -cp "$CP" -sourcepath "$SRC" -d "$OUT" @/tmp/nwe-sources.txt 2>&1
2525
rm -f /tmp/nwe-sources.txt
2626
echo " Compiled."
2727

0 commit comments

Comments
 (0)