The Assimilation Project  based on Assimilation version
cma.graphnodes.GraphNode Class Reference
Inheritance diagram for cma.graphnodes.GraphNode:
Collaboration diagram for cma.graphnodes.GraphNode:

Public Member Functions

def __init__ (self, domain, time_create_ms=None, time_create_iso8601=None)
def __meta_labels__ (cls)
def post_db_init (self)
def update_attributes (self, other)
def __str__ (self)
def get (self, attrstring, valueifnotfound=None)
def JSON (self, includemap=None, excludemap=None)

Static Public Member Functions

def factory (kwargs)
def clean_graphnodes ()
def __meta_keyattrs__ ()
def initclasstypeobj (store, nodetype)

Data Fields


Static Public Attributes

 REESC = re.compile(r'\\')
 REQUOTE = re.compile(r'"')
dictionary classmap = {}

Detailed Description

GraphNode is the base class for all our 'normal' graph nodes.

Definition at line 51 of file

Constructor & Destructor Documentation

def cma.graphnodes.GraphNode.__init__ (   self,
  time_create_ms = None,
  time_create_iso8601 = None 

Definition at line 69 of file

Member Function Documentation

def cma.graphnodes.GraphNode.__meta_keyattrs__ ( )

Definition at line 82 of file

def cma.graphnodes.GraphNode.__meta_labels__ (   cls)

Definition at line 87 of file

Referenced by

Here is the caller graph for this function:

def cma.graphnodes.GraphNode.__str__ (   self)

Definition at line 115 of file

def cma.graphnodes.GraphNode.clean_graphnodes ( )

Definition at line 65 of file

def cma.graphnodes.GraphNode.factory (   kwargs)

Definition at line 60 of file

References cma.graphnodes.nodeconstructor().

Here is the call graph for this function:

def cma.graphnodes.GraphNode.get (   self,
  valueifnotfound = None 

Definition at line 133 of file

Referenced by cma.systemnode.SystemNode.__delitem__().

Here is the caller graph for this function:

def cma.graphnodes.GraphNode.initclasstypeobj (   store,
Initialize things for our "nodetype"
This involves
 - Ensuring that there's an index for this class
 - Caching the class that goes with this nodetype
 - setting up all of our IS_A objects, including the root object if necessary,
 - updating the store's uniqueindexmap[nodetype]
 - updating the store's classkeymap[nodetype]
 This should eliminate the need to do any of these things for any class.

Definition at line 223 of file

def cma.graphnodes.GraphNode.JSON (   self,
  includemap = None,
  excludemap = None 
Output this object according to JSON rules. We take advantage
of the fact that Neo4j restricts what kind of objects we can
have as Node properties.

Definition at line 175 of file

def cma.graphnodes.GraphNode.post_db_init (   self)
Set node creation time

Definition at line 100 of file

References cma.graphnodes.GraphNode._baseinitfinished.

def cma.graphnodes.GraphNode.update_attributes (   self,

Definition at line 105 of file

References cma.graphnodes.GraphNode.nodetype.

Field Documentation

dictionary cma.graphnodes.GraphNode.classmap = {}

Definition at line 57 of file


Definition at line 71 of file


Definition at line 72 of file

Referenced by cma.graphnodes.GraphNode.update_attributes().

cma.graphnodes.GraphNode.REESC = re.compile(r'\\')

Definition at line 55 of file

cma.graphnodes.GraphNode.REQUOTE = re.compile(r'"')

Definition at line 56 of file


Definition at line 78 of file


Definition at line 79 of file

The documentation for this class was generated from the following file: