def __init__(
            self,
            **kwargs  # type: int
    ):
        # type: (...) -> None
        if not kwargs or '_handle' not in kwargs:
            raise TypeError()

        self._handle = kwargs['_handle']
        self._dbc_attributes = None  # type: typing.Optional[_dbc_attributes.DbcAttributeCollection]

        from nixnet.database import _ecu
        from nixnet.database import _frame
        from nixnet.database import _lin_sched
        from nixnet.database import _pdu
        self._ecus = _collection.DbCollection(self._handle,
                                              constants.ObjectClass.ECU,
                                              _cconsts.NX_PROP_CLST_ECU_REFS,
                                              _ecu.Ecu)
        self._frames = _collection.DbCollection(self._handle,
                                                constants.ObjectClass.FRAME,
                                                _cconsts.NX_PROP_CLST_FRM_REFS,
                                                _frame.Frame)
        self._lin_sched = _collection.DbCollection(
            self._handle, constants.ObjectClass.LIN_SCHED,
            _cconsts.NX_PROP_CLST_LIN_SCHEDULES, _lin_sched.LinSched)
        self._pdus = _collection.DbCollection(self._handle,
                                              constants.ObjectClass.PDU,
                                              _cconsts.NX_PROP_CLST_PDU_REFS,
                                              _pdu.Pdu)
示例#2
0
 def __init__(self, handle):
     # type: (int) -> None
     self._handle = handle
     self._signals = _collection.DbCollection(self._handle,
                                              constants.ObjectClass.SIGNAL,
                                              _cconsts.NX_PROP_PDU_SIG_REFS,
                                              _signal.Signal)
     self._mux_subframes = _collection.DbCollection(
         self._handle, constants.ObjectClass.SUBFRAME,
         _cconsts.NX_PROP_PDU_MUX_SUBFRAME_REFS, _subframe.SubFrame)
示例#3
0
 def __init__(self, handle):
     # type: (int) -> None
     self._handle = handle
     self._dbc_attributes = None  # type: typing.Optional[_dbc_attributes.DbcAttributeCollection]
     self._mux_static_signals = _collection.DbCollection(
         self._handle, constants.ObjectClass.SIGNAL,
         _cconsts.NX_PROP_FRM_MUX_STATIC_SIG_REFS, _signal.Signal)
     self._mux_subframes = _collection.DbCollection(
         self._handle, constants.ObjectClass.SUBFRAME,
         _cconsts.NX_PROP_FRM_MUX_SUBFRAME_REFS, _subframe.SubFrame)
示例#4
0
 def __init__(self, database_name):
     # type: (typing.Text) -> None
     self._handle = None  # To satisfy `__del__` in case nxdb_open_database throws
     self._handle = _funcs.nxdb_open_database(database_name)
     self._clusters = _collection.DbCollection(
         self._handle, constants.ObjectClass.CLUSTER,
         _cconsts.NX_PROP_DATABASE_CLST_REFS, _cluster.Cluster)
    def __init__(
            self,
            **kwargs  # type: int
    ):
        # type: (...) -> None
        if not kwargs or '_handle' not in kwargs:
            raise TypeError()

        self._handle = kwargs['_handle']
        self._dbc_attributes = None  # type: typing.Optional[_dbc_attributes.DbcAttributeCollection]

        from nixnet.database import _subframe
        self._mux_static_signals = _collection.DbCollection(
            self._handle, constants.ObjectClass.SIGNAL,
            _cconsts.NX_PROP_FRM_MUX_STATIC_SIG_REFS, _signal.Signal)
        self._mux_subframes = _collection.DbCollection(
            self._handle, constants.ObjectClass.SUBFRAME,
            _cconsts.NX_PROP_FRM_MUX_SUBFRAME_REFS, _subframe.SubFrame)
    def __init__(
            self,
            **kwargs  # type: int
    ):
        # type: (...) -> None
        if not kwargs or '_handle' not in kwargs:
            raise TypeError()

        self._handle = kwargs['_handle']

        from nixnet.database import _signal
        self._dyn_signals = _collection.DbCollection(
            self._handle, constants.ObjectClass.SIGNAL,
            _cconsts.NX_PROP_SUBFRM_DYN_SIG_REFS, _signal.Signal)
    def __init__(
            self,
            **kwargs  # type: int
    ):
        # type: (...) -> None
        if not kwargs or '_handle' not in kwargs:
            raise TypeError()

        self._handle = kwargs['_handle']

        from nixnet.database import _lin_sched_entry
        self._entries = _collection.DbCollection(
            self._handle,
            constants.ObjectClass.LIN_SCHED_ENTRY,
            _cconsts.NX_PROP_LIN_SCHED_ENTRIES,
            _lin_sched_entry.LinSchedEntry)
示例#8
0
 def __init__(self, handle):
     # type: (int) -> None
     self._handle = handle
     self._entries = _collection.DbCollection(
         self._handle, constants.ObjectClass.LIN_SCHED_ENTRY,
         _cconsts.NX_PROP_LIN_SCHED_ENTRIES, _linsched_entry.LinSchedEntry)
示例#9
0
 def __init__(self, handle):
     # type: (int) -> None
     self._handle = handle
     self._dyn_signals = _collection.DbCollection(
         self._handle, constants.ObjectClass.SIGNAL, _cconsts.NX_PROP_SUBFRM_DYN_SIG_REFS, _signal.Signal)