Public Member Functions | Package Functions

cogitant.jni.Graph Class Reference

Graph. More...

Inheritance diagram for cogitant.jni.Graph:

List of all members.

Public Member Functions

Type objectType ()
 Type of the object.
Collection
< cogitant.base.GraphObject
nodes ()
 Nodes of the graph.
int size ()
 Size of the graph.
cogitant.base.GraphObject root ()
 Root of the graph.
cogitant.base.GraphObject findByIdentifier (String id)
 Return a node with this identifier.
void clear ()
 Clear the graph.
void deleteObjects (cogitant.base.GraphSubset nodes, boolean pendingvertices)
void removeProperty (int prop)
 Remove the prop property from the GraphObjects of the Graph.
cogitant.base.GraphSubset newSubset ()
 Create an empty subset of nodes.
void subsetAddConceptsByIndividualMarkers (cogitant.base.GraphSubset gs, Collection< String > indm, boolean identifiers, cogitant.base.GraphObject parent)
void subsetAddRelationsByNeighbourhood (cogitant.base.GraphSubset gs, cogitant.base.GraphObject parent)
String toString ()
boolean equals (Object o)

Package Functions

 Graph (cogitant.jni.Environment environment, int id, int inrule)

Detailed Description

Graph.

JNI implementation.


Constructor & Destructor Documentation

cogitant.jni.Graph.Graph ( cogitant.jni.Environment  environment,
int  id,
int  inrule 
) [package]

Member Function Documentation

void cogitant.jni.Graph.clear ( )

Clear the graph.

After the call, the graph is empty.

Implements cogitant.base.Graph.

References cogitant.jni.EnvironmentObject.lock(), and cogitant.jni.EnvironmentObject.unlock().

void cogitant.jni.Graph.deleteObjects ( cogitant.base.GraphSubset  nodes,
boolean  pendingvertices 
)
boolean cogitant.jni.Graph.equals ( Object  o)
cogitant.base.GraphObject cogitant.jni.Graph.findByIdentifier ( String  id)

Return a node with this identifier.

Parameters:
idan identifier (from a file).
Returns:
a node such as the value of Property.IDENTIFIER is id (or null).

Implements cogitant.base.Graph.

cogitant.base.GraphSubset cogitant.jni.Graph.newSubset ( )

Create an empty subset of nodes.

Implements cogitant.base.Graph.

References cogitant.jni.GraphSubset.setGraph().

Collection<cogitant.base.GraphObject> cogitant.jni.Graph.nodes ( )

Nodes of the graph.

Implements cogitant.base.Graph.

Referenced by cogitant.jni.Graph.deleteObjects().

Type cogitant.jni.Graph.objectType ( )

Type of the object.

Implements cogitant.base.EnvironmentObject.

void cogitant.jni.Graph.removeProperty ( int  prop)

Remove the prop property from the GraphObjects of the Graph.

Implements cogitant.base.Graph.

cogitant.base.GraphObject cogitant.jni.Graph.root ( )

Root of the graph.

Implements cogitant.base.Graph.

int cogitant.jni.Graph.size ( )

Size of the graph.

i.e. number of nodes.

Implements cogitant.base.Graph.

void cogitant.jni.Graph.subsetAddConceptsByIndividualMarkers ( cogitant.base.GraphSubset  gs,
Collection< String >  indm,
boolean  identifiers,
cogitant.base.GraphObject  parent 
)
void cogitant.jni.Graph.subsetAddRelationsByNeighbourhood ( cogitant.base.GraphSubset  gs,
cogitant.base.GraphObject  parent 
)
String cogitant.jni.Graph.toString ( )