This commit is contained in:
portree_kid
2020-06-21 22:55:39 +02:00
parent b841b8560d
commit 063fd049f0
6 changed files with 30 additions and 5 deletions
+18
View File
@@ -212,11 +212,29 @@ async function checkGroundnet(data) {
});
notOkNodes = notOkNodes.concat(invalidParkings);
if (invalidParkings.length===0) {
notOkNodes.push({id:-1, message: 'Parkings valid'});
}
notOkNodes = notOkNodes.concat(overlappingParkings);
if (overlappingParkings.length===0) {
notOkNodes.push({id:-1, message: 'No parkings overlapping'});
}
notOkNodes = notOkNodes.concat(danglingEnds);
if (danglingEnds.length===0) {
notOkNodes.push({id:-1, message: 'No invalid ends'});
}
notOkNodes = notOkNodes.concat(notOkNodesParkings);
if (notOkNodesParkings.length===0) {
notOkNodes.push({id:-1, message: 'Routes from parkings OK'});
}
notOkNodes = notOkNodes.concat(notOkNodesRunways);
if (notOkNodesRunways.length===0) {
notOkNodes.push({id:-1, message: 'Routes from runways OK'});
}
notOkNodes = notOkNodes.concat(wrongPushbackRoutes);
if (wrongPushbackRoutes.length===0) {
notOkNodes.push({id:-1, message: 'Pushback routes OK'});
}
// check1(graph);
// check2();
// this.postMessage(['progress', 1]);