Node

class Node[D, I, R](val datum: D, val jtms: JTMS[D, I, R], var isAssumption: Boolean, var isContradictory: Boolean)

Wrapper for one possible belief in the TMS.

Type Params
D

Type of data associated with each node of a JTMS.

I

Type of informants in the external system.

R

Type of rules which may be associated with each node of a JTMS.

Value Params
datum

Datum associated with this node.

isAssumption

The explicit designation that a belief is an assumption. Note that setting this flag only does not mean that the TMS will choose to believe it: an assumption must be explicitly activated using enableAssumption, and can be subsequently disbelieved with retractAssumption.

isContradictory

The explicit designation that a belief is a contradiction. Contradictions are never believed by the JTMS. The JTMS will inform the external system (via JTMS#enqueueProcedure) when a contradictory node becomes believed for the external system to resolve (such as with assumptionsOfNode).

jtms

JTMS with this node is associated.

Constructor

The constructor is internal to the implementation, and should only be called from the JTMS#createNode method (or some overriding of that method). However there is no sensible package restriction which will still allow extensions of the overall TMS/node system.

class Object
trait Matchable
class Any

Value members

Concrete fields

Whether the current node is :IN. A value of true corresponds to a label of :IN in the old Lisp structure; false, to :OUT.

Whether the current node is :IN. A value of true corresponds to a label of :IN in the old Lisp structure; false, to :OUT.

List of justification relations which may be enabled by belief in this node.

List of justification relations which may be enabled by belief in this node.

val datum: D

Rules that should be triggered when node goes in.

Rules that should be triggered when node goes in.

val index: Int

Unique nueric identifier for this node, unique among nodes of the same JTMS.

Unique nueric identifier for this node, unique among nodes of the same JTMS.

val jtms: JTMS[D, I, R]

Possible justifications.

Possible justifications.

Rules that should be triggered when node goes out.

Rules that should be triggered when node goes out.

If this node is believed by the JTMS, this member refers to the evidence for this belief.

If this node is believed by the JTMS, this member refers to the evidence for this belief.