Skip to content
Snippets Groups Projects
slot.py 502 B
Newer Older
Stefano Borini's avatar
Stefano Borini committed
from traits.api import HasStrictTraits, String
from ..local_traits import CUBAType
Stefano Borini's avatar
Stefano Borini committed


class Slot(HasStrictTraits):
    """
    Describes an input or output slot in the DataSource or
    KPICalculator. If the DataSource and KPICalculator are functions, slots
    define their argument number and types they need as input and what
    they return as output.
    """
Stefano Borini's avatar
Stefano Borini committed
    #: A textual description of the slot
    description = String("No description")

    #: The CUBA key of the slot
    type = CUBAType()