Package org.clafer.ig
package org.clafer.ig
This package provides the solution loop shared by the backends, a port of
claferIG's command line: the REPL, the solutions (the instances of a static
model from Choco, or the traces of a temporal model from Alloy) and their
views.
-
ClassDescriptionA solver of a model behind the solution loop (
Repl): Choco for a static model, whose solutions are instances, and Alloy for a temporal model, whose solutions are traces.A solution as it is shown, with Alloy's XML of it, if any.An instance of a model, as claferIG'sClaferModel.hshas it: its top-level clafers, each with its children.An instance of a clafer: its name, the UID of its clafer, its value (or null) and its children.The tuple of name and ordinal is globally unique.The value of a clafer: a clafer it refers to, an integer or a string.The one loop of the solutions, whatever the backend: claferIG'sCommandLine.hs, with clafersg's commands.The solutions shown so far, the most recent first: those not saved yet and those saved; the Alloy XML of the most recent; and whether they are shown as the changes from the previous snapshot.Shows a solution, which becomes the most recent one.The input of the commands and the outputs: claferIG prints its solutions on the standard output and its unsat cores on the standard error.A solution of a model, claferIG'sClaferSolution: an instance of a static model, or a trace of a dynamic model, whose states are instances, with the state to which its last state loops back.An instance, with its text as its backend prints it, if the backend prints it otherwise than claferIG (nullfor claferIG's text).The views of the solutions, claferIG'sSolutionView.hs: a static model has instances, and a dynamic model has traces, whose states are instances.