-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* more work on pivot (Ryan) * pivot is essentially done but finishing it causes cyclic imports * code formatting and styling #38 * Rename AQL stuff in tests to CQL. #146 * Address @marcosh's comments from #128. #146
- Loading branch information
Showing
25 changed files
with
575 additions
and
466 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
schema Net = literal : empty { | ||
entities | ||
Input Place Trans Output | ||
foreign_keys | ||
place : Input -> Place | ||
trans : Input -> Trans | ||
place : Output -> Place | ||
trans : Output -> Trans | ||
} | ||
|
||
/* | ||
* p1 ->t1-> p2 ->t2-> p3 | ||
*/ | ||
instance N = literal : Net { | ||
generators | ||
p1 p2 p3 : Place | ||
t1 t2 : Trans | ||
i1 i2 : Input | ||
o1 o2 : Output | ||
equations | ||
i1.place = p1 | ||
i1.trans = t1 | ||
o1.trans = t1 | ||
o1.place = p2 | ||
|
||
i2.place = p2 | ||
i2.trans = t2 | ||
o2.trans = t2 | ||
o2.place = p3 | ||
|
||
options | ||
interpret_as_algebra = true | ||
} | ||
|
||
/* | ||
entities | ||
i1 i2 o1 o2 p1 p2 p3 t1 t2 | ||
foreign_keys | ||
trans : o2 -> t2 | ||
place : o2 -> p3 | ||
place : o1 -> p2 | ||
trans : o1 -> t1 | ||
trans : i2 -> t2 | ||
place : i2 -> p2 | ||
place : i1 -> p1 | ||
trans : i1 -> t1 | ||
*/ | ||
//schema intN = pivot N | ||
|
||
//mapping proj = pivot N // intN -> Net | ||
|
||
//instance J = pivot N | ||
|
||
//instance k = sigma proj J // = I |
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
Oops, something went wrong.