Package | Description |
---|---|
cgfca | |
cgif.generate |
Classes for the main translation work for CGIF.
|
cgif.parser |
Classes to support the parsing of CGIF.
|
cgif.parser.javacc |
Classes and files related to the use of the JavaCC parser.
|
charger |
The top level package for the editor.
|
charger.act |
Classes related to actor operations, activation and graph updating.
|
charger.cgx |
Classes for reading and writing CharGer graphs in XML format.
|
charger.layout |
Classes related to automatic re-arranging the appearance of Charger graphs.
|
charger.obj |
Classes for the graph objects themselves.
|
charger.util |
Utility classes for CharGer, dealing with fonts, strings and other general-purpose things.
|
craft |
Classes for the Conceptual Requirements Acquisition and Formation Tool.
|
kb |
Classes for managing CharGer or CRAFT elements as knowledge sources.
|
kb.matching |
Classes to support various matching purposes.
|
repgrid.tracks |
Classes to extend repertory grids into Tracked Repertory Grids.
|
Modifier and Type | Method and Description |
---|---|
static PathFinder |
CG_FCA.generateCGFCA(Graph graph)
The primary method for implementing the CG-FCA algorithms.
|
Modifier and Type | Method and Description |
---|---|
void |
NameGenerator.addNames(Graph graph)
Adds the defining and bound label names from the specified graph to
the list of names to exclude when generating new names.
|
static String |
CGIFWriter.graphToString(Graph graph)
Converts the specified graph into a string representation of the standard
CGIF format without comments.
|
static String |
CGIFWriter.graphToString(Graph graph,
boolean writeComments)
Converts the specified graph into a string representation of the standard
CGIF format.
|
void |
CGIFWriter.write(Graph graph)
Writes the specified graph to the output stream of this class using the
standard CGIF format.
|
protected void |
CGIFWriter.write(Graph graph,
String currIndent)
Writes the specified graph to the output stream of this class using the
standard CGIF format.
|
static void |
CGIFWriter.write(OutputStream out,
Graph graph)
Writes the specified graph to the specified output stream using the
standard CGIF format without comments.
|
static void |
CGIFWriter.write(OutputStream out,
Graph graph,
boolean writeComments)
Writes the specified graph to the specified output stream using the
standard CGIF format.
|
static void |
CGIFWriter.writeToFile(String filename,
Graph graph)
Writes the specified graph to a file with the specified filename using
the standard CGIF format without comments.
|
static void |
CGIFWriter.writeToFile(String filename,
Graph graph,
boolean writeComments)
Writes the specified graph to a file with the specified filename using
the standard CGIF format.
|
Constructor and Description |
---|
NameGenerator(Graph graph)
Creates a new name generator with the names from the specified graph
excluded as possible names to generate.
|
Modifier and Type | Method and Description |
---|---|
Actor |
CGIFParserHelper.makeActor(Graph g,
String name,
ArrayList<String> inputvariables,
ArrayList<String> outputvariables,
String layout)
Processes the actor from cgif07.jj (as converted into CGIFParser.java)
|
Concept |
CGIFParserHelper.makeConcept(Graph g,
String type,
Referent referent,
String layout)
Processes the concept from cgif07.jj (as converted into CGIFParser.java)
|
void |
CGIFParserHelper.makeGenSpecLink(Graph g,
String subtype,
String supertype,
String layout)
Processes the gen spec link from cgif07.jj (as converted into CGIFParser.java)
|
Relation |
CGIFParserHelper.makeRelation(Graph g,
String name,
ArrayList<String> variables,
String layout)
Processes the relation from cgif07.jj (as converted into CGIFParser.java)
|
void |
CGIFParserHelper.makeTypeLabel(Graph g,
String type,
String layout)
Use the CGIF information to instantiate a new type label.
|
Modifier and Type | Field and Description |
---|---|
private Graph |
CGIFParser.topGraph |
Modifier and Type | Method and Description |
---|---|
Graph |
CGIFParser.getGraph() |
Graph |
CGIFParser.graph(Graph enclosingGraph)
parses a graph and adds its elements to .
|
Graph |
CGIFParser.parseCGIFString(String contents) |
Modifier and Type | Method and Description |
---|---|
void |
CGIFParser.actor(Graph g) |
void |
CGIFParser.cgifTerm(Graph g) |
void |
CGIFParser.concept(Graph g) |
Graph |
CGIFParser.graph(Graph enclosingGraph)
parses a graph and adds its elements to .
|
void |
CGIFParser.relation(Graph g) |
Modifier and Type | Field and Description |
---|---|
(package private) Graph |
EditFrame.currentGraph
used so that mousepressed and mousereleased can communicate
|
(package private) Graph |
GraphMetrics.currentGraph |
Graph |
EditFrame.TheGraph
The root graph of the edit frame
|
Modifier and Type | Method and Description |
---|---|
static Graph |
EditManager.innermostContext(Graph outermost,
Point2D.Double p)
Determines the innermost context in which a point lies
|
Modifier and Type | Method and Description |
---|---|
static String |
Global.addGraph(Graph g)
Stores an entry for a given graph
|
void |
EditFrame.attachGraphToFrame(String filename,
Graph startingGraph,
boolean needsSaving)
Attaches a graph to an edit frame, using the filename as a guide.
|
void |
EditManager.clearChanged(Graph g)
Sets every node in the graph to indicate that its changed state is false.
|
int |
GraphMetrics.diameter(Graph g)
Returns the "diameter" of the graph, which is defined as the longest shortest path between any two nodes of the graph.
|
boolean |
EditFrame.entireGraphSelected(Graph g)
Checks to see if the entire (deep) contents of the target context graph
are selected
|
static File |
IOManager.FileToGraph(File absFile,
Graph targetGraph)
Loads a graph from a file to a graph.
|
static File |
IOManager.FileToGraph(File absFile,
Graph targetGraph,
Point2D.Double translateBy)
Loads from a cgx file to a graph.
|
static File |
IOManager.GraphToFile(Graph g,
chargerlib.FileFormat format,
String filename,
Frame owner)
Saves a CharGer Graph to a file.
|
static BufferedImage |
IOManager.graphToImage(Graph g)
Takes an entire graph and formats it as a bitmap image.
|
static GNode |
IOManager.hookUp(GEdge ge,
GraphObjectID oldID,
Graph gr,
boolean keepIDs)
uses the old-to-new mapping to attach an edge to its new ends
|
void |
EditFrame.includeContextMembers(Graph g)
For the given graph, mark its contents (recursively) as selected
|
static Graph |
EditManager.innermostContext(Graph outermost,
Point2D.Double p)
Determines the innermost context in which a point lies
|
protected static void |
IOManager.loadGraph2(BufferedReader f,
Graph targetGraph)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph
|
protected static void |
IOManager.loadGraph2(BufferedReader f,
Graph targetGraph,
Point translateBy)
Loads (reads) a graph from a file in CharGer version 2 format and
attaches it to an existing (i.e., non-null, but possibly empty) graph
|
protected static void |
IOManager.loadGraph3(BufferedReader f,
Graph targetGraph)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph
|
protected static void |
IOManager.loadGraph3(BufferedReader f,
Graph targetGraph,
Point translateBy)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph, using the "new" version 3 format
|
protected static void |
IOManager.loadGraphCGX(File f,
Graph targetGraph,
Point2D.Double translateBy)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph, using the XML version 3.8 format
|
protected static void |
IOManager.loadGraphXML(File f,
Graph target)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph
|
void |
EditFrame.moveSelectedObjects(Graph g,
Point2D.Double delta)
Translates all selected objects by a common x,y displacement.
|
static GraphObject |
IOManager.parseOneObject(String s,
Graph rootGraph,
boolean ignoreOwner,
Point translateBy,
boolean keepIDs)
Tokenizes and parses a string assuming it was written using the
saveGraph2 rules, then creates a correct CharGer graph object based on
what was parsed.
|
static GraphObject |
IOManager.parseOneObject2(String s,
Graph rootGraph,
boolean ignoreNesting,
Point translateBy,
boolean keepIDs)
Tokenizes and parses a string assuming it was written using the saveGraph
rules for version 2, then creates a correct CharGer graph object based on
what was parsed.
|
void |
OperManager.performActionCommitToKB(Graph g)
At the moment, doesn't do anything.
|
void |
OperManager.performActionJoinWithOpenGraphsBROKEN(Graph g)
Performs a join operation between graphs.
|
void |
OperManager.performActionMaxJoinWithOpenGraphs(Graph g)
Operates a maximal join operation between graphs.
|
boolean |
EditManager.performActionSaveGraphWOInteraction(Graph g)
Save a graph in the default form, using the default filename as
destination.
|
static void |
OperManager.performActionValidate(Graph g)
Performs some consistency checks and fixes problems.
|
static void |
Global.removeGraph(Graph g)
Removes the entry for the graph
|
static void |
IOManager.saveGraph2(BufferedWriter writer,
Graph gr)
EditFrame makes the header, but GraphObject makes each object's string
all found in toString methods in the GraphObject classes.
|
static void |
IOManager.saveGraph38XML(BufferedWriter f,
Graph gr)
The output routine for versions 3.8 and later.
|
static void |
IOManager.saveGraph4(OutputStream os,
Graph gr)
EditFrame makes the header, but GraphObject makes each object's string
all found in toString methods in the GraphObject classes.
|
static void |
IOManager.saveGraphAsBitmapImage(Graph g,
chargerlib.FileFormat format,
File f)
Uses the ImageIO methods to write the graph in the given format This
overwrites the file; use chooseViaFileSaveDialog if you need the user to
confirm overwriting.
|
static void |
IOManager.saveGraphAsTextFormat(Graph g,
chargerlib.FileFormat format,
File chosenOne)
Save as one of the text or export formats.
|
static void |
IOManager.saveGraphAsVectorGraphic(Graph g,
chargerlib.FileFormat format,
String filename)
Uses the ImageIO methods to write the graph in pdf, svg or eps format.
|
private static void |
IOManager.saveGraphCGIF2007(BufferedWriter f,
Graph gr,
boolean includeCharGerInfo) |
protected void |
EditFrame.setSelectedGraphObjects(Graph g,
Rectangle2D.Double r,
boolean select)
For all graph objects in a graph, mark each as selected if it lies within
the rect.
|
static ArrayList<GraphObject> |
IOManager.StringToGraph(String s,
Graph targetGraph,
Point translateBy,
boolean keepIDs)
Loads a graph from a CharGer formatted string
|
Constructor and Description |
---|
EditFrame(File graphFile,
Graph g,
boolean needsSaving)
Creates a new editing window based on the filename being a suffix-ed CG
file.
|
GraphMetrics(Graph g)
Instantiate a set of metrics for the given graph.
|
Modifier and Type | Field and Description |
---|---|
private Graph |
GraphUpdater.GraphToUpdate |
Modifier and Type | Method and Description |
---|---|
private void |
GraphUpdater.setGraph(Graph g) |
static void |
GraphUpdater.shutdownAllActors(Graph g)
For a given graph, stop all its actors.
|
static void |
GraphUpdater.startupAllActors(Graph g)
For a given graph, start up all its actors.
|
void |
GraphUpdater.updateGraph(Graph g)
For all concepts or graphs in a graph, update each of them.
|
Modifier and Type | Field and Description |
---|---|
private Graph |
CGXParser._topLevelGraph |
Modifier and Type | Method and Description |
---|---|
Graph |
CGXParser.getParsedGraph() |
Modifier and Type | Method and Description |
---|---|
static String |
CGXGenerator.generateXML(Graph gr)
Prepares the entire graph in XML form.
|
static String |
CGXGenerator.GraphXML(Graph graph,
String indent)
String-ifies graph with objects in an order that has no internal forward
references, using XML format.
|
void |
CGXParser.parseCGXMLCG(Graph graph)
Assumes that the Document has already been built.
|
void |
CGXParser.parseCGXMLGraphTagElement(org.w3c.dom.Element graphelem,
Graph g)
Handle the "graph" tag.
|
static ArrayList<GraphObject> |
CGXParser.parseForCopying(String cgxmlString,
Graph g)
Factory method for setting up a parser for a list of graph objects from a
string.
|
static boolean |
CGXParser.parseForNewGraph(InputStream is,
Graph g)
Factory method for setting up a parser for a new graph from a stream.
|
static void |
CGXParser.parseForNewGraph(String xmlString,
Graph g)
Factory method for setting up a parser for a new graph from a string.
|
Modifier and Type | Field and Description |
---|---|
protected Graph |
GraphLayout.graph |
Modifier and Type | Method and Description |
---|---|
boolean |
SpringGraphLayout.performLayoutOnContext(Graph g)
Invokes the spring algorithm recursively on any nested graph.
|
Constructor and Description |
---|
GraphLayout(Graph g)
Create an instance of a layout manager.
|
SimpleGraphLayout(Graph g,
Graphics2D graphics) |
SpringGraphLayout(Graph g) |
Modifier and Type | Field and Description |
---|---|
Graph |
GraphObject.ownerGraph
The innermost enclosing graph in which this object logically lies; null
if in the outermost graph
|
Modifier and Type | Method and Description |
---|---|
static Graph |
GraphObject.findDominantContext(ArrayList nodeList)
Find the dominant context for a given collection of objects, defined as
the one partially-included context.
|
Graph[] |
Graph.getAllGraphs()
Get all the graphs known to this knowledge source.
|
Graph |
GraphObject.getOutermostGraph()
Find the graph that is the outermost graph of the given object.
|
Graph |
GraphObject.getOwnerGraph()
Find the most immediate enclosing graph.
|
Modifier and Type | Method and Description |
---|---|
private void |
GraphObjectIterator.addGraphObjects(Graph g)
Adds objects from a graph to the collection to return (in ArrayList v),
based on GraphObjectToMatch or KindToMatch
|
private void |
Graph.graphConstructor(Graph g) |
boolean |
Graph.nestedWithin(Graph gouter)
Determines whether this graph is nested (at any level) within a given graph.
|
boolean |
GraphObject.putInCorrectContext(Graph g,
GraphObject go) |
static boolean |
GraphObject.putInCorrectContext(Graph g,
GraphObject go,
Point2D.Double newPos)
Puts an object in its correct logical context, constrained to be nested
in graph g.
|
void |
GraphObject.setOwnerGraph(Graph g)
Set the owner of this graph.
|
static void |
Coref.updateAllCorefsForCharger(Graph g) |
Constructor and Description |
---|
DeepIterator(Graph g) |
DeepIterator(Graph g,
GraphObject.Kind kind) |
DeepIterator(Graph g,
GraphObject go) |
Graph(Graph g)
Constructs a new Graph object, with a given parent graph within which it
is enclosed.
|
GraphObjectIterator(Graph g,
GraphObject go,
GraphObject.Kind kind,
boolean isDeep)
Collect graph objects to form an iteration.
|
ShallowIterator(Graph g) |
ShallowIterator(Graph g,
GraphObject.Kind kind) |
ShallowIterator(Graph g,
GraphObject go) |
Modifier and Type | Method and Description |
---|---|
static ArrayList<ArrayList<GNode>> |
CGUtil.getConnectedComponents(Graph g)
Used in determining connected components.
|
static boolean |
CGUtil.verifyIntegrityOfGraph(Graph g)
Performs various "sanity checks" to make sure a graph is formed and/or constructed properly.
|
Modifier and Type | Method and Description |
---|---|
static String |
Reporter.natLang(Graph g,
boolean includeDefinitions) |
Modifier and Type | Method and Description |
---|---|
Graph[] |
KnowledgeManager.findGraphsWithTypeHierarchy()
Locate any graphs that have type labels.
|
Graph[] |
KnowledgeManager.getAllGraphs() |
Graph[] |
KnowledgeSource.getAllGraphs()
Get all the graphs known to this knowledge source.
|
static Graph |
ConceptManager.makeTypeHierarchy()
Create a graph in a window that reflects the inferred type hierarchy.
|
Modifier and Type | Method and Description |
---|---|
private static void |
ConceptManager.addNewTypeLabels(Graph g)
Adds any new type labels (i.e., not already in the type label graph) to
the given type hierarchy graph.
|
private static void |
ConceptManager.fillInGlossaryDefinitions(Graph g)
Fills in a hierarchy graph with definitions found from any source.
|
static TypeLabel[] |
ConceptManager.findBySynset(net.didion.jwnl.data.Synset s,
Graph g)
Seeks out nodes one of whose type descriptors contains the synset given.
|
static ArrayList<BinaryTuple> |
ConceptManager.getBinaryRelationTuples(Graph g,
ConceptManager.ConceptsToInclude selector)
Gathers together all the binary relation tuples in a given graph.
|
static void |
ConceptManager.linkHypernyms(TypeLabel t,
net.didion.jwnl.data.Synset s,
Graph h)
Looks for type labels possessing synsets that are hypernyms (either
direct or indirect) of the given synset.
|
static void |
ConceptManager.linkTypeLabels(Graph h) |
Modifier and Type | Field and Description |
---|---|
private Graph |
BinaryRelationMatch._masterGraph |
private Graph |
BinaryRelationMatch._toMatchGraph |
Modifier and Type | Method and Description |
---|---|
ArrayList<MatchedBinaryTuple> |
BinaryRelationMatch.makeBinaryTuples(Graph masterG)
Mimics getBinaryRelationTuples, but constructs a vector of BinaryTuple objects.
|
void |
BinaryRelationMatch.matchAGraph(Graph toMatchGraph,
String toMatchName) |
void |
BinaryRelationMatch.setupMaster(Graph masterG)
Load the matcher with an entry for each binary relation.
|
Constructor and Description |
---|
BinaryRelationMatch(Graph masterG,
String masterName)
Set up a matcher to be used by matchBinaryRelations/1
|
BinaryRelationMatch(Graph masterG,
String masterName,
Graph toMatchGraph,
String toMatchName)
Create a match between a master graph and a match candidate.
|
Modifier and Type | Method and Description |
---|---|
Graph[] |
TrackedRepertoryGrid.getAllGraphs()
Get all the graphs known to this knowledge source.
|