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 ASceneComputes 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 voidRuns an operation on a subcommand-specific number of JAIFs.static voidstatic voidTests that X-X=0, for several scenes X.
-
Method Details
-
main
Runs 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
Computes 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
Tests that X-X=0, for several scenes X.- Throws:
IOException- if there is trouble with IO
-