# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#



class InstrumentConfiguration(object):

    components = []
    


from AbstractNeutronComponent import AbstractNeutronComponent
from neutroncomponent_types import getTypes
neutroncomponent_types = getTypes()


from dsaw.model.Inventory import Inventory as InvBase
class Inventory(InvBase):

    components = InvBase.d.referenceSet(
        name = 'components',
        targettype=AbstractNeutronComponent, targettypes=neutroncomponent_types,
        owned = 1)

    dbtablename = 'instrumentconfigurations'
    


InstrumentConfiguration.Inventory = Inventory
#                      (C) 2006-2010  All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#


class InstrumentConfiguration(object):

    components = []


from AbstractNeutronComponent import AbstractNeutronComponent
from neutroncomponent_types import getTypes
neutroncomponent_types = getTypes()

from dsaw.model.Inventory import Inventory as InvBase


class Inventory(InvBase):

    components = InvBase.d.referenceSet(name='components',
                                        targettype=AbstractNeutronComponent,
                                        targettypes=neutroncomponent_types,
                                        owned=1)

    dbtablename = 'instrumentconfigurations'


InstrumentConfiguration.Inventory = Inventory
Exemple #3
0
def getAllTypes():
    "get all data object types"
    from neutroncomponent_types import getTypes
    component_types = getTypes()
    from InstrumentConfiguration import InstrumentConfiguration
    return [InstrumentConfiguration] + component_types
Exemple #4
0
def getAllTypes():
    "get all data object types"
    from neutroncomponent_types import getTypes
    component_types = getTypes()
    from InstrumentConfiguration import InstrumentConfiguration
    return [InstrumentConfiguration] + component_types