Add an element to the element collection.
Returns all resolutions of the given reference.
Returns all resolutions of the given reference. Considers all possible values of each of the elements on the path and all elements with each name on the path. Along with each possible resolution, it returns the contingency (values of elements along the path) required to make that resolution be the one.
Assert the given evidence on the given reference.
Assert the given evidence on the given reference. The third argument is an optional contingency. This method makes sure to assert the evidence on all possible resolutions of the reference.
Assert the given evidence associated with references to elements in the collection.
Returns a reference element representing the single-valued reference.
Returns a reference element representing the single-valued reference. This method produces a new reference element every time it is called.
Returns a reference element representing the aggregate applied to the multi-valued reference.
Gets the first element in the chain contained by the reference, together with an optional remaining reference.
Gets the first element in the chain contained by the reference, together with an optional remaining reference. If the reference is simply a name, the element is the referred to element and the remainder is None.
Returns true if the reference is resolvable on this collection.
Returns true if the reference is resolvable on this collection. This will always use the most recent element with the reference name.
All named elements in this collection.
Remove an element from the element collection.
Remove any evidence on the given reference.
Remove any evidence on the given reference. The second argument is an optional contingency. This method makes sure to remove evidence from all possible resolutions of the reference. Note: this method removes all conditions and constraints, no matter when they were added.
The universe this element collection is part of.
The universe this element collection is part of. Defaults to the current universe at the time the ElementCollection is created. Override this if you want a different universe.
All named elements in this collection.
All named elements in this collection.
(Since version 2.3.0.0) Use namedElements instead
An element collection contains elements. It can be used to find the elements in it by reference.