Class SceneOps
java.lang.Object
org.checkerframework.afu.scenelib.util.SceneOps
Algebraic operations on scenes.
Also includes a main(String[])
method that lets these operations be performed from
the command line.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AScene
Compute the difference of two scenes, that is, a scene containing all and only those insertion specifications that exist in the first but not in the second.static void
Run an operation on a subcommand-specific number of JAIFs.static void
static void
Test that X-X=0, for several scenes X.
-
Method Details
-
main
Run an operation on a subcommand-specific number of JAIFs. Currently the only available subcommand is "diff", which must be the first of three arguments, followed in order by the "minuend" and the "subtrahend" (seediff(AScene, AScene)
). If successful, the diff subcommand writes the scene it calculates toSystem.out
.- Throws:
IOException
- if there is trouble reading a file
-
diff
Compute the difference of two scenes, that is, a scene containing all and only those insertion specifications that exist in the first but not in the second.- Parameters:
s1
- the "minuend"s2
- the "subtrahend"- Returns:
- s1 - s2 ("set difference")
-
testDiffEmpties
public static void testDiffEmpties() -
testDiffSame
Test that X-X=0, for several scenes X.- Throws:
IOException
- if there is trouble with IO
-