Table of Contents

Module: oslParser chimera/oslParser.py

Imported modules   
import StringIO
import operator
from oslLexer import *
import re
import string
import types
Functions   
applyFunctions
oslTestAttr
registerTest
  applyFunctions 
applyFunctions (
        s,
        graphs,
        gFunc,
        sFunc,
        vFunc,
        )

Base on an object specification string, apply functions to selected graphs, subgraphs and vertices in the given graph list. The graph list can either be a simple list, or a dictionary whose values are lists of graphs. Any of the supplied functions may be None.

  oslTestAttr 
oslTestAttr (
        obj,
        attrName,
        op,
        value,
        )

oslTestAttr Compares an attribute of this instance with the given value attrName is the name of the attribute op is the string representation of the comparison operator value is the constant (string) value to compare with

  registerTest 
registerTest ( subject,  testFunc )

Exceptions   
TypeError, "Cannot register test for non-attr non-class non-type"
Classes   

Parser


Table of Contents

This document was automatically generated on Wed May 19 13:57:04 2004 by HappyDoc version 2.0.1