CD++
1 program
Added 2026-03-05T00:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: CDPP, Cell-DEVS simulator
Provenance: commit 2371f2afb1 · authored 2026-03-05T11:32:54+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
2 sources · pl_id:
pl/cdRelated languages
LLM-contributed programs
Traffic Simulation
Provenance: commit 2371f2afb1 · authored 2026-03-05T11:32:54+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
[top]
components : traffic
[traffic]
type : cell
dim : (5,5)
delay : transport
defaultDelayTime : 1000
border : wrapped
neighbors : traffic(-1,0)
neighbors : traffic(0,-1) traffic(0,0) traffic(0,1)
neighbors : traffic(1,0) traffic(1,1)
initialvalue : 0
initialrowvalue : 0 01011
initialrowvalue : 1 00210
initialrowvalue : 2 20102
initialrowvalue : 3 00200
initialrowvalue : 4 00120
localtransition : traffic-rule
# NOTA: Usamos 1 para representar autos que van hacia la derecha, y 2 para
# representar autos que van hacia arriba. 0 significa que no hay autos
# en esa casilla.
[traffic-rule]
rule : 2 1000 { (0,0) = 2 and (-1,0) != 0 }
rule : 0 1000 { (0,0) = 2 and (-1,0) = 0 }
rule : 2 1000 { (0,0) = 0 and (1,0) = 2 }
rule : 1 1000 { (0,0) = 1 and (0,1) = 0 and (1,1) = 2 }
rule : 1 1000 { (0,0) = 1 and (0,1) != 0 }
rule : 0 1000 { (0,0) = 1 and (0,1) = 0 }
rule : 1 1000 { (0,0) = 0 and (0,-1) = 1 }
rule : 0 1000 { (0,0) = 0 }
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)