probability
The probability value assigned to this object via setProbability, or DEFAULT_PROBABILITY (certainty) if none was ever assigned. Any it.unibo.tuprolog.utils.Taggable object can carry a probability this way; in practice this is read off it.unibo.tuprolog.core.Terms representing probabilistic facts/clauses (e.g. by :solve-problog's knowledge-base primitives) and off Solutions produced by a probabilistic solver.
Example:
val fact = Rule.of(Atom.of("hello"), Atom.of("world"))
fact.probability // == DEFAULT_PROBABILITY (1.0), since it was never set
fact.setProbability(0.5).probability // == 0.5Content copied to clipboard
JS-callable equivalent of Taggable.probability.