Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
adt2amas
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PARTIES
tools
adt2amas
Commits
cb6b2e0e
Commit
cb6b2e0e
authored
5 years ago
by
Jaime Arias
Browse files
Options
Downloads
Patches
Plain Diff
Add all the gate as nodeType
parent
e9b5be68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cosyverif/adtree.fml
+43
-7
43 additions, 7 deletions
cosyverif/adtree.fml
cosyverif/treasure_hunters.grml
+3
-2
3 additions, 2 deletions
cosyverif/treasure_hunters.grml
with
46 additions
and
9 deletions
cosyverif/adtree.fml
+
43
−
7
View file @
cb6b2e0e
...
...
@@ -2,6 +2,10 @@
<!-- ================================================ -->
<!-- Attack-Defence Tree definition -->
<!-- -->
<!-- Notes : -->
<!-- 1) functions ? -->
<!-- 2) conditions ? -->
<!-- ================================================ -->
<formalism
name=
"ADTree"
xmlns=
"http://cosyverif.org/ns/formalism"
>
...
...
@@ -15,7 +19,11 @@
<nodeType
name=
"AND"
/>
<nodeType
name=
"SAND"
/>
<nodeType
name=
"CAND"
/>
<nodeType
name=
"SCAND"
/>
<nodeType
name=
"OR"
/>
<nodeType
name=
"SOR"
/>
<nodeType
name=
"COR"
/>
<nodeType
name=
"SCOR"
/>
<!-- leaf object attributes -->
<leafAttribute
name=
"name"
refType=
"leaf"
defaultValue=
""
/>
...
...
@@ -31,13 +39,6 @@
<child
refname=
"attribute"
minOccurs=
"0"
/>
</complexAttribute>
<!-- OR object attributes -->
<leafAttribute
name=
"name"
refType=
"OR"
defaultValue=
""
/>
<leafAttribute
name=
"role"
refType=
"OR"
defaultValue=
"ATTACK"
/>
<complexAttribute
name=
"attributes"
refType=
"OR"
>
<child
refname=
"attribute"
minOccurs=
"0"
/>
</complexAttribute>
<!-- SAND object attributes -->
<leafAttribute
name=
"name"
refType=
"SAND"
defaultValue=
""
/>
<leafAttribute
name=
"role"
refType=
"SAND"
defaultValue=
"ATTACK"
/>
...
...
@@ -52,6 +53,41 @@
<child
refname=
"attribute"
minOccurs=
"0"
/>
</complexAttribute>
<!-- SCAND object attributes -->
<leafAttribute
name=
"name"
refType=
"SCAND"
defaultValue=
""
/>
<leafAttribute
name=
"role"
refType=
"SCAND"
defaultValue=
"ATTACK"
/>
<complexAttribute
name=
"attributes"
refType=
"SCAND"
>
<child
refname=
"attribute"
minOccurs=
"0"
/>
</complexAttribute>
<!-- OR object attributes -->
<leafAttribute
name=
"name"
refType=
"OR"
defaultValue=
""
/>
<leafAttribute
name=
"role"
refType=
"OR"
defaultValue=
"ATTACK"
/>
<complexAttribute
name=
"attributes"
refType=
"OR"
>
<child
refname=
"attribute"
minOccurs=
"0"
/>
</complexAttribute>
<!-- SOR object attributes -->
<leafAttribute
name=
"name"
refType=
"SOR"
defaultValue=
""
/>
<leafAttribute
name=
"role"
refType=
"SOR"
defaultValue=
"ATTACK"
/>
<complexAttribute
name=
"attributes"
refType=
"SOR"
>
<child
refname=
"attribute"
minOccurs=
"0"
/>
</complexAttribute>
<!-- COR object attributes -->
<leafAttribute
name=
"name"
refType=
"COR"
defaultValue=
""
/>
<leafAttribute
name=
"role"
refType=
"COR"
defaultValue=
"ATTACK"
/>
<complexAttribute
name=
"attributes"
refType=
"COR"
>
<child
refname=
"attribute"
minOccurs=
"0"
/>
</complexAttribute>
<!-- SCOR object attributes -->
<leafAttribute
name=
"name"
refType=
"SCOR"
defaultValue=
""
/>
<leafAttribute
name=
"role"
refType=
"SCOR"
defaultValue=
"ATTACK"
/>
<complexAttribute
name=
"attributes"
refType=
"SCOR"
>
<child
refname=
"attribute"
minOccurs=
"0"
/>
</complexAttribute>
<!-- gates attributes -->
<complexAttribute
name=
"attribute"
>
<child
refname=
"name"
minOccurs=
"1"
maxOccurs=
"1"
/>
...
...
This diff is collapsed.
Click to expand it.
cosyverif/treasure_hunters.grml
+
3
−
2
View file @
cb6b2e0e
<?xml version="1.0" encoding="UTF-8"?>
<model
formalismUrl=
"http://formalisms.cosyverif.org/adtree.fml"
xmlns=
"http://cosyverif.org/ns/model"
>
<model
formalismUrl=
"http://formalisms.cosyverif.org/adtree.fml"
xmlns=
"http://cosyverif.org/ns/model"
>
<!-- root gate -->
<attribute
name=
"root"
></attribute>
<attribute
name=
"root"
>
9
</attribute>
<!-- ================================================ -->
<!-- Leaves -->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment