jdsl.core.api
Interface Accessor
- All Known Subinterfaces:
- Edge, Face, Locator, Position, Vertex
- public interface Accessor
All JDSL core containers provide a way to access their internal structure;
Accessor
is the interface that embodies this concept. Containers
guarantee not to change the binding between an Accessor and its
element, unless the user explicitly requests a change
(PositionalContainer.swap(.) and various *Container.replace*(.)
are the only methods that change the binding).
An Accessor provides only the minimal guarantee of being able to
retrieve an element. All container interfaces are actually written in terms
of the two subinterfaces of Accessor: Position and Locator.
PositionalContainers use Positions, and they add topological
information (i.e., adjacency information) to the element-binding
provided by Accessor. KeyBasedContainers use Locators, and they
add a key to Accessor's element.
- Version:
- $Id: Accessor.java,v 1.8 2000/06/15 19:08:44 gs Exp $
- Author:
- Mark Handy (mdh), Luca Vismara (lv)
- See Also:
Position
,
Locator
Method Summary |
java.lang.Object |
element()
Gets the element currently associated with this
accessor. |
element
public java.lang.Object element()
- Gets the element currently associated with this
accessor.
- Returns:
- the element currently stored at this accessor