| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
chart.Chart --+
|
FeatureChart --+
|
InstantiateVarsChart
A specialized chart that 'instantiates' variables whose names start
with '@', by replacing them with unique new variables. In particular,
whenever a complete edge is added to the chart, any variables in the
edge's lhs whose names start with '@' will be replaced by
unique new Variables.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Construct a new chart. The chart is initialized with the leaf edges corresponding to the terminal leaves.
|
Clear the chart.
|
Add a new edge to the chart.
@type edge: L{EdgeI}
@param edge: The new edge
@type child_pointer_lists: C(sequence} of C{tuple} of L{EdgeI}
@param child_pointer_lists: A sequence of lists of the edges that
were used to form this edge. This list is used to reconstruct
the trees (or partial trees) that are associated with C{edge}.
@rtype: C{bool}
@return: True if this operation modified the chart. In
particular, return true iff the chart did not already
contain C{edge}, or if it did not already associate
C{child_pointer_lists} with C{edge}.
|
If the edge is a FeatureTreeEdge, and it is complete, then instantiate all variables whose names start with '@', by replacing them with unique new variables. Note that instantiation is done in-place, since the parsing algorithms might already hold a reference to the edge for future use. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:48 2011 | http://epydoc.sourceforge.net |