msml.sorts¶
Sorts logic.
Factory and Cache for Sorts in MSML.
Currently there are two disjoint sorts hierarchies.
- format
- type
format describes the kind of storage (e.g. file format) type is the definition of the ground data type (e.g. vector of ints) sortdef ## example
vector.int + file.vtk
result in: file_vtk__vector_int as subtype of file and vector
sortsdef => name of a sort, characterize by multiple path, seperated with »+« path => name/path in the class hierarchy, each class is seperated with ».«
Functions
default_conversion_network () |
|
default_sorts_definition () |
return default sorts definition |
get_sort (t[, f]) |
returns the type object for the given sort definition |
is_sort (x) |
Classes
ConversionNetwork ([data]) |
|
SortsDefinition ([default_sorts]) |
Exceptions
MSMLMissingConversionException |
-
class
msml.sorts.
ConversionNetwork
(data=None, **attr)[source]¶ Bases:
networkx.classes.digraph.DiGraph