public class TrackedRepertoryGrid extends RepertoryGrid implements KnowledgeSource
Attributes | Tracked grids can use a TrackedAttribute. They are constructed, however, with the default RGAttribute; a TrackedAttribute only replaces it when a type descriptor (of any kind) is provided, either by the user or by some automated means. |
XML generation | TrackedAttributes are generated with more detail. |
conceptual basis | TrackedGrid's have a concept-relation-concept pattern associated with them, and are therefore connected to specific objects in specific conceptual graphs using a locator. |
source file | For convenience, the source file (if any) can be saved with a TrackedGrid |
Modifier and Type | Field and Description |
---|---|
Concept |
conceptOne
Concept corresponding to the element aspect
|
ObjectLocator |
conceptOneLocator
Locator for the concept corresponding to the element aspect
|
Concept |
conceptTwo
Concept corresponding to the attribute aspect
|
ObjectLocator |
conceptTwoLocator
Locator for the concept corresponding to the attribute aspect
|
GNode |
relation
Either a relation or an actor
|
ObjectLocator |
relationLocator
Locator for either a relation or an actor
|
File |
sourceAbsoluteFile
The source of this grid in the file system,
null if there isn't one. |
attributeLabel, attributes, elementLabel, name, relationLabel, valuetype
Constructor and Description |
---|
TrackedRepertoryGrid()
Construct a new, empty grid with no labels and no cells.
|
TrackedRepertoryGrid(Concept c1,
GNode r,
Concept c2,
RGValue type) |
TrackedRepertoryGrid(File f) |
TrackedRepertoryGrid(String eLabel,
String rLabel,
String aLabel,
RGValue type)
Creates a new tracked repertory grid, with no rows or columns.
|
Modifier and Type | Method and Description |
---|---|
AbstractTypeDescriptor[] |
findTypeDescriptors(String term)
Look for the given type descriptor in the knowledge source, however it may be represented.
|
Graph[] |
getAllGraphs()
Get all the graphs known to this knowledge source.
|
AbstractTypeDescriptor[] |
getAllTypeDescriptors()
Get all the type descriptors known to this knowledge source.
|
File |
getFile() |
void |
replaceAttribute(RGAttribute oldattr,
RGAttribute newattr)
Substitutes a new RGAttribute (or a subclass) for the current attribute.
|
void |
setFile(File f)
Associate the given file with this grid.
|
addAttribute, addAttribute, addElement, addElement, deleteAttribute, deleteAttribute, deleteCell, deleteElement, deleteElement, getAttribute, getAttributes, getCell, getCell, getCells, getElement, getElements, getName, getQuestionLabel, gridComplete, gridEmpty, setAttributeLabel, setElementLabel, setName, setRelationLabel, setValueType, summary, summary, toCXTString
public File sourceAbsoluteFile
null
if there isn't one.public Concept conceptOne
public Concept conceptTwo
public GNode relation
public ObjectLocator conceptOneLocator
ObjectLocator
public ObjectLocator conceptTwoLocator
ObjectLocator
public ObjectLocator relationLocator
ObjectLocator
public TrackedRepertoryGrid(String eLabel, String rLabel, String aLabel, RGValue type)
eLabel
- element label, telling what kind of thing the elements arerLabel
- relationship label, denoting relationship between elements and attributesaLabel
- attribute label, telling what kind of thing the attributes aretype
- The type of value to be associated with each element/attribute pair.
Currently only RGBooleanValue types are fully supported; use others at your own risk!public TrackedRepertoryGrid()
public TrackedRepertoryGrid(File f)
public File getFile()
public void setFile(File f)
f
- the file to be associated; no assumption made about its existence or permissions.public void replaceAttribute(RGAttribute oldattr, RGAttribute newattr)
public AbstractTypeDescriptor[] findTypeDescriptors(String term)
KnowledgeSource
findTypeDescriptors
in interface KnowledgeSource
term
- a phrase that may have type descriptors.public AbstractTypeDescriptor[] getAllTypeDescriptors()
getAllTypeDescriptors
in interface KnowledgeSource
public Graph[] getAllGraphs()
getAllGraphs
in interface KnowledgeSource