The Assimilation Project  based on Assimilation version 1.1.7.1474836767
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

 domain
 
 nodetype
 
 time_create_iso8601
 
 time_create_ms
 

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 graphnodes.py.

Constructor & Destructor Documentation

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

Definition at line 69 of file graphnodes.py.

Member Function Documentation

def cma.graphnodes.GraphNode.__meta_keyattrs__ ( )
static

Definition at line 82 of file graphnodes.py.

def cma.graphnodes.GraphNode.__meta_labels__ (   cls)

Definition at line 87 of file graphnodes.py.

Referenced by cma.store.Store.node().

Here is the caller graph for this function:

def cma.graphnodes.GraphNode.__str__ (   self)

Definition at line 115 of file graphnodes.py.

def cma.graphnodes.GraphNode.clean_graphnodes ( )
static

Definition at line 65 of file graphnodes.py.

def cma.graphnodes.GraphNode.factory (   kwargs)
static

Definition at line 60 of file graphnodes.py.

References cma.graphnodes.nodeconstructor().

Here is the call graph for this function:

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

Definition at line 133 of file graphnodes.py.

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

Here is the caller graph for this function:

def cma.graphnodes.GraphNode.initclasstypeobj (   store,
  nodetype 
)
static
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 graphnodes.py.

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 graphnodes.py.

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

Definition at line 100 of file graphnodes.py.

References cma.graphnodes.GraphNode._baseinitfinished.

def cma.graphnodes.GraphNode.update_attributes (   self,
  other 
)

Definition at line 105 of file graphnodes.py.

References cma.graphnodes.GraphNode.nodetype.

Field Documentation

dictionary cma.graphnodes.GraphNode.classmap = {}
static

Definition at line 57 of file graphnodes.py.

cma.graphnodes.GraphNode.domain

Definition at line 71 of file graphnodes.py.

cma.graphnodes.GraphNode.nodetype

Definition at line 72 of file graphnodes.py.

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

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

Definition at line 55 of file graphnodes.py.

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

Definition at line 56 of file graphnodes.py.

cma.graphnodes.GraphNode.time_create_iso8601

Definition at line 78 of file graphnodes.py.

cma.graphnodes.GraphNode.time_create_ms

Definition at line 79 of file graphnodes.py.


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