Next Phase Event Implemented
This commit is contained in:
1 parent
99f4227d6c
commit
03e628de53
10 files changed
+160
-34
No files matched your search
@@ -51,18 +51,27 @@ function newProtocolNode () {
|
||||
}
|
||||
return formula
|
||||
}
|
||||
case 'Next Phase Event':
|
||||
{
|
||||
let event = {
|
||||
type: node.type,
|
||||
subType: node.subType,
|
||||
name: node.name,
|
||||
situations: []
|
||||
}
|
||||
for (let m = 0; m < node.situations.length; m++) {
|
||||
let situation = getProtocolNode(node.situations[m])
|
||||
node.situations.push(situation)
|
||||
}
|
||||
return event
|
||||
}
|
||||
case 'Phase': {
|
||||
let phase = {
|
||||
type: node.type,
|
||||
subType: node.subType,
|
||||
name: node.name,
|
||||
formula: getProtocolNode(node.formula),
|
||||
situations: []
|
||||
}
|
||||
|
||||
for (let m = 0; m < node.situations.length; m++) {
|
||||
let situation = getProtocolNode(node.situations[m])
|
||||
phase.situations.push(situation)
|
||||
nextPhaseEvent: getProtocolNode(node.nextPhaseEvent)
|
||||
}
|
||||
return phase
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user