|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents the entire pandimensional space of all Facet structures. The Facets are normal to each other; in other words, there is one dimension in the FacetSpace for each facet added to it, and motion along one dimension does not cause motion along other dimensions. This allows the user to move fluidly from one Selection to another, within the FacetSpace, much like Wonka's Great Glass Elevator.
The job of a FacetSpace implementation is essentially to register and provide its various Facets, and ensure consistency between Selections. Implementations may want to cache Selections, synchronize access for dynamic facet structures, take charge of ref generation in Selections, etc.
This version of FacetMap forces a FacetSpace to have explicit dimensionality -- that is, dimensions are predefined, assigned and indexed. Future versions may allow implicit facet structures, or a more generic method of organizing facet structures.
| Method Summary | |
void |
addFacet(Facet s)
Appends the given Taxonomy to this FacetSpace. |
Facet |
createFacet(java.lang.String id,
java.lang.String title,
Heading root)
Creates a new Facet structure suitable for adding to this FacetSpace. |
Spectrum |
createSpectrum(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle,
int min,
int max)
Creates a new Spectrum facet structure suitable for adding to this FacetSpace. |
Taxonomy |
createTaxonomy(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle)
Creates a new Taxonomy facet structure suitable for adding to this FacetSpace. |
Facet |
getFacet(int index)
Returns the Facet at the given index. |
Facet |
getFacet(java.lang.String id)
Returns the Facet with the given identifier. |
int |
getFacetCount()
Returns the number of dimensions in this FacetSpace. |
Spectrum |
getSpectrum(java.lang.String id)
Returns the Spectrum with the given identifier. |
Taxonomy |
getTaxonomy(java.lang.String id)
Returns the Taxonomy with the given identifier. |
java.lang.String |
getVersion()
Version ID for state integrity checking. |
int |
indexOf(Facet f)
Returns the index number of the dimension the Facet occupies. |
| Method Detail |
public java.lang.String getVersion()
public Taxonomy createTaxonomy(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle)
throws DataException
DataException
public Spectrum createSpectrum(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle,
int min,
int max)
throws DataException
DataException
public Facet createFacet(java.lang.String id,
java.lang.String title,
Heading root)
throws DataException
DataException - if the root Heading is of a
type not supported by the implementation.public int getFacetCount()
public Facet getFacet(int index)
throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
public Facet getFacet(java.lang.String id)
throws UnknownReferenceException
UnknownReferenceExceptionpublic int indexOf(Facet f)
public Taxonomy getTaxonomy(java.lang.String id)
throws UnknownReferenceException
UnknownReferenceException
public Spectrum getSpectrum(java.lang.String id)
throws UnknownReferenceException
UnknownReferenceExceptionpublic void addFacet(Facet s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||