from __future__ import annotations
from dataclasses import dataclass, field
from .name_of_class_train_in_compound_train_ref_structure_type import NameOfClassTrainInCompoundTrainRefStructureType
from .version_of_object_ref_structure import VersionOfObjectRefStructure

__NAMESPACE__ = "http://www.netex.org.uk/netex"


@dataclass(slots=True, kw_only=True)
class TrainInCompoundTrainRefStructure(VersionOfObjectRefStructure):
    name_of_ref_class: NameOfClassTrainInCompoundTrainRefStructureType = field(
        default=NameOfClassTrainInCompoundTrainRefStructureType.TRAIN_IN_COMPOUND_TRAIN,
        metadata={
            "name": "nameOfRefClass",
            "type": "Attribute",
        }
    )