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

add test to trigger SwitchMonitored bug (unsuccessful)

parent 098eb937
Branches
No related tags found
No related merge requests found
Showing
with 249 additions and 0 deletions
<?xml version="1.0" encoding="ASCII"?>
<railway:RailwayContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:railway="http://www.semanticweb.org/ontologies/2015/trainbenchmark">
<routes id="3" requires="//@regions.0/@sensors.0" exit="//@regions.0/@elements.0/@semaphores.0"/>
<routes id="4" requires="//@regions.0/@sensors.1"/>
<regions id="1">
<sensors id="5" monitors="//@regions.0/@elements.0"/>
<sensors id="6" monitors="//@regions.0/@elements.1"/>
<elements xsi:type="railway:Segment" id="7" monitoredBy="//@regions.0/@sensors.0" connectsTo="//@regions.0/@elements.1">
<semaphores id="2" signal="GO"/>
</elements>
<elements xsi:type="railway:Segment" id="8" monitoredBy="//@regions.0/@sensors.1"/>
</regions>
</railway:RailwayContainer>
{"k":"NT","id":"0","t":"RailwayContainer","c":{"Region":{"k":"List","c":[{"k":"NT","id":"1","t":"Region","c":{"TrackElement":{"k":"List","c":[{"k":"NT","id":"2","t":"Switch","c":{"_impl_monitoredBy":{"k":"RefList","c":[{"k":"i","t":"Sensor","v":3}]},"_impl_connectsTo":{"k":"RefList","c":[]},"CurrentPosition":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"STRAIGHT"},"_impl_positions":{"k":"RefList","c":[]},"Id":{"k":"t","t":"int","v":2}}}]},"Id":{"k":"t","t":"int","v":1},"Sensor":{"k":"List","c":[{"k":"NT","id":"3","t":"Sensor","c":{"_impl_requiredBy":{"k":"RefList","c":[]},"Id":{"k":"t","t":"int","v":3},"_impl_monitors":{"k":"RefList","c":[{"k":"i","t":"TrackElement","v":2}]}}}]}}}]},"Route":{"k":"List","c":[]}}}
\ No newline at end of file
{"k":"NT","t":"RailwayContainer","c":{"Region":{"k":"List","c":[{"k":"NT","t":"Region","c":{"TrackElement":{"k":"List","c":[{"k":"NT","t":"Switch","c":{"CurrentPosition":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"STRAIGHT"},"ConnectedElement":{"k":"List","c":[]},"Id":{"k":"t","t":"int","v":2}}}]},"Id":{"k":"t","t":"int","v":1},"Sensor":{"k":"List","c":[{"k":"NT","t":"Sensor","c":{"MonitoredElement":{"k":"List","c":[{"k":"NT","t":"SwitchRef","c":{"Value":{"k":"t","t":"int","v":2}}}]},"Id":{"k":"t","t":"int","v":3}}}]}}}]},"Route":{"k":"List","c":[]}}}
\ 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
<?xml version="1.0" ?><graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.1/graphml.xsd"><key id="labelV" for="node" attr.name="labelV" attr.type="string"></key><key id="currentPosition" for="node" attr.name="currentPosition" attr.type="string"></key><key id="labelE" for="edge" attr.name="labelE" attr.type="string"></key><graph id="G" edgedefault="directed"><node id="0"><data key="labelV">Region</data></node><node id="1"><data key="labelV">Switch</data><data key="currentPosition">STRAIGHT</data></node><node id="3"><data key="labelV">Sensor</data></node><edge id="4" source="0" target="3"><data key="labelE">sensors</data></edge><edge id="5" source="0" target="1"><data key="labelE">elements</data></edge><edge id="6" source="1" target="3"><data key="labelE">monitoredBy</data></edge></graph></graphml>
\ No newline at end of file
<?xml version="1.0" encoding="ASCII"?>
<railway:RailwayContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:railway="http://www.semanticweb.org/ontologies/2015/trainbenchmark">
<regions id="1">
<sensors id="3" monitors="//@regions.0/@elements.0"/>
<elements xsi:type="railway:Switch" id="2" monitoredBy="//@regions.0/@sensors.0" currentPosition="STRAIGHT"/>
</regions>
</railway:RailwayContainer>
{"k":"NT","id":"0","t":"RailwayContainer","c":{"Region":{"k":"List","c":[{"k":"NT","id":"1","t":"Region","c":{"TrackElement":{"k":"List","c":[{"k":"NT","id":"2","t":"Switch","c":{"_impl_monitoredBy":{"k":"RefList","c":[]},"_impl_connectsTo":{"k":"RefList","c":[]},"CurrentPosition":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"STRAIGHT"},"_impl_positions":{"k":"RefList","c":[]},"Id":{"k":"t","t":"int","v":2}}}]},"Id":{"k":"t","t":"int","v":1},"Sensor":{"k":"List","c":[]}}}]},"Route":{"k":"List","c":[]}}}
\ No newline at end of file
{"k":"NT","t":"RailwayContainer","c":{"Region":{"k":"List","c":[{"k":"NT","t":"Region","c":{"TrackElement":{"k":"List","c":[{"k":"NT","t":"Switch","c":{"CurrentPosition":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"STRAIGHT"},"ConnectedElement":{"k":"List","c":[]},"Id":{"k":"t","t":"int","v":2}}}]},"Id":{"k":"t","t":"int","v":1},"Sensor":{"k":"List","c":[]}}}]},"Route":{"k":"List","c":[]}}}
\ 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
<?xml version="1.0" ?><graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.1/graphml.xsd"><key id="labelV" for="node" attr.name="labelV" attr.type="string"></key><key id="currentPosition" for="node" attr.name="currentPosition" attr.type="string"></key><key id="labelE" for="edge" attr.name="labelE" attr.type="string"></key><graph id="G" edgedefault="directed"><node id="0"><data key="labelV">Region</data></node><node id="1"><data key="labelV">Switch</data><data key="currentPosition">STRAIGHT</data></node><edge id="3" source="0" target="1"><data key="labelE">elements</data></edge></graph></graphml>
\ No newline at end of file
<?xml version="1.0" encoding="ASCII"?>
<railway:RailwayContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:railway="http://www.semanticweb.org/ontologies/2015/trainbenchmark">
<regions id="1">
<elements xsi:type="railway:Switch" id="2" currentPosition="STRAIGHT"/>
</regions>
</railway:RailwayContainer>
{"k":"NT","id":"0","t":"RailwayContainer","c":{"Region":{"k":"List","c":[{"k":"NT","id":"1","t":"Region","c":{"TrackElement":{"k":"List","c":[{"k":"NT","id":"2","t":"Segment","c":{"_impl_monitoredBy":{"k":"RefList","c":[]},"_impl_connectsTo":{"k":"RefList","c":[]},"Id":{"k":"t","t":"int","v":2},"Semaphore":{"k":"List","c":[{"k":"NT","id":"3","t":"Semaphore","c":{"Signal":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Signal","v":"GO"},"Id":{"k":"t","t":"int","v":3}}}]}}},{"k":"NT","id":"5","t":"Switch","c":{"_impl_monitoredBy":{"k":"RefList","c":[]},"_impl_connectsTo":{"k":"RefList","c":[]},"CurrentPosition":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"DIVERGING"},"_impl_positions":{"k":"RefList","c":[]},"Id":{"k":"t","t":"int","v":5}}}]},"Id":{"k":"t","t":"int","v":1},"Sensor":{"k":"List","c":[]}}}]},"Route":{"k":"List","c":[{"k":"NT","id":"4","t":"Route","c":{"_impl_requires":{"k":"RefList","c":[]},"SwitchPosition":{"k":"List","c":[{"k":"NT","id":"6","t":"SwitchPosition","c":{"Position":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"STRAIGHT"},"Id":{"k":"t","t":"int","v":6},"_impl_target":{"k":"i","t":"Switch","v":5}}}]},"_impl_entry":{"k":"i","t":"Semaphore","v":3},"Id":{"k":"t","t":"int","v":4},"_impl_exit":{"k":"i","t":"Semaphore","v":null}}}]}}}
\ No newline at end of file
{"k":"NT","t":"RailwayContainer","c":{"Region":{"k":"List","c":[{"k":"NT","t":"Region","c":{"TrackElement":{"k":"List","c":[{"k":"NT","t":"Segment","c":{"ConnectedElement":{"k":"List","c":[]},"Id":{"k":"t","t":"int","v":2},"Semaphore":{"k":"List","c":[{"k":"NT","t":"Semaphore","c":{"Signal":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Signal","v":"GO"},"Id":{"k":"t","t":"int","v":3}}}]}}},{"k":"NT","t":"Switch","c":{"CurrentPosition":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"DIVERGING"},"ConnectedElement":{"k":"List","c":[]},"Id":{"k":"t","t":"int","v":5}}}]},"Id":{"k":"t","t":"int","v":1},"Sensor":{"k":"List","c":[]}}}]},"Route":{"k":"List","c":[{"k":"NT","t":"Route","c":{"SwitchPosition":{"k":"List","c":[{"k":"NT","t":"SwitchPosition","c":{"Target":{"k":"NT","t":"SwitchRef","c":{"Value":{"k":"t","t":"int","v":5}}},"Position":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"STRAIGHT"},"Id":{"k":"t","t":"int","v":6}}}]},"Entry":{"k":"Opt","c":{"k":"NT","t":"SemaphoreRef","c":{"Value":{"k":"t","t":"int","v":3}}}},"RequiredSensor":{"k":"List","c":[]},"Id":{"k":"t","t":"int","v":4},"Exit":{"k":"Opt"}}}]}}}
\ 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
<?xml version="1.0" ?><graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.1/graphml.xsd"><key id="labelV" for="node" attr.name="labelV" attr.type="string"></key><key id="currentPosition" for="node" attr.name="currentPosition" attr.type="string"></key><key id="position" for="node" attr.name="position" attr.type="string"></key><key id="signal" for="node" attr.name="signal" attr.type="string"></key><key id="labelE" for="edge" attr.name="labelE" attr.type="string"></key><graph id="G" edgedefault="directed"><node id="0"><data key="labelV">Region</data></node><node id="1"><data key="labelV">Segment</data></node><node id="3"><data key="labelV">Semaphore</data><data key="signal">GO</data></node><node id="6"><data key="labelV">Route</data></node><node id="8"><data key="labelV">Switch</data><data key="currentPosition">DIVERGING</data></node><node id="11"><data key="labelV">SwitchPosition</data><data key="position">STRAIGHT</data></node><edge id="2" source="0" target="1"><data key="labelE">elements</data></edge><edge id="5" source="1" target="3"><data key="labelE">semaphores</data></edge><edge id="7" source="6" target="3"><data key="labelE">entry</data></edge><edge id="10" source="0" target="8"><data key="labelE">elements</data></edge><edge id="13" source="11" target="8"><data key="labelE">target</data></edge><edge id="14" source="6" target="11"><data key="labelE">follows</data></edge></graph></graphml>
\ No newline at end of file
<?xml version="1.0" encoding="ASCII"?>
<railway:RailwayContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:railway="http://www.semanticweb.org/ontologies/2015/trainbenchmark">
<routes id="4" entry="//@regions.0/@elements.0/@semaphores.0">
<follows id="6" position="STRAIGHT" target="//@regions.0/@elements.1"/>
</routes>
<regions id="1">
<elements xsi:type="railway:Segment" id="2">
<semaphores id="3" signal="GO"/>
</elements>
<elements xsi:type="railway:Switch" id="5" currentPosition="DIVERGING" positions="//@routes.0/@follows.0"/>
</regions>
</railway:RailwayContainer>
{"k":"NT","id":"0","t":"RailwayContainer","c":{"Region":{"k":"List","c":[{"k":"NT","id":"1","t":"Region","c":{"TrackElement":{"k":"List","c":[{"k":"NT","id":"2","t":"Segment","c":{"_impl_monitoredBy":{"k":"RefList","c":[]},"_impl_connectsTo":{"k":"RefList","c":[]},"Id":{"k":"t","t":"int","v":2},"Semaphore":{"k":"List","c":[{"k":"NT","id":"3","t":"Semaphore","c":{"Signal":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Signal","v":"GO"},"Id":{"k":"t","t":"int","v":3}}}]}}},{"k":"NT","id":"5","t":"Switch","c":{"_impl_monitoredBy":{"k":"RefList","c":[]},"_impl_connectsTo":{"k":"RefList","c":[]},"CurrentPosition":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"DIVERGING"},"_impl_positions":{"k":"RefList","c":[]},"Id":{"k":"t","t":"int","v":5}}}]},"Id":{"k":"t","t":"int","v":1},"Sensor":{"k":"List","c":[]}}}]},"Route":{"k":"List","c":[{"k":"NT","id":"4","t":"Route","c":{"_impl_requires":{"k":"RefList","c":[]},"SwitchPosition":{"k":"List","c":[{"k":"NT","id":"6","t":"SwitchPosition","c":{"Position":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"STRAIGHT"},"Id":{"k":"t","t":"int","v":6},"_impl_target":{"k":"i","t":"Switch","v":5}}}]},"_impl_entry":{"k":"i","t":"Semaphore","v":3},"Id":{"k":"t","t":"int","v":4},"_impl_exit":{"k":"i","t":"Semaphore","v":null}}}]}}}
\ No newline at end of file
{"k":"NT","t":"RailwayContainer","c":{"Region":{"k":"List","c":[{"k":"NT","t":"Region","c":{"TrackElement":{"k":"List","c":[{"k":"NT","t":"Segment","c":{"ConnectedElement":{"k":"List","c":[]},"Id":{"k":"t","t":"int","v":2},"Semaphore":{"k":"List","c":[{"k":"NT","t":"Semaphore","c":{"Signal":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Signal","v":"GO"},"Id":{"k":"t","t":"int","v":3}}}]}}},{"k":"NT","t":"Switch","c":{"CurrentPosition":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"DIVERGING"},"ConnectedElement":{"k":"List","c":[]},"Id":{"k":"t","t":"int","v":5}}}]},"Id":{"k":"t","t":"int","v":1},"Sensor":{"k":"List","c":[]}}}]},"Route":{"k":"List","c":[{"k":"NT","t":"Route","c":{"SwitchPosition":{"k":"List","c":[{"k":"NT","t":"SwitchPosition","c":{"Target":{"k":"NT","t":"SwitchRef","c":{"Value":{"k":"t","t":"int","v":5}}},"Position":{"k":"enum","t":"de.tudresden.inf.st.train.jastadd.ast.Position","v":"STRAIGHT"},"Id":{"k":"t","t":"int","v":6}}}]},"Entry":{"k":"Opt","c":{"k":"NT","t":"SemaphoreRef","c":{"Value":{"k":"t","t":"int","v":3}}}},"RequiredSensor":{"k":"List","c":[]},"Id":{"k":"t","t":"int","v":4},"Exit":{"k":"Opt"}}}]}}}
\ 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
<?xml version="1.0" ?><graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.1/graphml.xsd"><key id="labelV" for="node" attr.name="labelV" attr.type="string"></key><key id="currentPosition" for="node" attr.name="currentPosition" attr.type="string"></key><key id="position" for="node" attr.name="position" attr.type="string"></key><key id="signal" for="node" attr.name="signal" attr.type="string"></key><key id="labelE" for="edge" attr.name="labelE" attr.type="string"></key><graph id="G" edgedefault="directed"><node id="0"><data key="labelV">Region</data></node><node id="1"><data key="labelV">Segment</data></node><node id="3"><data key="labelV">Semaphore</data><data key="signal">GO</data></node><node id="6"><data key="labelV">Route</data></node><node id="8"><data key="labelV">Switch</data><data key="currentPosition">DIVERGING</data></node><node id="11"><data key="labelV">SwitchPosition</data><data key="position">STRAIGHT</data></node><edge id="2" source="0" target="1"><data key="labelE">elements</data></edge><edge id="5" source="1" target="3"><data key="labelE">semaphores</data></edge><edge id="7" source="6" target="3"><data key="labelE">entry</data></edge><edge id="10" source="0" target="8"><data key="labelE">elements</data></edge><edge id="13" source="11" target="8"><data key="labelE">target</data></edge><edge id="14" source="6" target="11"><data key="labelE">follows</data></edge></graph></graphml>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment