F2: rete ferroviaria, cantieri, treni con fisica e blocchi, merci in stazione

- RailNetwork: nodi, archi con profilo campionato, divisione degli archi agli
  agganci (anche in cantiere), indice spaziale, cavalcavia sui binari altrui
- Comandi: binari, stazioni, depositi, segnali, demolizioni, rinnovi,
  ammodernamenti, veicoli, composizioni, linee, assegnazioni, rientro
- ConstructionSystem: squadre per livello, avanzamento, usura dei binari e
  invecchiamento delle strutture; costi d'esercizio e valore contabile
- TrainSystem: A* con vincolo di svolta, prenotazione a blocchi con catena
  fino a un punto sicuro sul binario semplice, fisica 8.4, stallo in salita
- StationSystem e StationWork: bacini, merci con destinazione sul grafo
  delle linee, carico sui carri, consegne con tariffa, trasbordi
- Salvataggi estesi a tutto lo stato ferroviario; 11 nuovi test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
This commit is contained in:
Claude committed 2026-10-01 23:19:34 +00:00
1 parent 32997ff1e5
commit 18b5e2c2e1
28 files changed
+4122 -6

No files matched your search

+2 -1
View File
@@ -103,7 +103,8 @@
},
"migration": { "share": 0.01, "satisfactionThreshold": 0.4, "maxDistanceKm": 60, "emigrationShareWhenNoTarget": 0.5 },
"employment": { "walkRadiusKm": 1.5, "workerMaxMinutes": 60, "staffMaxMinutes": 90, "coverageEmaDays": 30,
"dissolveCoverage": 0.5, "dissolveDays": 90, "walkSpeedKmh": 4.5 },
"dissolveCoverage": 0.5, "dissolveDays": 90, "walkSpeedKmh": 4.5, "boardDays": 2, "returnBoardDays": 2,
"railStartCoverage": 0.5 },
"localTransport": { "enabled": true, "radiusKm": 3.0, "dailyShare": 0.25, "maxUnitsPerDay": 6 },
"hubs": {
"port": { "name_it": "Porto", "monthlyCapacity": 3000, "duty": 0.08, "footprint": "large" },
+20 -2
View File
@@ -72,13 +72,31 @@
"speedLimitFactor": 0.5,
"closeBelow": 15
},
"stations": {
"catchmentKm": 2.0,
"areaRadiusM": 120,
"maxPlatforms": 8,
"snapM": 60,
"freightUnitsPerMinutePerWagon": 2.0,
"paxPerMinutePerCoach": 12,
"minDwellMinutes": 3,
"upkeepPerPlatformPerYear": 60000,
"depotUpkeepPerYear": { "small": 120000, "medium": 240000, "large": 480000 }
},
"operations": {
"maxVehiclesPerTrain": 24,
"maxTurnDeg": 100,
"lookaheadMarginM": 60,
"waitWarningDays": 20,
"defaultMaxWaitDays": 2
},
"physics": {
"gravity": 9.81,
"adhesion": 0.3,
"adhesion": 1.0,
"adhesionFactor": 0.3,
"rollingResistance": 0.0015,
"aeroCoefficient": 0.6,
"cxByKind": { "locomotive": 0.0025, "wagon": 0.0012, "coach": 0.0015 },
"cxByKind": { "locomotive": 6.0, "wagon": 1.5, "coach": 1.8 },
"brakingMs2": 0.5,
"stallSpeedKmh": 1.0,
"stallSeconds": 120
+29 -1
View File
@@ -164,6 +164,32 @@
"string"
]
}
},
"stations": {
"type": "object",
"additionalProperties": {
"type": [
"number",
"integer",
"boolean",
"array",
"object",
"string"
]
}
},
"operations": {
"type": "object",
"additionalProperties": {
"type": [
"number",
"integer",
"boolean",
"array",
"object",
"string"
]
}
}
},
"required": [
@@ -177,7 +203,9 @@
"rules",
"trackWear",
"structures",
"physics"
"physics",
"stations",
"operations"
],
"additionalProperties": false
}
+1 -1
View File
@@ -3,7 +3,7 @@
"version": 1,
"vehicles": [
{ "id": "loco_steam_1850", "kind": "locomotive", "name_it": "Ardita 2-6-0", "name_en": "Ardita 2-6-0",
"eraFrom": 1850, "eraTo": 1905, "powerKw": 300, "tractiveEffortKn": 45, "maxSpeedKmh": 60, "massT": 38, "lengthM": 16,
"eraFrom": 1850, "eraTo": 1905, "powerKw": 300, "tractiveEffortKn": 70, "maxSpeedKmh": 60, "massT": 38, "lengthM": 16,
"price": 1800000, "runningCostPerYear": 240000, "lifeYears": 25, "traction": "steam",
"components": { "engine": 1.0, "wheelsets": 0.8, "brakes": 1.0, "electrics": 0.6 } },
{ "id": "loco_steam_1878", "kind": "locomotive", "name_it": "Vittoria 2-8-0", "name_en": "Vittoria 2-8-0",