edu.vt.marian.search
Interface NodeClassManager
- All Known Implementing Classes:
- ControlledStringClassManager, UncontrolledStringClassManager
- public abstract interface NodeClassManager
- extends ClassManager
ClassManager for any class of nodes.
- See Also:
ClassManager,
LinkClassManager,
InfoDesc,
WtdObjSet
|
Method Summary |
java.util.Vector |
idsToObjects(java.util.Vector ids)
Do idToObject() for a bunch of FullIDs. |
java.lang.Object |
idToObject(edu.vt.marian.common.FullID id)
Return the Java Object that implements the instance of this class
picked out by id. |
boolean |
isInClass(edu.vt.marian.common.FullID id)
Is this the ID of an instance currently in this class? |
WtdObjSet |
match(edu.vt.marian.common.InfoDesc description)
Create (or find in the local cache) a set of matches to description. |
match
public WtdObjSet match(edu.vt.marian.common.InfoDesc description)
- Create (or find in the local cache) a set of matches to description.
- Parameters:
description - An abstract description of a set of nodes
in this class, including their "context":
significant links with other parts of the
collection network.- Returns:
- A WtdObjSet of instances of this class, weighted by how
well they match the description.
isInClass
public boolean isInClass(edu.vt.marian.common.FullID id)
- Is this the ID of an instance currently in this class?
idToObject
public java.lang.Object idToObject(edu.vt.marian.common.FullID id)
- Return the Java Object that implements the instance of this class
picked out by id.
- Parameters:
id - The FullID for an object of this class.- Returns:
- the (Java form of the) real object, or 'null' if id
does not describe an instance currently in this class.
idsToObjects
public java.util.Vector idsToObjects(java.util.Vector ids)
- Do idToObject() for a bunch of FullIDs.
- Parameters:
ids - A Vector of FullIDs for objects of this class.- Returns:
- A Vector of real (Java) objects, in one-to-one
correspondence with their FullIDs in ids.
NOTE: Should a FullID in ids not pick out a valid instance
of this class, the corresponding element of the return
vector is set to 'null'.