from dataclasses import dataclass, field
from typing import Optional

from org.accellera.spirit.v1685_2009.ve.signal_type_1 import SignalType1

__NAMESPACE__ = (
    "http://www.accellera.org/XMLSchema/SPIRIT/1685-2009-VE/AMS-1.0"
)


@dataclass(slots=True)
class SignalType:
    """The type of the signal.

    Possible values are continuous-conservative, continuous-non-
    conservative, and discrete.
    """

    class Meta:
        name = "signalType"
        namespace = (
            "http://www.accellera.org/XMLSchema/SPIRIT/1685-2009-VE/AMS-1.0"
        )

    value: Optional[SignalType1] = field(
        default=None,
        metadata={
            "required": True,
        },
    )
