Constructor
new Tracer(arguments)
Parameters:
Name | Type | Description |
---|---|---|
arguments |
An optional stack corresponding to the tracer's context. |
- Source:
Members
nodes
A map keeping trace of which designated objects already have nodes.
- Source:
simplify
Whether to simplify the trees
- Source:
tracerContext
The context in which the tracer operates (a stack).
- Source:
Methods
getAndNode()
Gets a new instance of an "and" node.
- Source:
Returns:
A new "and" node
getObjectNode(dob)
Gets a new instance of an object node.
Parameters:
Name | Type | Description |
---|---|---|
dob |
The designated object that will be contained inside the node |
- Source:
Returns:
The object node. If an object node already exists for this
designated object, it is reused. Otherwise, a new object node is created.
getOrNode()
Gets a new instance of an "or" node.
- Source:
Returns:
A new "or" node
getSubTracer(o)
Gets an instance of a sub-tracer from this tracer.
Parameters:
Name | Type | Description |
---|---|---|
o |
Object | An object to append at the end of the current tracer's context |
- Source:
getUnknownNode()
Gets a new instance of an "unknown" node.
- Source:
Returns:
A new "unknown" node
setSimplify(b)
Sets whether the trees produced by the tracer should be simplified.
Parameters:
Name | Type | Description |
---|---|---|
b |
boolean | Set to true to simplify trees, false otherwise |
- Source: