GraphManager Class Reference

provides an interface to the graph class More...

Inheritance diagram for GraphManager:

Singleton

List of all members.

Public Member Functions

def __new_instance__
 simalar to init but for singleton initializes the class when a new instance is created
def __str__
def __repr__
def getBreakpoints
def setBreakpoints
def getSources
def setSources
def getTargets
def setTargets
def add_breakpoint
def add_breakpoint_id
def add_source
def add_source_id
def add_target
def add_target_id
def graphAppend
 append to the graph all sources and targets found in 'command' plus Source and Target
def get_graph
 returns the current graph instance that contains the current data and command nodes
def set_graph
 Set the graph type,.
def set_builder
 replace the current builders with new ones
def get_builder
def setRunner
 replace the current runner with a new one if runner is None the current runner becomes the default runner of SLIMpy
def get_runner
def flush
 Complement to run , flush uses python objects instead of object IDs to create a command chain also flush performs a clean after a graph run has been performed.
def addBreakPoint
 container: DataContainer add container to set of breakpoints : container is in the graph : the container will always be built even if it breaks a pipe
def __clean__
 for each item in the graph try to remove its data

Public Attributes

 env
 graph
 runner
 builder

Static Public Attributes

tuple breakpoints = property(getBreakpoints, setBreakpoints, "Breakpoints should be a set of breakpoints")
tuple sources = property(getSources, setSources, "Sources's should be a set")
tuple targets = property(getTargets, setTargets, "Targets's should be a set")
tuple graph = property( get_graph, set_graph)
tuple builder = property( get_builder, set_builder )
tuple runner = property( get_runner, setRunner)


Detailed Description

provides an interface to the graph class

Definition at line 42 of file GraphManager.py.


Member Function Documentation

def __new_instance__ (   self,
  name 
)

simalar to init but for singleton initializes the class when a new instance is created

Reimplemented from Singleton.

Definition at line 49 of file GraphManager.py.

def __str__ (   self  ) 

Definition at line 65 of file GraphManager.py.

def __repr__ (   self  ) 

Definition at line 74 of file GraphManager.py.

def getBreakpoints (   self  ) 

Definition at line 77 of file GraphManager.py.

def setBreakpoints (   self,
  value 
)

Definition at line 81 of file GraphManager.py.

def getSources (   self  ) 

Definition at line 85 of file GraphManager.py.

def setSources (   self,
  value 
)

Definition at line 89 of file GraphManager.py.

def getTargets (   self  ) 

Definition at line 93 of file GraphManager.py.

def setTargets (   self,
  value 
)

Definition at line 97 of file GraphManager.py.

def add_breakpoint (   self,
  bp 
)

Definition at line 105 of file GraphManager.py.

def add_breakpoint_id (   self,
  bp_id 
)

Definition at line 110 of file GraphManager.py.

def add_source (   self,
  src 
)

Definition at line 114 of file GraphManager.py.

def add_source_id (   self,
  src_id 
)

Definition at line 119 of file GraphManager.py.

def add_target (   self,
  tgt 
)

Definition at line 123 of file GraphManager.py.

def add_target_id (   self,
  tgt_id 
)

Definition at line 128 of file GraphManager.py.

def graphAppend (   self,
  commpack 
)

append to the graph all sources and targets found in 'command' plus Source and Target

Definition at line 138 of file GraphManager.py.

def get_graph (   self  ) 

returns the current graph instance that contains the current data and command nodes

Definition at line 175 of file GraphManager.py.

def set_graph (   self,
  graph 
)

Set the graph type,.

Precondition:
: graph must be an instance of the SLIMDataStructure type or None

Definition at line 183 of file GraphManager.py.

def set_builder (   self,
  builder 
)

replace the current builders with new ones

Definition at line 192 of file GraphManager.py.

def get_builder (   self  ) 

Definition at line 197 of file GraphManager.py.

def setRunner (   self,
  runner 
)

replace the current runner with a new one if runner is None the current runner becomes the default runner of SLIMpy

Definition at line 210 of file GraphManager.py.

def get_runner (   self  ) 

Definition at line 215 of file GraphManager.py.

def flush (   self,
  target 
)

Complement to run , flush uses python objects instead of object IDs to create a command chain also flush performs a clean after a graph run has been performed.

Definition at line 246 of file GraphManager.py.

def addBreakPoint (   self,
  container 
)

container: DataContainer add container to set of breakpoints : container is in the graph : the container will always be built even if it breaks a pipe

Definition at line 278 of file GraphManager.py.

def __clean__ (   self  ) 

for each item in the graph try to remove its data

Reimplemented from Singleton.

Definition at line 285 of file GraphManager.py.


Member Data Documentation

tuple breakpoints = property(getBreakpoints, setBreakpoints, "Breakpoints should be a set of breakpoints") [static]

Definition at line 101 of file GraphManager.py.

tuple sources = property(getSources, setSources, "Sources's should be a set") [static]

Definition at line 102 of file GraphManager.py.

tuple targets = property(getTargets, setTargets, "Targets's should be a set") [static]

Definition at line 103 of file GraphManager.py.

tuple graph = property( get_graph, set_graph) [static]

Definition at line 186 of file GraphManager.py.

tuple builder = property( get_builder, set_builder ) [static]

Definition at line 202 of file GraphManager.py.

tuple runner = property( get_runner, setRunner) [static]

Definition at line 219 of file GraphManager.py.

env

Definition at line 54 of file GraphManager.py.

Definition at line 56 of file GraphManager.py.

Definition at line 62 of file GraphManager.py.

Definition at line 63 of file GraphManager.py.


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

Generated on Sun Aug 10 09:11:12 2008 for SLIMpy by  doxygen 1.5.6