Example #1
0
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, document)
        name = attributes["name"]

        from pyre.inventory.odb.Registry import Registry
        self.component = Registry(name)
        return
Example #2
0
 def __init__(self, semanticObject):
   """ NOTE: AToM3 dependent method """
   AbstractNode.__init__(self, semanticObject)
   
   box = self._obj.getbbox()
   self._pos = (box[0], box[1])
   self._size = (box[2] - box[0], box[3] - box[1])
 def __init__(self, document, attributes):
     base.__init__(self, document)
     
     # mcweights
     mcweights = attributes.get( 'mcweights' )
     if mcweights:
         mcweights = self._parse( mcweights )
     else:
         mcweights = 0, 1, 0
     self._mcweights = mcweights
     
     # max_multiplescattering_loops
     mml = attributes.get('max_multiplescattering_loops')
     if mml: mml = int(mml)
     self._max_multiplescattering_loops = mml
     
     # min_neutron_probability
     mnp = attributes.get('min_neutron_probability')
     if mnp: mnp = float(mnp)
     self._min_neutron_probability = mnp
     
     # packing_factor
     pf = attributes.get('packing_factor')
     if pf: pf = float(pf)
     self._packing_factor = pf
     return
Example #4
0
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, document)

        from pyre.inventory.odb.Inventory import Inventory
        self.inventory = Inventory('root')

        return
Example #5
0
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, attributes)

        self._major = self._parse(attributes["major"])
        self._minor = self._parse(attributes["minor"])
        self._scale = self._parse(attributes["scale"])
        self._height = self._parse(attributes["height"])

        return
Example #6
0
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, attributes)

        self._topRadius = self._parse(attributes["topRadius"])
        self._bottomRadius = self._parse(attributes["bottomRadius"])

        self._height = self._parse(attributes["height"])

        return
Example #7
0
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, attributes)

        self._major = self._parse(attributes["major"])
        self._minor = self._parse(attributes["minor"])
        self._scale = self._parse(attributes["scale"])
        self._height = self._parse(attributes["height"])

        return
Example #8
0
    def __init__(self, root, attributes):
        AbstractNode.__init__(self, root, attributes)

        symbol = attributes["id"]
        atomicWeight = attributes.get("atomicWeight")
        locator = self.documentNode().locator()

        self._element = self.documentNode().mechanism().newElement(
            symbol, atomicWeight, locator)
        return
Example #9
0
    def __init__(self, root, attributes):
        AbstractNode.__init__(self, root, attributes)

        symbol = attributes["id"]
        phase = attributes.get("phase")
        locator = self.documentNode().locator()

        species = self.documentNode().mechanism().newSpecies(symbol, locator)
        species.phase = phase
        self._species = species
        return
Example #10
0
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, document )
        
        # convert to dictionary
        attrs = {}
        for k,v in attributes.items(): attrs[str(k)] = v

        # new element
        self.element = self.elementFactory(**attrs)

        return
Example #11
0
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, document)

        # convert to dictionary
        attrs = {}
        for k, v in attributes.items():
            attrs[str(k)] = v

        # new element
        self.element = self.elementFactory(**attrs)

        return
Example #12
0
    def __init__(self, root, attributes):
        AbstractNode.__init__(self, root, attributes)

        a = float(attributes["a"])
        Ts = float(attributes["Ts"])
        T3s = float(attributes["T3s"])

        T2s = attributes.get("T2s")

        if T2s:
            self._parameters = (a, T3s, Ts, float(T2s))
        else:
            self._parameters = (a, T3s, Ts)

        return
Example #13
0
    def __init__(self, root, attributes):
        AbstractNode.__init__(self, root, attributes)

        self.efficiencies = []

        self.arrhenius = None
        self.rev = None
        self.lt = None
        self.rlt = None

        self.low = None
        self.sri = None
        self.troe = None

        return
Example #14
0
    def __init__(self, root, attributes):
        AbstractNode.__init__(self, root, attributes)

        a = float(attributes["a"])
        b = float(attributes["b"])
        c = float(attributes["c"])
        d = attributes.get("d")
        e = attributes.get("e")

        if d and e:
            self._parameters = (a, b, c, float(d), float(e))
        else:
            self._parameters = (a, b, c)

        return
Example #15
0
 def __init__(self, semanticObject, hyperEdge):
   """ NOTE: AToM3 dependent method """
   AbstractNode.__init__(self, semanticObject)
   
   # Position and size of the edge's center drawing    
   centerObj = self._obj.getCenterObject()
   if(centerObj):
     box = centerObj.getbbox()
     self._pos = (box[0], box[1])
     self._size = (box[2] - box[0], box[3] - box[1])
   else:
     self._pos = (self._obj.x, self._obj.y)
     self._size = (0, 0)
     
   # The hyperEdge object associated with this centerpoint node
   self.__hyperEdge = hyperEdge
Example #16
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, attributes)
     return
Example #17
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, document)
     self.name = attributes["name"]
     self.value = ''
     self.locator = None
     return
Example #18
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, attributes)
     self._major = self._parse(attributes["major"])
     self._minor = self._parse(attributes["minor"])
     return
Example #19
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._efficiencies = []
     return
Example #20
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._value = 0.0
     return
Example #21
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, attributes)
     self._angle = ''
     return
Example #22
0
    def __init__(self, root, attributes):
        AbstractNode.__init__(self, root, attributes)

        self._mechanism = root.mechanism()
        return
Example #23
0
    def __init__(self, root, attributes):
        AbstractNode.__init__(self, root, attributes)
        name = attributes["class"]
        self._options = Registry(name)

        return
Example #24
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, attributes)
     self._radius = self._parse(attributes["radius"])
     self._height = self._parse(attributes["height"])
     return
Example #25
0
    def __init__(self, root, attributes):
        AbstractNode.__init__(self, root, attributes)

        self._options = Registry("root")

        return
Example #26
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self.name = attributes["name"]
     self.value = attributes.get("value")
     return
Example #27
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._bannerCharacter = None
     return
Example #28
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._vector = None
     return
Example #29
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._thermo = []
     return
Example #30
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._reactants = []
     self._products = []
     return
Example #31
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._composition = []
     return
Example #32
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._major = self._parse(attributes["major"])
     self._minor = self._parse(attributes["minor"])
     return
Example #33
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, attributes)
     self._radius = self._parse(attributes["radius"])
     return
Example #34
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._element = attributes["element"]
     self._coefficient = int(attributes.get("coefficient", "1"))
     return
Example #35
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._radius = self._parse(attributes["radius"])
     return
Example #36
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._copyright = ""
     return
Example #37
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._diagonal = self._parse(attributes["diagonal"])
     return
Example #38
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, document)
     self.name = attributes["name"]
     self.value = ''
     self.locator = None
     return
Example #39
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, attributes)
     self._angle = ''
     return
Example #40
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, attributes)
     self._diagonal = self._parse(attributes["diagonal"])
     return
Example #41
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._organization = ""
     return
Example #42
0
 def __init__(self, document, attributes):
     AbstractNode.__init__(self, attributes)
     return
Example #43
0
 def __init__(self, root, attributes):
     AbstractNode.__init__(self, root, attributes)
     self._author = ""
     return