SparkseePython  6.0.2
Public Member Functions | List of all members
sparksee.DefaultExport Class Reference

Default implementation for ExportManager class. More...

Inheritance diagram for sparksee.DefaultExport:
Inheritance graph
Collaboration diagram for sparksee.DefaultExport:
Collaboration graph

Public Member Functions

def prepare (self, graph)
 Default implementation of the ExportManager class method Prepare. More...
 
def get_graph (self, graph_export)
 Default implementation of the ExportManager class method GetGraph. More...
 
def release (self)
 Default implementation of the ExportManager class method Release.
 
def __init__ (self)
 Creates a new instance.
 
def get_node_type (self, type, node_export)
 Default implementation of the ExportManager class method GetNodeType. More...
 
def enable_type (self, type)
 Default implementation of the ExportManager class method EnableType. More...
 
def get_node (self, node, node_export)
 Default implementation of the ExportManager class method GetNode. More...
 
def get_edge (self, edge, edge_export)
 Default implementation of the ExportManager class method GetEdge. More...
 
def get_edge_type (self, type, edge_export)
 Default implementation of the ExportManager class method GetEdgeType. More...
 

Detailed Description

Default implementation for ExportManager class.

It uses the default values from GraphExport, NodeExport and EdgeExport to export all node and edge types.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Member Function Documentation

def sparksee.DefaultExport.enable_type (   self,
  type 
)

Default implementation of the ExportManager class method EnableType.

This enables all node and edge types to be exported.

Parameters
type[in] The type to enable.
Returns
TRUE.
def sparksee.DefaultExport.get_edge (   self,
  edge,
  edge_export 
)

Default implementation of the ExportManager class method GetEdge.

This sets the default EdgeExport values and sets the OID as the label. Also, it exports the edge as directed just if the edge is directed.

Parameters
edge[in] An edge.
edge_export[out] The EdgeExport that will store the information.
Returns
TRUE.
def sparksee.DefaultExport.get_edge_type (   self,
  type,
  edge_export 
)

Default implementation of the ExportManager class method GetEdgeType.

This sets de default EdgeExport values.

Parameters
type[in] An edge type.
edge_export[out] The EdgeExport that will store the information.
Returns
TRUE.
def sparksee.DefaultExport.get_graph (   self,
  graph_export 
)

Default implementation of the ExportManager class method GetGraph.

This sets the default GraphExport values and "Graph" as the label.

Parameters
graph_export[out] The GraphExport that will store the information.
Returns
TRUE.
def sparksee.DefaultExport.get_node (   self,
  node,
  node_export 
)

Default implementation of the ExportManager class method GetNode.

This sets the default NodeExport values and sets the OID as the label.

Parameters
node[in] A node.
node_export[out] The NodeExport that will store the information.
Returns
TRUE.
def sparksee.DefaultExport.get_node_type (   self,
  type,
  node_export 
)

Default implementation of the ExportManager class method GetNodeType.

This sets de default NodeExport values.

Parameters
type[in] A node type.
node_export[out] The NodeExport that will store the information.
Returns
TRUE.
def sparksee.DefaultExport.prepare (   self,
  graph 
)

Default implementation of the ExportManager class method Prepare.

Parameters
graphnull