F1: economia headless, dati validati, generatore di mappa e salvataggi
- Base deterministica: Money, id tipizzati, DMath, XxHash64, calendario - 12 file dati con schemi, validatore di schema interno, validazione semantica e hash dei dati; viaferrea-tools validate-data - Generatore di mappa (rilievo, mare, priority-flood, fiumi, laghi, copertura, giacimenti, città, hub, industrie) e viaferrea-tools genmap - Economia: città, industrie, hub, mercato con componente mondiale, prezzi locali, tariffe, lavoro in sede e a piedi, trasporto locale, registro a partita doppia, prestiti, rating, difficoltà - Salvataggi Brotli con rimappatura per id e hash di stato giornaliero - viaferrea-tools simulate con KPI CSV; 45 test verdi; ADR 0002-0006 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
This commit is contained in:
113 files changed
+12553
-23
No files matched your search
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"$schema": "schema/maintenance.schema.json",
|
||||
"version": 1,
|
||||
"components": {
|
||||
"locomotive": [
|
||||
{ "id": "engine", "name_it": "Motore o caldaia", "failureWeight": 0.40, "wearPer100Km": 0.25 },
|
||||
{ "id": "wheelsets", "name_it": "Rodiggio e assali", "failureWeight": 0.25, "wearPer100Km": 0.20 },
|
||||
{ "id": "brakes", "name_it": "Freni", "failureWeight": 0.20, "wearPer100Km": 0.35 },
|
||||
{ "id": "electrics", "name_it": "Impianto elettrico o trasmissione", "failureWeight": 0.15, "wearPer100Km": 0.15 }
|
||||
],
|
||||
"car": [
|
||||
{ "id": "axles", "name_it": "Assali", "failureWeight": 0.5, "wearPer100Km": 0.15 },
|
||||
{ "id": "brakes", "name_it": "Freni", "failureWeight": 0.3, "wearPer100Km": 0.30 },
|
||||
{ "id": "body", "name_it": "Cassa", "failureWeight": 0.2, "wearPer100Km": 0.08 }
|
||||
]
|
||||
},
|
||||
"wear": {
|
||||
"gradientThreshold": 0.015,
|
||||
"gradientWeight": 2.0,
|
||||
"highSpeedThreshold": 0.8,
|
||||
"highSpeedWeight": 0.5,
|
||||
"loadWeight": 0.3,
|
||||
"ageStepYears": 5,
|
||||
"ageStepFactor": 0.5
|
||||
},
|
||||
"failure": {
|
||||
"h0": 0.002,
|
||||
"slope": 0.8,
|
||||
"pivot": 50,
|
||||
"scale": 10,
|
||||
"healthyDivisor": 4,
|
||||
"minorShare": 0.70,
|
||||
"majorShare": 0.27,
|
||||
"catastrophicShare": 0.03,
|
||||
"catastrophicMaxCondition": 15,
|
||||
"catastrophicMinSpeedShare": 0.8,
|
||||
"minorSpeedFactor": 0.5,
|
||||
"rescueSpeedKmh": 40,
|
||||
"rescueExtraHours": 2,
|
||||
"derailmentTrackDays": 3,
|
||||
"derailmentSatisfaction": 0.05
|
||||
},
|
||||
"effects": {
|
||||
"engineSpeedBelow": 70,
|
||||
"engineSpeedBase": 0.6,
|
||||
"engineSpeedSpan": 0.4,
|
||||
"fuelPenalty": 0.4,
|
||||
"comfortMin": 0.8,
|
||||
"comfortMax": 1.05
|
||||
},
|
||||
"interventions": [
|
||||
{ "id": "inspection", "name_it": "Ispezione", "days": 1, "costShare": 0.005, "spareParts": 0, "effect": "inspection" },
|
||||
{ "id": "service", "name_it": "Tagliando", "days": 3, "costShare": 0.03, "spareParts": 1, "effect": "service" },
|
||||
{ "id": "overhaul", "name_it": "Revisione generale", "days": 20, "costShare": 0.25, "spareParts": 5, "effect": "overhaul" },
|
||||
{ "id": "repair_minor", "name_it": "Riparazione dopo guasto lieve", "days": 2, "costShare": 0.05, "spareParts": 1, "effect": "repair", "restoreTo": 80 },
|
||||
{ "id": "repair_major", "name_it": "Riparazione dopo guasto grave", "days": 7, "costShare": 0.15, "spareParts": 3, "effect": "repair", "restoreTo": 90 },
|
||||
{ "id": "repair_catastrophic", "name_it": "Ricostruzione dopo deragliamento", "days": 30, "costShare": 0.40, "spareParts": 8, "effect": "replace" }
|
||||
],
|
||||
"inspection": { "brakesTo": 100, "othersPlus": 10, "hazardFactor": 0.5, "hazardDays": 30 },
|
||||
"service": { "plus": 40 },
|
||||
"overhaul": { "ageFactorReduction": 0.5 },
|
||||
"depots": {
|
||||
"stallsBySize": { "small": 2, "medium": 4, "large": 8 },
|
||||
"staffPerStall": 4,
|
||||
"slowdownAtHalfStaff": 2.0,
|
||||
"initialSpareParts": 10,
|
||||
"jobsWorkersPerStall": 6
|
||||
},
|
||||
"policies": [
|
||||
{ "id": "economy", "name_it": "Economica", "intervalFactor": 1.5, "effectFactor": 0.7, "costFactor": 0.6 },
|
||||
{ "id": "standard", "name_it": "Standard", "intervalFactor": 1.0, "effectFactor": 1.0, "costFactor": 1.0 },
|
||||
{ "id": "thorough", "name_it": "Accurata", "intervalFactor": 0.7, "effectFactor": 1.2, "costFactor": 1.6 }
|
||||
],
|
||||
"intervals": {
|
||||
"inspectionKm": 3000, "inspectionDays": 45,
|
||||
"serviceKm": 15000, "serviceDays": 180,
|
||||
"overhaulYears": 6
|
||||
},
|
||||
"planner": {
|
||||
"targetCondition": 40,
|
||||
"averageDays": 15,
|
||||
"marginDays": 5,
|
||||
"alertCondition": 40,
|
||||
"criticalCondition": 30
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user