Skip to content
Snippets Groups Projects
Commit d21a15c0 authored by Johannes Mey's avatar Johannes Mey
Browse files

align id and Id in relast-JSON, update models

parent f5dcb181
Branches
No related tags found
No related merge requests found
Showing
with 26 additions and 126199 deletions
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Region" : [ {
"type" : "Region",
"id" : "1",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Segment",
"id" : "2",
"children" : {
"Id" : 3,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "4" ]
}
}, {
"type" : "Segment",
"id" : "4",
"children" : {
"Id" : 4,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "5" ]
}
}, {
"type" : "Segment",
"id" : "5",
"children" : {
"Id" : 5,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "6" ]
}
}, {
"type" : "Segment",
"id" : "6",
"children" : {
"Id" : 6,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "7" ]
}
}, {
"type" : "Segment",
"id" : "7",
"children" : {
"Id" : 7,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "8" ]
}
}, {
"type" : "Segment",
"id" : "8",
"children" : {
"Id" : 8,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ ]
}
} ],
"Sensor" : [ {
"type" : "Sensor",
"id" : "3",
"children" : {
"Id" : 2
},
"relations" : {
"monitors" : [ "2", "4", "5", "6", "7", "8" ],
"requiredBy" : [ ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Segment","id":"3","children":{"Id":3,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["4"]}},{"type":"Segment","id":"4","children":{"Id":4,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["5"]}},{"type":"Segment","id":"5","children":{"Id":5,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["6"]}},{"type":"Segment","id":"6","children":{"Id":6,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["7"]}},{"type":"Segment","id":"7","children":{"Id":7,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["8"]}},{"type":"Segment","id":"8","children":{"Id":8,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":[]}}],"Sensor":[{"type":"Sensor","id":"2","children":{"Id":2},"relations":{"monitors":["3","4","5","6","7","8"],"requiredBy":[]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Region" : [ {
"type" : "Region",
"id" : "1",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Segment",
"id" : "2",
"children" : {
"Id" : 3,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "4" ]
}
}, {
"type" : "Segment",
"id" : "4",
"children" : {
"Id" : 4,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "5" ]
}
}, {
"type" : "Segment",
"id" : "5",
"children" : {
"Id" : 5,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "6" ]
}
}, {
"type" : "Segment",
"id" : "6",
"children" : {
"Id" : 6,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "7" ]
}
}, {
"type" : "Segment",
"id" : "7",
"children" : {
"Id" : 7,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "8" ]
}
}, {
"type" : "Segment",
"id" : "8",
"children" : {
"Id" : 8,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ ]
}
} ],
"Sensor" : [ {
"type" : "Sensor",
"id" : "3",
"children" : {
"Id" : 2
},
"relations" : {
"monitors" : [ "2", "4", "5", "6", "7", "8" ],
"requiredBy" : [ ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Segment","id":"3","children":{"Id":3,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["4"]}},{"type":"Segment","id":"4","children":{"Id":4,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["5"]}},{"type":"Segment","id":"5","children":{"Id":5,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["6"]}},{"type":"Segment","id":"6","children":{"Id":6,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["7"]}},{"type":"Segment","id":"7","children":{"Id":7,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["8"]}},{"type":"Segment","id":"8","children":{"Id":8,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":[]}}],"Sensor":[{"type":"Sensor","id":"2","children":{"Id":2},"relations":{"monitors":["3","4","5","6","7","8"],"requiredBy":[]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Region" : [ {
"type" : "Region",
"id" : "1",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Segment",
"id" : "2",
"children" : {
"Id" : 2,
"Length" : -1
},
"relations" : {
"monitoredBy" : [ ],
"connectsTo" : [ ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Segment","id":"2","children":{"Id":2,"Length":-1},"relations":{"monitoredBy":[],"connectsTo":[]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Region" : [ {
"type" : "Region",
"id" : "1",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Segment",
"id" : "2",
"children" : {
"Id" : 3,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "4" ]
}
}, {
"type" : "Segment",
"id" : "4",
"children" : {
"Id" : 4,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "5" ]
}
}, {
"type" : "Segment",
"id" : "5",
"children" : {
"Id" : 5,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "6" ]
}
}, {
"type" : "Segment",
"id" : "6",
"children" : {
"Id" : 6,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "7" ]
}
}, {
"type" : "Segment",
"id" : "7",
"children" : {
"Id" : 7,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "8" ]
}
}, {
"type" : "Segment",
"id" : "8",
"children" : {
"Id" : 8,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ ]
}
} ],
"Sensor" : [ {
"type" : "Sensor",
"id" : "3",
"children" : {
"Id" : 2
},
"relations" : {
"monitors" : [ "2", "4", "5", "6", "7", "8" ],
"requiredBy" : [ ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Segment","id":"3","children":{"Id":3,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["4"]}},{"type":"Segment","id":"4","children":{"Id":4,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["5"]}},{"type":"Segment","id":"5","children":{"Id":5,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["6"]}},{"type":"Segment","id":"6","children":{"Id":6,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["7"]}},{"type":"Segment","id":"7","children":{"Id":7,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":["8"]}},{"type":"Segment","id":"8","children":{"Id":8,"Length":0},"relations":{"monitoredBy":["2"],"connectsTo":[]}}],"Sensor":[{"type":"Sensor","id":"2","children":{"Id":2},"relations":{"monitors":["3","4","5","6","7","8"],"requiredBy":[]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Route" : [ {
"type" : "Route",
"id" : "1",
"children" : {
"Id" : 2,
"Active" : false,
"SwitchPosition" : [ {
"type" : "SwitchPosition",
"id" : "2",
"children" : {
"Id" : 5,
"Position" : "STRAIGHT"
},
"relations" : {
"target" : "3"
}
} ]
},
"relations" : {
"requires" : [ ]
}
} ],
"Region" : [ {
"type" : "Region",
"id" : "4",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Switch",
"id" : "3",
"children" : {
"Id" : 4,
"CurrentPosition" : "STRAIGHT"
},
"relations" : {
"monitoredBy" : [ "5" ],
"connectsTo" : [ ],
"positions" : [ "2" ]
}
} ],
"Sensor" : [ {
"type" : "Sensor",
"id" : "5",
"children" : {
"Id" : 3
},
"relations" : {
"monitors" : [ "3" ],
"requiredBy" : [ ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Route":[{"type":"Route","id":"2","children":{"Id":2,"Active":false,"SwitchPosition":[{"type":"SwitchPosition","id":"5","children":{"Id":5,"Position":"STRAIGHT"},"relations":{"target":"4"}}]},"relations":{"requires":[]}}],"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Switch","id":"4","children":{"Id":4,"CurrentPosition":"STRAIGHT"},"relations":{"monitoredBy":["3"],"connectsTo":[],"positions":["5"]}}],"Sensor":[{"type":"Sensor","id":"3","children":{"Id":3},"relations":{"monitors":["4"],"requiredBy":[]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Route" : [ {
"type" : "Route",
"id" : "1",
"children" : {
"Id" : 2,
"Active" : false,
"SwitchPosition" : [ {
"type" : "SwitchPosition",
"id" : "2",
"children" : {
"Id" : 5,
"Position" : "STRAIGHT"
},
"relations" : {
"target" : "3"
}
} ]
},
"relations" : {
"requires" : [ ]
}
} ],
"Region" : [ {
"type" : "Region",
"id" : "4",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Switch",
"id" : "3",
"children" : {
"Id" : 4,
"CurrentPosition" : "STRAIGHT"
},
"relations" : {
"monitoredBy" : [ "5" ],
"connectsTo" : [ ],
"positions" : [ "2" ]
}
} ],
"Sensor" : [ {
"type" : "Sensor",
"id" : "5",
"children" : {
"Id" : 3
},
"relations" : {
"monitors" : [ "3" ],
"requiredBy" : [ ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Route":[{"type":"Route","id":"2","children":{"Id":2,"Active":false,"SwitchPosition":[{"type":"SwitchPosition","id":"5","children":{"Id":5,"Position":"STRAIGHT"},"relations":{"target":"4"}}]},"relations":{"requires":[]}}],"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Switch","id":"4","children":{"Id":4,"CurrentPosition":"STRAIGHT"},"relations":{"monitoredBy":["3"],"connectsTo":[],"positions":["5"]}}],"Sensor":[{"type":"Sensor","id":"3","children":{"Id":3},"relations":{"monitors":["4"],"requiredBy":[]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Route" : [ {
"type" : "Route",
"id" : "1",
"children" : {
"Id" : 3,
"Active" : false
},
"relations" : {
"exit" : "2",
"requires" : [ "3" ]
}
}, {
"type" : "Route",
"id" : "4",
"children" : {
"Id" : 4,
"Active" : false
},
"relations" : {
"requires" : [ "5" ]
}
} ],
"Region" : [ {
"type" : "Region",
"id" : "6",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Segment",
"id" : "7",
"children" : {
"Id" : 7,
"Length" : 0,
"Semaphore" : [ {
"type" : "Semaphore",
"id" : "2",
"children" : {
"Id" : 2,
"Signal" : "GO"
}
} ]
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "8" ]
}
}, {
"type" : "Segment",
"id" : "8",
"children" : {
"Id" : 8,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "5" ],
"connectsTo" : [ ]
}
} ],
"Sensor" : [ {
"type" : "Sensor",
"id" : "3",
"children" : {
"Id" : 5
},
"relations" : {
"monitors" : [ "7" ],
"requiredBy" : [ "1" ]
}
}, {
"type" : "Sensor",
"id" : "5",
"children" : {
"Id" : 6
},
"relations" : {
"monitors" : [ "8" ],
"requiredBy" : [ "4" ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Route":[{"type":"Route","id":"3","children":{"Id":3,"Active":false},"relations":{"exit":"2","requires":["5"]}},{"type":"Route","id":"4","children":{"Id":4,"Active":false},"relations":{"requires":["6"]}}],"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Segment","id":"7","children":{"Id":7,"Length":0,"Semaphore":[{"type":"Semaphore","id":"2","children":{"Id":2,"Signal":"GO"}}]},"relations":{"monitoredBy":["5"],"connectsTo":["8"]}},{"type":"Segment","id":"8","children":{"Id":8,"Length":0},"relations":{"monitoredBy":["6"],"connectsTo":[]}}],"Sensor":[{"type":"Sensor","id":"5","children":{"Id":5},"relations":{"monitors":["7"],"requiredBy":["3"]}},{"type":"Sensor","id":"6","children":{"Id":6},"relations":{"monitors":["8"],"requiredBy":["4"]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Route" : [ {
"type" : "Route",
"id" : "1",
"children" : {
"Id" : 3,
"Active" : false
},
"relations" : {
"exit" : "2",
"requires" : [ "3" ]
}
}, {
"type" : "Route",
"id" : "4",
"children" : {
"Id" : 4,
"Active" : false
},
"relations" : {
"requires" : [ "5" ]
}
} ],
"Region" : [ {
"type" : "Region",
"id" : "6",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Segment",
"id" : "7",
"children" : {
"Id" : 7,
"Length" : 0,
"Semaphore" : [ {
"type" : "Semaphore",
"id" : "2",
"children" : {
"Id" : 2,
"Signal" : "GO"
}
} ]
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ "8" ]
}
}, {
"type" : "Segment",
"id" : "8",
"children" : {
"Id" : 8,
"Length" : 0
},
"relations" : {
"monitoredBy" : [ "5" ],
"connectsTo" : [ ]
}
} ],
"Sensor" : [ {
"type" : "Sensor",
"id" : "3",
"children" : {
"Id" : 5
},
"relations" : {
"monitors" : [ "7" ],
"requiredBy" : [ "1" ]
}
}, {
"type" : "Sensor",
"id" : "5",
"children" : {
"Id" : 6
},
"relations" : {
"monitors" : [ "8" ],
"requiredBy" : [ "4" ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Route":[{"type":"Route","id":"3","children":{"Id":3,"Active":false},"relations":{"exit":"2","requires":["5"]}},{"type":"Route","id":"4","children":{"Id":4,"Active":false},"relations":{"requires":["6"]}}],"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Segment","id":"7","children":{"Id":7,"Length":0,"Semaphore":[{"type":"Semaphore","id":"2","children":{"Id":2,"Signal":"GO"}}]},"relations":{"monitoredBy":["5"],"connectsTo":["8"]}},{"type":"Segment","id":"8","children":{"Id":8,"Length":0},"relations":{"monitoredBy":["6"],"connectsTo":[]}}],"Sensor":[{"type":"Sensor","id":"5","children":{"Id":5},"relations":{"monitors":["7"],"requiredBy":["3"]}},{"type":"Sensor","id":"6","children":{"Id":6},"relations":{"monitors":["8"],"requiredBy":["4"]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Region" : [ {
"type" : "Region",
"id" : "1",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Switch",
"id" : "2",
"children" : {
"Id" : 2,
"CurrentPosition" : "STRAIGHT"
},
"relations" : {
"monitoredBy" : [ "3" ],
"connectsTo" : [ ],
"positions" : [ ]
}
} ],
"Sensor" : [ {
"type" : "Sensor",
"id" : "3",
"children" : {
"Id" : 3
},
"relations" : {
"monitors" : [ "2" ],
"requiredBy" : [ ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Switch","id":"2","children":{"Id":2,"CurrentPosition":"STRAIGHT"},"relations":{"monitoredBy":["3"],"connectsTo":[],"positions":[]}}],"Sensor":[{"type":"Sensor","id":"3","children":{"Id":3},"relations":{"monitors":["2"],"requiredBy":[]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Region" : [ {
"type" : "Region",
"id" : "1",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Switch",
"id" : "2",
"children" : {
"Id" : 2,
"CurrentPosition" : "STRAIGHT"
},
"relations" : {
"monitoredBy" : [ ],
"connectsTo" : [ ],
"positions" : [ ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Switch","id":"2","children":{"Id":2,"CurrentPosition":"STRAIGHT"},"relations":{"monitoredBy":[],"connectsTo":[],"positions":[]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Route" : [ {
"type" : "Route",
"id" : "1",
"children" : {
"Id" : 4,
"Active" : false,
"SwitchPosition" : [ {
"type" : "SwitchPosition",
"id" : "2",
"children" : {
"Id" : 6,
"Position" : "STRAIGHT"
},
"relations" : {
"target" : "3"
}
} ]
},
"relations" : {
"requires" : [ ],
"entry" : "4"
}
} ],
"Region" : [ {
"type" : "Region",
"id" : "5",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Segment",
"id" : "6",
"children" : {
"Id" : 2,
"Length" : 0,
"Semaphore" : [ {
"type" : "Semaphore",
"id" : "4",
"children" : {
"Id" : 3,
"Signal" : "GO"
}
} ]
},
"relations" : {
"monitoredBy" : [ ],
"connectsTo" : [ ]
}
}, {
"type" : "Switch",
"id" : "3",
"children" : {
"Id" : 5,
"CurrentPosition" : "DIVERGING"
},
"relations" : {
"monitoredBy" : [ ],
"connectsTo" : [ ],
"positions" : [ "2" ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Route":[{"type":"Route","id":"4","children":{"Id":4,"Active":false,"SwitchPosition":[{"type":"SwitchPosition","id":"6","children":{"Id":6,"Position":"STRAIGHT"},"relations":{"target":"5"}}]},"relations":{"requires":[],"entry":"3"}}],"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Segment","id":"2","children":{"Id":2,"Length":0,"Semaphore":[{"type":"Semaphore","id":"3","children":{"Id":3,"Signal":"GO"}}]},"relations":{"monitoredBy":[],"connectsTo":[]}},{"type":"Switch","id":"5","children":{"Id":5,"CurrentPosition":"DIVERGING"},"relations":{"monitoredBy":[],"connectsTo":[],"positions":["6"]}}]}}]}}
\ No newline at end of file
{
"type" : "RailwayContainer",
"id" : "0",
"children" : {
"Route" : [ {
"type" : "Route",
"id" : "1",
"children" : {
"Id" : 4,
"Active" : false,
"SwitchPosition" : [ {
"type" : "SwitchPosition",
"id" : "2",
"children" : {
"Id" : 6,
"Position" : "STRAIGHT"
},
"relations" : {
"target" : "3"
}
} ]
},
"relations" : {
"requires" : [ ],
"entry" : "4"
}
} ],
"Region" : [ {
"type" : "Region",
"id" : "5",
"children" : {
"Id" : 1,
"TrackElement" : [ {
"type" : "Segment",
"id" : "6",
"children" : {
"Id" : 2,
"Length" : 0,
"Semaphore" : [ {
"type" : "Semaphore",
"id" : "4",
"children" : {
"Id" : 3,
"Signal" : "GO"
}
} ]
},
"relations" : {
"monitoredBy" : [ ],
"connectsTo" : [ ]
}
}, {
"type" : "Switch",
"id" : "3",
"children" : {
"Id" : 5,
"CurrentPosition" : "DIVERGING"
},
"relations" : {
"monitoredBy" : [ ],
"connectsTo" : [ ],
"positions" : [ "2" ]
}
} ]
}
} ]
}
}
\ No newline at end of file
{"type":"RailwayContainer","id":"container","children":{"Route":[{"type":"Route","id":"4","children":{"Id":4,"Active":false,"SwitchPosition":[{"type":"SwitchPosition","id":"6","children":{"Id":6,"Position":"STRAIGHT"},"relations":{"target":"5"}}]},"relations":{"requires":[],"entry":"3"}}],"Region":[{"type":"Region","id":"1","children":{"Id":1,"TrackElement":[{"type":"Segment","id":"2","children":{"Id":2,"Length":0,"Semaphore":[{"type":"Semaphore","id":"3","children":{"Id":3,"Signal":"GO"}}]},"relations":{"monitoredBy":[],"connectsTo":[]}},{"type":"Switch","id":"5","children":{"Id":5,"CurrentPosition":"DIVERGING"},"relations":{"monitoredBy":[],"connectsTo":[],"positions":["6"]}}]}}]}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
aspect CustomUID {
protected String RailwayElement.customID() {
return String.valueOf(getId());
}
protected String RailwayContainer.customID() {
return "container"; // there is only one container
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment