PLPSolutionView
The ProbLog counterpart of SolutionView: a VBox rendering one Solution in the tuProlog IDE's custom "Solutions" tab (see PLPIDEApplication), colored by a "led" Circle like SolutionView but additionally showing, for Solution.Yes, the solution's computed it.unibo.tuprolog.solve.probability and -- when a it.unibo.tuprolog.bdd.BinaryDecisionDiagram was recorded for it (see it.unibo.tuprolog.solve.hasBinaryDecisionDiagram) -- a button that opens it, rendered as a Graphviz graph, in a GraphRenderView dialog. Use of to build the right concrete subclass for a given solution.
Inheritors
Types
Renders a Solution.Halt: a plain "timeout." notice if Solution.Halt.exception is a it.unibo.tuprolog.solve.exception.TimeOutException, otherwise the exception message followed by one label per frame of it.unibo.tuprolog.solve.exception.ResolutionException.logicStackTrace; either way the probability label is left blank and the BDD button hidden, since a halted computation carries neither a probability nor a diagram.
Renders a Solution.No: just the "no." status, with the probability label blank and the BDD button hidden.
Renders a Solution.Yes: the solved goal, one AssignmentView per variable substitution, the solution's it.unibo.tuprolog.solve.probability (as a percentage), and -- if it.unibo.tuprolog.solve.hasBinaryDecisionDiagram is true for this solution -- a visible btnShowBinaryDecisionDiagram button wired to onShowBinaryDecisionDiagramPressed.
Properties
Functions
Opens a modal Alert dialog showing this solution's it.unibo.tuprolog.solve.binaryDecisionDiagram, rendered as Graphviz DOT source inside a GraphRenderView; a no-op if the solution has no diagram attached. Invoked when btnShowBinaryDecisionDiagram is pressed on a YesViewPLP.