-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prohibit collect-formula & collect-expression mix
Mixing these instructions is not handled by the analysis, so the initializer validates the input for this invalid setup. Issue #183
- Loading branch information
Showing
8 changed files
with
188 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0"?> | ||
|
||
<opsa-mef> | ||
<define-initiating-event name="Trigger" event-tree="InstructionMix"/> | ||
<define-event-tree name="InstructionMix"> | ||
<define-functional-event name="F"/> | ||
<define-sequence name="S"/> | ||
<initial-state> | ||
<fork functional-event="F"> | ||
<path state="on"> | ||
<collect-formula> | ||
<basic-event name="B"/> | ||
</collect-formula> | ||
<collect-expression> | ||
<float value="0.1"/> | ||
</collect-expression> | ||
<sequence name="S"/> | ||
</path> | ||
</fork> | ||
</initial-state> | ||
</define-event-tree> | ||
<model-data> | ||
<define-basic-event name="B"> | ||
<float value="0.5"/> | ||
</define-basic-event> | ||
</model-data> | ||
</opsa-mef> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
|
||
<opsa-mef> | ||
<define-initiating-event name="Trigger" event-tree="InstructionMix"/> | ||
<define-event-tree name="InstructionMix"> | ||
<define-functional-event name="F"/> | ||
<define-functional-event name="G"/> | ||
<define-sequence name="S"/> | ||
<initial-state> | ||
<fork functional-event="F"> | ||
<path state="on"> | ||
<collect-formula> | ||
<basic-event name="B"/> | ||
</collect-formula> | ||
<fork functional-event="G"> | ||
<path state="on"> | ||
<collect-expression> | ||
<float value="0.1"/> | ||
</collect-expression> | ||
<sequence name="S"/> | ||
</path> | ||
</fork> | ||
</path> | ||
</fork> | ||
</initial-state> | ||
</define-event-tree> | ||
<model-data> | ||
<define-basic-event name="B"> | ||
<float value="0.5"/> | ||
</define-basic-event> | ||
</model-data> | ||
</opsa-mef> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0"?> | ||
|
||
<opsa-mef> | ||
<define-initiating-event name="Trigger" event-tree="InstructionMix"/> | ||
<define-event-tree name="ExpressionOnly"> | ||
<define-functional-event name="G"/> | ||
<define-sequence name="SE"/> | ||
<initial-state> | ||
<fork functional-event="G"> | ||
<path state="on"> | ||
<collect-expression> | ||
<float value="0.1"/> | ||
</collect-expression> | ||
<sequence name="SE"/> | ||
</path> | ||
</fork> | ||
</initial-state> | ||
</define-event-tree> | ||
<define-event-tree name="InstructionMix"> | ||
<define-functional-event name="F"/> | ||
<define-sequence name="S"> | ||
<event-tree name="ExpressionOnly"/> | ||
</define-sequence> | ||
<initial-state> | ||
<fork functional-event="F"> | ||
<path state="on"> | ||
<collect-formula> | ||
<basic-event name="B"/> | ||
</collect-formula> | ||
<sequence name="S"/> | ||
</path> | ||
</fork> | ||
</initial-state> | ||
</define-event-tree> | ||
<model-data> | ||
<define-basic-event name="B"> | ||
<float value="0.5"/> | ||
</define-basic-event> | ||
</model-data> | ||
</opsa-mef> |