Types of DuTs
Used to flag the dut type for each dut view
- class DMT.core.dut_type.DutType[source]
Bases:
object
concrete DutTypes to be used for DutViews
- classmethod deserialize(dict_loaded)[source]
Static class method to create a DutType from a loaded dictionary.
- Returns:
DutTypeInt
orDutTypeFlag
DutType ready to be used.
- class DMT.core.dut_type.DutTypeFlag(value)[source]
Bases:
Flag
Flags which represents most common devices that might need to be handled by DMT
Methods
get_nodes(filename)
Returns the names of the nodes typicall found in the specified DutType
- get_nodes()[source]
Return the nodes that are typically found in this DutType. For convenience.
- Returns:
- nodes
list
of
strings
List of strings
- nodes
- class DMT.core.dut_type.DutTypeInt(value, *, string, nodes=None)[source]
Bases:
object
Class for DutType flags. Adds the nodes attribute to an integer value. This allows direct assignment of nodes to a DutType.
- get_nodes()[source]
Return the nodes that are typically found in this Dut_type. For convenience.
Repeated here just to get rid of the pylint error. The real method is below in the DutType-flag
- Returns:
- nodes
list
of
strings
List of strings
- nodes
- get_string()[source]
Return the string that describes this Dut_type.
- Returns:
- string
str
the string that describes this object
- string
- is_subtype(other)[source]
Test if a device is a subtype of an other device/devicetype
Ignores the flag_subtype!
- Parameters:
- other
int
,DutTypeInt
- other