diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/annotated.html b/annotated.html new file mode 100644 index 0000000..0f9aad8 --- /dev/null +++ b/annotated.html @@ -0,0 +1,204 @@ + + +
+ + + + +
+ TimeloopFE
+
+ |
+
▼Ntimeloopfe | |
▼Ncommon | |
►Nbase_specification | |
►Nnodes | Node classes for parsing and processing specification trees |
►Nprocessor | Base class for all processors |
▼Nv4 | Timeloop v4 Specification |
►Narch | |
►Ncomponents | |
►Nconstraints | |
►Nglobals | |
►Nmapper | |
►Nmapspace | |
►Nproblem | |
►Nprocessors | Standard suite of processors for timeloopfe |
►Nsparse_optimizations | |
►Nspecification | |
►Nvariables |
+ TimeloopFE
+
+ |
+
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.base_specification.BaseSpecification, including all inherited members.
+
+ TimeloopFE
+
+ |
+
Base class for specifications in the Timeloop framework. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
+ | needs_processing (self, Optional[List["Processor"]] with_processors=None, Optional[List["Processor"]] to_run=None) |
process (self, Union["Processor", List["Processor"]] with_processors=None, bool check_types=False, bool check_types_ignore_empty=True, bool reprocess=True) | |
Process the specification with the given processors. | |
"Specification" | from_yaml_files (cls, *args, **kwargs) |
Create a Specification object from YAML files. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse expressions in the specification. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Public Attributes | |
+ | processors |
+ | spec |
+ | preserve_references |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
+Protected Member Functions | |
+ | _claim_nodes (self, *args, **kwargs) |
+ | _processors_declare_attrs (self, *args, **kwargs) |
+ | _early_init_processors (self, List["Processor"] _required_processors, **kwargs) |
+ | _process (self) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
+Protected Attributes | |
+ | _required_processors |
+ | _processor_attributes |
+ | _parsed_expressions |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Base class for specifications in the Timeloop framework.
+Attributes: processors (ListNode): List of processors associated with the specification. _required_processors (ListNode): List of required processors. _parsed_expressions (bool): Flag indicating whether expressions have been parsed. _processors_run (List[Processor]): List of processors that have been run. preserve_references (bool): Flag indicating whether to preserve references.
+timeloopfe.common.base_specification.BaseSpecification.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.common.base_specification.BaseSpecification.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +Reimplemented in timeloopfe.v4.specification.Specification.
+ +timeloopfe.common.base_specification.BaseSpecification.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +Reimplemented in timeloopfe.v4.specification.Specification.
+ +"Specification" timeloopfe.common.base_specification.BaseSpecification.from_yaml_files | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Create a Specification object from YAML files.
+Args: *args: YAML file paths. jinja_parse_data: Dictionary of data to be used for Jinja parsing.
+Returns: Specification: The created Specification object.
+ +Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.common.base_specification.BaseSpecification.parse_expressions | +( | +self, | +|
+ | + | Optional[Dict[str, Any]] | symbol_table = None, | +
+ | + | Optional[set] | parsed_ids = None ) | +
Parse expressions in the specification.
+Args: symbol_table (Optional[Dict[str, Any]], optional): Symbol table to be used for parsing. Defaults to None. parsed_ids (Optional[set], optional): Set of IDs of specifications that have already been parsed. Defaults to None.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +Reimplemented in timeloopfe.v4.specification.Specification.
+ +timeloopfe.common.base_specification.BaseSpecification.process | +( | +self, | +|
+ | + | Union["Processor", List["Processor"]] | with_processors = None, | +
+ | + | bool | check_types = False, | +
+ | + | bool | check_types_ignore_empty = True, | +
+ | + | bool | reprocess = True ) | +
Process the specification with the given processors.
+Args: with_processors (Union[Processor, List[Processor]], optional): Processors to be used for processing the specification. Defaults to None. check_types (bool, optional): Flag indicating whether to check for unrecognized types. Defaults to False. check_types_ignore_empty (bool, optional): Flag indicating whether to ignore empty types during type checking. Defaults to True. reprocess (bool, optional): Flag indicating whether to reprocess the specification even if it has been processed before. Defaults to True.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.nodes.CombineableListNode, including all inherited members.
+combine(self, "CombineableListNode" other) | timeloopfe.common.nodes.CombineableListNode |
+ TimeloopFE
+
+ |
+
A list node that can be combined with others by extending. + More...
++Public Member Functions | |
"CombineableListNode" | combine (self, "CombineableListNode" other) |
Extends this list with the contents of another list. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list node that can be combined with others by extending.
+"CombineableListNode" timeloopfe.common.nodes.CombineableListNode.combine | +( | +self, | +|
+ | + | "CombineableListNode" | other ) | +
Extends this list with the contents of another list.
+ +Reimplemented in timeloopfe.v4.constraints.Factors.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.nodes.DictNode, including all inherited members.
+
+ TimeloopFE
+
+ |
+
A node that is a dictionary of other nodes. + More...
++Public Member Functions | |
__init__ (self, *args, __node_skip_parse=False, **kwargs) | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Public Attributes | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
+Protected Member Functions | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
+Static Protected Member Functions | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
+Protected Attributes | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
A node that is a dictionary of other nodes.
+timeloopfe.common.nodes.DictNode.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | __node_skip_parse = False, | +|
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.Node.
+ +Any timeloopfe.common.nodes.DictNode.__getitem__ | +( | +self, | +|
+ | + | Any | key ) | +
Get the value at the given key or index.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +None timeloopfe.common.nodes.DictNode.__setitem__ | +( | +self, | +|
+ | + | Any | key, | +
+ | + | Any | value ) | +
Set the value at the given key or index.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +None timeloopfe.common.nodes.DictNode.check_unrecognized | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Check for unrecognized keys in this node and all subnodes.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +"DictNode" timeloopfe.common.nodes.DictNode.combine | +( | +self, | +|
+ | + | "DictNode" | other ) | +
Combines this dictionary with another dictionary.
+If a key is present in both dictionaries, the values are combined. Otherwise, the key is taken from whichever dictionary has it.
+ +Reimplemented in timeloopfe.v4.arch.Architecture, and timeloopfe.v4.constraints.Constraint.
+ +"DictNode" timeloopfe.common.nodes.DictNode.from_yaml_files | +( | +cls, | +|
+ | + | *Union[str, List[str]] | files, | +
+ | + | Dict[str, Any] | jinja_parse_data = None, | +
+ | + | ** | kwargs ) | +
Loads a dictionary from one more more yaml files.
+Each yaml file should contain a dictionary. Dictionaries are combined in the order they are given.
+Keyword arguments are also added to the dictionary.
+Args: files: A list of yaml files to load. jinja_parse_data: A dictionary of data to use when parsing kwargs: Extra keyword arguments to add to the dictionary.
+Returns: A DictNode containing the combined dictionaries.
+Loads a dictionary from a list of yaml files. Each yaml file should contain a dictionary. Dictionaries are in the given order. Keyword arguments are also added to the dictionary. !
files | A list of yaml files to load. ! |
jinja_parse_data | A dictionary of data to use when parsing ! |
kwargs | Extra keyword arguments to add to the dictionary. |
Reimplemented in timeloopfe.common.base_specification.BaseSpecification.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.nodes.FlatteningListNode, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.common.nodes.FlatteningListNode) | timeloopfe.common.nodes.FlatteningListNode | |
_flatten(self) (defined in timeloopfe.common.nodes.FlatteningListNode) | timeloopfe.common.nodes.FlatteningListNode | protected |
+ TimeloopFE
+
+ |
+
A list node that flattens lists of lists. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Protected Member Functions | |
+ | _flatten (self) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list node that flattens lists of lists.
+timeloopfe.common.nodes.FlatteningListNode.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.ListNode.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.nodes.GrabParentAddMe, including all inherited members.
+__enter__(self) (defined in timeloopfe.common.nodes.GrabParentAddMe) | timeloopfe.common.nodes.GrabParentAddMe | |
__exit__(self, *args) (defined in timeloopfe.common.nodes.GrabParentAddMe) | timeloopfe.common.nodes.GrabParentAddMe | |
__init__(self, "Node" add_elem) (defined in timeloopfe.common.nodes.GrabParentAddMe) | timeloopfe.common.nodes.GrabParentAddMe | |
add_elem (defined in timeloopfe.common.nodes.GrabParentAddMe) | timeloopfe.common.nodes.GrabParentAddMe |
+ TimeloopFE
+
+ |
+
+Public Member Functions | |
+ | __init__ (self, "Node" add_elem) |
+ | __enter__ (self) |
+ | __exit__ (self, *args) |
+Public Attributes | |
+ | add_elem |
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.nodes.ListNode, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.common.nodes.ListNode) | timeloopfe.common.nodes.ListNode |
+ TimeloopFE
+
+ |
+
A node that is a list of other nodes. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A node that is a list of other nodes.
+timeloopfe.common.nodes.ListNode.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.nodes.Node, including all inherited members.
+__format__(self, format_spec) | timeloopfe.common.nodes.Node | |
__getitem__(self, Union[str, int] key) | timeloopfe.common.nodes.Node | |
__init__(self, *args, **kwargs) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | |
__setitem__(self, Union[str, int] key, Any value) | timeloopfe.common.nodes.Node | |
__str__(self) | timeloopfe.common.nodes.Node | |
_check_unrecognized(self, ignore_empty=False, ignore_should_have_been_removed_by=False) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protected |
_default_parse (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protected |
_get_all_recognized(self) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protected |
_get_index2checker(self, Optional[List[Tuple[str, Any]]] key2elem=None) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protected |
_get_tag(x) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protectedstatic |
_get_type_specifiers(cls, "BaseSpecification" spec) | timeloopfe.common.nodes.Node | protected |
_parse_elem(self, Union[str, int] key, TypeSpecifier check, Any value_override=None) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protected |
_parse_elems(self) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protected |
_parse_expression(self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protected |
_parse_extra_elems(self, List[Tuple[str, Any]] key2elem) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | protected |
add_attr(cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | timeloopfe.common.nodes.Node | |
check_unrecognized(self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | timeloopfe.common.nodes.Node | |
clean_empties(self) | timeloopfe.common.nodes.Node | |
combine_index(self, Union[str, int] key, T value) | timeloopfe.common.nodes.Node | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.common.nodes.Node | |
get_combiner_lambda(self, Union[str, int] keytag) | timeloopfe.common.nodes.Node | |
get_combiners_for_keytag(self, str keytag, bool recursive=True) | timeloopfe.common.nodes.Node | |
get_combiners_for_type(self, Type t, bool recursive=True) | timeloopfe.common.nodes.Node | |
get_global_spec() | timeloopfe.common.nodes.Node | static |
get_name(self, Union[Set, None] seen=None) | timeloopfe.common.nodes.Node | |
get_nodes_of_type(self, Type[T] node_type) | timeloopfe.common.nodes.Node | |
get_setter_lambda(self, Union[str, int] keytag) | timeloopfe.common.nodes.Node | |
get_setters_for_keytag(self, str keytag, bool recursive=True) | timeloopfe.common.nodes.Node | |
get_setters_for_type(self, Type t, bool recursive=True) | timeloopfe.common.nodes.Node | |
get_specifiers_from_processors(cls, "BaseSpecification" spec) | timeloopfe.common.nodes.Node | |
get_tag(self) | timeloopfe.common.nodes.Node | |
is_defined_non_default_non_empty(self, str key) | timeloopfe.common.nodes.Node | |
isempty(self) | timeloopfe.common.nodes.Node | |
isempty_recursive(self) | timeloopfe.common.nodes.Node | |
items(self) | timeloopfe.common.nodes.Node | |
logger (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | |
parent_node (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | |
parse_expressions(self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | timeloopfe.common.nodes.Node | |
recognize_all(cls, bool recognize_all=True) | timeloopfe.common.nodes.Node | |
recursive_apply(self, callable func, bool self_first=False, set applied_to=None) | timeloopfe.common.nodes.Node | |
reset_processor_elems(cls, Optional[Type] processor=None) (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | |
reset_specifiers_from_processors(cls, Optional[Type] processor=None) | timeloopfe.common.nodes.Node | |
set_global_spec("BaseSpecification" spec) | timeloopfe.common.nodes.Node | static |
spec (defined in timeloopfe.common.nodes.Node) | timeloopfe.common.nodes.Node | |
try_combine(Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) | timeloopfe.common.nodes.Node | static |
unique_class_name(cls) | timeloopfe.common.nodes.Node |
+ TimeloopFE
+
+ |
+
Base class for all nodes in the hierarchy. + More...
++Public Member Functions | |
+ | __init__ (self, *args, **kwargs) |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Static Public Member Functions | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
+Public Attributes | |
+ | logger |
+ | parent_node |
+ | spec |
+Protected Member Functions | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
+Static Protected Member Functions | |
+str | _get_tag (x) |
+Protected Attributes | |
+ | _default_parse |
Base class for all nodes in the hierarchy.
+Attributes: parent_node (Node): The parent node of the current node. spec (Specification): The global specification object. _init_args (Tuple): The arguments and keyword arguments used to initialize the node. __currently_parsing_index (Union[int, str]): The index or key currently being parsed. logger (Logger): The logger object for the node's class. _default_parse (bool): Flag indicating whether the node should be parsed using default rules.
+Methods: get_specifiers_from_processors(cls, spec): Get the specifiers from processors. reset_specifiers_from_processors(cls, processor): Reset the specifiers from processors. declare_attrs(cls, *args, **kwargs): Initialize the attributes of this node. reset_processor_elems(cls, processor): Reset the processor elements. recognize_all(cls, recognize_all): Set whether all attributes under this node should be recognized. _get_type_specifiers(cls, spec): Get the type specifiers for this node. _get_all_recognized(self): Check if all attributes under this node are recognized. _get_tag(x): Get the tag of a node. get_global_spec(): Get the global specification object. set_global_spec(spec): Set the global specification object. get_tag(self): Get the tag of this node. _get_index2checker(self, key2elem): Get the index-to-checker mapping. items(self): Get an iterable of (key, value) or (index, value) pairs. combine_index(self, key, value): Combine the value at the given key with the given value. _parse_elem(self, key, check, value_override): Parse an element of the node.
+Any timeloopfe.common.nodes.Node.__getitem__ | +( | +self, | +|
+ | + | Union[str, int] | key ) | +
Get the value at the given key or index.
+ +Reimplemented in timeloopfe.common.nodes.DictNode.
+ +timeloopfe.common.nodes.Node.__setitem__ | +( | +self, | +|
+ | + | Union[str, int] | key, | +
+ | + | Any | value ) | +
Set the value at the given key or index.
+ +Reimplemented in timeloopfe.common.nodes.DictNode.
+ +timeloopfe.common.nodes.Node.__str__ | +( | +self | ) | ++ |
Return the name of this node.
+ +Reimplemented in timeloopfe.v4.constraints.Constraint.
+ +
+
|
+ +protected | +
Get the type specifiers for this node.
+Attributes: spec (Specification): The global specification object.
+Returns: Dict[str, TypeSpecifier]: The type specifiers for this node.
+ +timeloopfe.common.nodes.Node.add_attr | +( | +cls, | +|
+ | + | str | key_or_tag, | +
+ | + | Optional[ + Union[type, Tuple[type, ...], Tuple[None, ...], Tuple[str, ...], None] + ] | required_type = None, | +
+ | + | Any | default = default_unspecified_, | +
+ | + | Optional[Callable] | callfunc = None, | +
+ | + | Optional[bool] | part_name_match = None, | +
+ | + | Optional[bool] | no_change_key = None, | +
+ | + | Any | _processor_responsible_for_removing = None, | +
+ | + | Optional[Dict[str, TypeSpecifier]] | _add_checker_to = None ) | +
Initialize a type specifier for this class.
+Args: key_or_tag: The key/tag or tag to use for this type specifier. required_type: The type of value that this type specifier will be default: The default value to use if the key/tag is not found. callfunc: A function to call on the value before returning it. part_name_match: If True, the key/tag will match if it is a substring of the actual key/tag. no_change_key: If True, a parsed key will not be changed when a partial name match is found. Otherwise, the parsed key will be changed to the actual key. _processor_responsible_for_removing: The processor that will be responsible for removing this key from the containing node, if any. _add_checker_to: The dictionary to add the checker to. If None, add the checker to the class's type specifiers.
+Raises: AttributeError: If the class does not have a _param_type_specifiers attribute.
+ +timeloopfe.common.nodes.Node.check_unrecognized | +( | +self, | +|
+ | + | bool | ignore_empty = False, | +
+ | + | ignore_should_have_been_removed_by = False ) | +
Check for unrecognized keys in this node and all subnodes.
+Also checks for correct types.
+Args: ignore_empty (bool): Flag indicating whether to ignore empty nodes. ignore_should_have_been_removed_by (bool): Flag indicating whether to ignore nodes that should have been removed by a processor.
+Raises: ParseError: If an unrecognized key is found.
+ +Reimplemented in timeloopfe.common.nodes.DictNode.
+ +T timeloopfe.common.nodes.Node.combine_index | +( | +self, | +|
+ | + | Union[str, int] | key, | +
+ | + | T | value ) | +
Combine the value at the given key with the given value.
+If there is no value at the given key, sets the value at the given key. If there is, attempts to combine the two values.
+Args: key: The key to combine. value: The value to combine.
+Returns: The combined value.
+ +timeloopfe.common.nodes.Node.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented in timeloopfe.common.base_specification.BaseSpecification, timeloopfe.common.base_specification.BaseSpecification, timeloopfe.v4.arch.ArchNodes, timeloopfe.v4.arch.Branch, timeloopfe.v4.arch.Architecture, timeloopfe.v4.arch.Leaf, timeloopfe.v4.arch.Component, timeloopfe.v4.arch.Container, timeloopfe.v4.arch.Networks, timeloopfe.v4.arch.Storage, timeloopfe.v4.arch.Compute, timeloopfe.v4.arch.Network, timeloopfe.v4.arch.Spatial, timeloopfe.v4.arch.Attributes, timeloopfe.v4.arch.StorageAttributes, timeloopfe.v4.arch.StorageAttributes, timeloopfe.v4.arch.Nothing, timeloopfe.v4.components.Components, timeloopfe.v4.components.ComponentsList, timeloopfe.v4.components.CompoundComponent, timeloopfe.v4.components.SubcomponentList, timeloopfe.v4.components.Subcomponent, timeloopfe.v4.components.ComponentAttributes, timeloopfe.v4.components.ActionsList, timeloopfe.v4.components.Action, timeloopfe.v4.components.ActionSubcomponentsList, timeloopfe.v4.components.SubcomponentActionGroup, timeloopfe.v4.components.SubcomponentActionList, timeloopfe.v4.components.SubcomponentAction, timeloopfe.v4.constraints.Constraints, timeloopfe.v4.constraints.ConstraintsList, timeloopfe.v4.constraints.Constraint, timeloopfe.v4.constraints.ConstraintGroup, timeloopfe.v4.constraints.Iteration, timeloopfe.v4.constraints.Spatial, timeloopfe.v4.constraints.Temporal, timeloopfe.v4.constraints.Dataspace, timeloopfe.v4.constraints.MaxOverbookedProportion, timeloopfe.v4.constraints.Utilization, timeloopfe.v4.constraints.Permutation, timeloopfe.v4.constraints.Factors, timeloopfe.v4.constraints.ProblemDataspaceList, timeloopfe.v4.globals.Globals, timeloopfe.v4.globals.EnvironmentVariables, timeloopfe.v4.globals.ExpressionCustomFunctions, timeloopfe.v4.mapper.Mapper, timeloopfe.v4.mapper.OptimizationMetrics, timeloopfe.v4.mapspace.Mapspace, timeloopfe.v4.problem.Problem, timeloopfe.v4.problem.Shape, timeloopfe.v4.problem.ProblemDataspaceList, timeloopfe.v4.problem.Instance, timeloopfe.v4.problem.DataSpace, timeloopfe.v4.problem.DensityList, timeloopfe.v4.problem.Density, timeloopfe.v4.sparse_optimizations.SparseOptimizations, timeloopfe.v4.sparse_optimizations.SparseOptimizationsList, timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup, timeloopfe.v4.sparse_optimizations.RepresentationFormat, timeloopfe.v4.sparse_optimizations.RepresentationProblemDataspaceList, timeloopfe.v4.sparse_optimizations.RepresentationDataSpace, timeloopfe.v4.sparse_optimizations.RepresentationRankList, timeloopfe.v4.sparse_optimizations.RepresentationRank, timeloopfe.v4.sparse_optimizations.ActionOptimizationList, timeloopfe.v4.sparse_optimizations.ComputeOptimization, timeloopfe.v4.sparse_optimizations.ActionOptimization, timeloopfe.v4.sparse_optimizations.ActionOptimizationOptionList, timeloopfe.v4.sparse_optimizations.ActionOptimizationOption, timeloopfe.v4.specification.Specification, and timeloopfe.v4.variables.Variables.
+ +Callable timeloopfe.common.nodes.Node.get_combiner_lambda | +( | +self, | +|
+ | + | Union[str, int] | keytag ) | +
Get a function that can be used to combine a value to this node.
+The combiner takes one argument, the value to combine.
+Args: keytag: The key or tag to combine.
+Returns: A function that can be used to combine a value to this node.
+ +List[Tuple[Any, Callable]] timeloopfe.common.nodes.Node.get_combiners_for_keytag | +( | +self, | +|
+ | + | str | keytag, | +
+ | + | bool | recursive = True ) | +
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag.
+A combiner is a function that can be used to combine a value to this node.
+Args: keytag: The key or tag to search for. recursive: If True, search recursively.
+ +List[Tuple[Any, Callable]] timeloopfe.common.nodes.Node.get_combiners_for_type | +( | +self, | +|
+ | + | Type | t, | +
+ | + | bool | recursive = True ) | +
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type.
+A combiner is a function that can be used to combine a value in this node.
+Args: t: The type to search for. recursive: If True, search recursively.
+Returns: A list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type.
+ +List[T] timeloopfe.common.nodes.Node.get_nodes_of_type | +( | +self, | +|
+ | + | Type[T] | node_type ) | +
Return a list of all subnodes of a given type.
+Args: node_type: The type of node to search for.
+Returns: A list of all subnodes of the given type.
+ +Callable timeloopfe.common.nodes.Node.get_setter_lambda | +( | +self, | +|
+ | + | Union[str, int] | keytag ) | +
Get a function that can be used to set a value in this node.
+The setter takes one argument, the value to set.
+Args: keytag: The key or tag to set.
+Returns: A function that can be used to set a value in this node.
+ +List[Tuple[Any, Callable]] timeloopfe.common.nodes.Node.get_setters_for_keytag | +( | +self, | +|
+ | + | str | keytag, | +
+ | + | bool | recursive = True ) | +
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag.
+A setter is a function that can be used to set a value in this node.
+Args: keytag: The key or tag to search for. recursive: If True, search recursively.
+ +List[Tuple[Any, Callable]] timeloopfe.common.nodes.Node.get_setters_for_type | +( | +self, | +|
+ | + | Type | t, | +
+ | + | bool | recursive = True ) | +
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type.
+A setter is a function that can be used to set a value in this node.
+Args: t: The type to search for. recursive: If True, search recursively.
+Returns: A list of tuples of the form (value, setter) for all keys/tags in this node that match the given type.
+ +bool timeloopfe.common.nodes.Node.isempty | +( | +self | ) | ++ |
Return True if this node is empty.
+Good to override.
+ +Reimplemented in timeloopfe.v4.constraints.Constraint, and timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup.
+ +timeloopfe.common.nodes.Node.parse_expressions | +( | +self, | +|
+ | + | Optional[Dict[str, Any]] | symbol_table = None, | +
+ | + | Optional[set] | parsed_ids = None, | +
+ | + | Optional[Callable] | callfunc = None ) | +
Parse expressions in this node and all subnodes.
+Args: symbol_table: A dictionary mapping variable names to values. parsed_ids: A set of IDs of nodes that have already been parsed. callfunc: A function to call on each node after parsing.
+ +Reimplemented in timeloopfe.common.base_specification.BaseSpecification, timeloopfe.v4.arch.ArchNodes, timeloopfe.v4.arch.Branch, timeloopfe.v4.arch.Leaf, timeloopfe.v4.components.Components, and timeloopfe.v4.specification.Specification.
+ +timeloopfe.common.nodes.Node.recognize_all | +( | +cls, | +|
+ | + | bool | recognize_all = True ) | +
Set whether all attributes under this node should be recognized.
+Attributes: recognize_all (bool): Flag indicating whether all attributes under this node should be recognized.
+ +Any timeloopfe.common.nodes.Node.recursive_apply | +( | +self, | +|
+ | + | callable | func, | +
+ | + | bool | self_first = False, | +
+ | + | set | applied_to = None ) | +
Apply a function to this node and all subnodes.
+Args: func (callable): The function to apply. self_first (bool): Flag indicating whether to apply the function to this node before applying it to subnodes. applied_to (set): A set of ids of nodes that have already been visited. Prevents infinite recursion.
+Returns: The return value of the function applied to this node.
+ +
+
|
+ +static | +
Try to combine two values.
+Args: a: The first value. b: The second value. innonde: The node that contains the values. For error messages. index: The index of the values in the node. For error messages.
+Returns: The combined value.
+ +
+ TimeloopFE
+
+ |
+
Exception for nodes. + More...
+Exception for nodes.
+
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.nodes.TypeSpecifier, including all inherited members.
+
+ TimeloopFE
+
+ |
+
Represents a type specifier for a node in the TimeloopFE library. + More...
++Public Attributes | |
+ | callfunc |
+ | should_have_been_removed_by |
+ | required_type |
Represents a type specifier for a node in the TimeloopFE library.
+Attributes: name (str): The name of the type specifier. required_type (Type): The required type for the node. default (Any): The default value for the type specifier. callfunc (Union[Callable, None]): The function to call for casting the value. should_have_been_removed_by (Type): The type that should have removed or transformed the node. part_name_match (bool): Flag indicating if the name should be partially matched. no_change_key (bool): Flag indicating if the key should not be changed.
+Methods: get_id2casted(cls): Get the dictionary of casted values. reset_id2casted(cls): Reset the dictionary of casted values. removed_by_str(self): Get the string representation of the type that should have removed or transformed the node. cast_check_type(self, value: Any, node: "Node", key: str) -> Any: Check and cast the value to the required type. cast(self, value: Any, __node_skip_parse: bool = False) -> Any: Cast the value to the required type. check_type(self, value: Any, node: "Node", key: str): Check if the value matches the required type.
+
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.nodes.Unspecified, including all inherited members.
+__repr__(self) (defined in timeloopfe.common.nodes.Unspecified) | timeloopfe.common.nodes.Unspecified | |
__str__(self) (defined in timeloopfe.common.nodes.Unspecified) | timeloopfe.common.nodes.Unspecified |
+ TimeloopFE
+
+ |
+
Class to represent an unspecified value. + More...
++Public Member Functions | |
+ | __str__ (self) |
+ | __repr__ (self) |
Class to represent an unspecified value.
+
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.processor.Processor, including all inherited members.
+__init__(self, Optional["Specification"] spec=None) (defined in timeloopfe.common.processor.Processor) | timeloopfe.common.processor.Processor | |
add_attr(self, Node target, *args, **kwargs) (defined in timeloopfe.common.processor.Processor) | timeloopfe.common.processor.Processor | |
declare_attrs(self) | timeloopfe.common.processor.Processor | |
get_index(self, type processor_type, "Specification" spec) | timeloopfe.common.processor.Processor | |
logger (defined in timeloopfe.common.processor.Processor) | timeloopfe.common.processor.Processor | |
must_run_after(self, type other, "Specification" spec, bool ok_if_not_found=False) | timeloopfe.common.processor.Processor | |
process(self, "Specification" spec) | timeloopfe.common.processor.Processor | |
spec (defined in timeloopfe.common.processor.Processor) | timeloopfe.common.processor.Processor |
+ TimeloopFE
+
+ |
+
Base class for all processors, which are used to modify the specification before it is passed to Accelergy/Timeloop. + More...
++Public Member Functions | |
+ | __init__ (self, Optional["Specification"] spec=None) |
process (self, "Specification" spec) | |
Process the specification. | |
declare_attrs (self) | |
Initialize the attributes that the processor is responsible for. | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Public Attributes | |
+ | logger |
+ | spec |
Base class for all processors, which are used to modify the specification before it is passed to Accelergy/Timeloop.
+Attributes: spec: The specification to process. logger: The logger for this processor.
+timeloopfe.common.processor.Processor.declare_attrs | +( | +self | ) | ++ |
Initialize the attributes that the processor is responsible for.
+!
Reimplemented in timeloopfe.common.processor.SimpleProcessor, timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor, and timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor.
+ +timeloopfe.common.processor.Processor.must_run_after | +( | +self, | +|
+ | + | type | other, | +
+ | + | "Specification" | spec, | +
+ | + | bool | ok_if_not_found = False ) | +
Ensure that this processor runs after another processor.
+!
other | The processor that this processor must run after. |
!
ok_if_not_found | If False, OK if the other processor is not found. If True, raise an exception if the other processor is not found. |
timeloopfe.common.processor.Processor.process | +( | +self, | +|
+ | + | "Specification" | spec ) | +
Process the specification.
+ +Reimplemented in timeloopfe.common.processor.References2CopiesProcessor, timeloopfe.common.processor.SimpleProcessor, timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor, timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor, timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor, timeloopfe.v4.processors.enable_dummy_table.EnableDummyTableProcessor, timeloopfe.v4.processors.permutation_optimizer.PermutationOptimizerProcessor, timeloopfe.v4.processors.required_actions.RequiredActionsProcessor, and timeloopfe.v4.processors.sparse_opt_attacher.SparseOptAttacherProcessor.
+ +
+ TimeloopFE
+
+ |
+
Exception raised by processors. + More...
+Exception raised by processors.
+
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.processor.References2CopiesProcessor, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.common.processor.References2CopiesProcessor) | timeloopfe.common.processor.References2CopiesProcessor | |
process(self, "BaseSpecification" spec) | timeloopfe.common.processor.References2CopiesProcessor | |
refs2copies_fast(self, "BaseSpecification" spec, Any n, seen_ids=None, visited=None, depth=0) (defined in timeloopfe.common.processor.References2CopiesProcessor) | timeloopfe.common.processor.References2CopiesProcessor |
+ TimeloopFE
+
+ |
+
Converts references to copies in the specification. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
process (self, "BaseSpecification" spec) | |
Process the specification. | |
+Any | refs2copies_fast (self, "BaseSpecification" spec, Any n, seen_ids=None, visited=None, depth=0) |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
declare_attrs (self) | |
Initialize the attributes that the processor is responsible for. | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
Converts references to copies in the specification.
+timeloopfe.common.processor.References2CopiesProcessor.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.common.processor.References2CopiesProcessor.process | +( | +self, | +|
+ | + | "BaseSpecification" | spec ) | +
Process the specification.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.common.processor.SimpleProcessor, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.common.processor.SimpleProcessor) | timeloopfe.common.processor.SimpleProcessor | |
declare_attrs(self) | timeloopfe.common.processor.SimpleProcessor | |
process(self, "Specification" spec) | timeloopfe.common.processor.SimpleProcessor |
+ TimeloopFE
+
+ |
+
An example simple processor. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
declare_attrs (self) | |
Initialize the attributes that the processor handles. | |
process (self, "Specification" spec) | |
Process the specification. | |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
An example simple processor.
+timeloopfe.common.processor.SimpleProcessor.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.common.processor.SimpleProcessor.declare_attrs | +( | +self | ) | ++ |
Initialize the attributes that the processor handles.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.common.processor.SimpleProcessor.process | +( | +self, | +|
+ | + | "Specification" | spec ) | +
Process the specification.
+Remove attributes that this processor is responsible for.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.ArchNode, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.ArchNode) | timeloopfe.v4.arch.ArchNode | |
find(self, *args, **kwargs) | timeloopfe.v4.arch.ArchNode | |
name2constraints(self, str name) | timeloopfe.v4.arch.ArchNode | |
name2leaf(self, str name) | timeloopfe.v4.arch.ArchNode |
+ TimeloopFE
+
+ |
+
A node in the architecture hierarchy. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A node in the architecture hierarchy.
+Methods: name2leaf: Finds a leaf node with the given name. find: Alias for name2leaf method. name2constraints: Retrieves the constraints of a leaf node with the given name.
+Raises: ValueError: If the leaf node with the given name is not found.
+Returns: None
+timeloopfe.v4.arch.ArchNode.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.Node.
+ +"constraints.ConstraintGroup" timeloopfe.v4.arch.ArchNode.name2constraints | +( | +self, | +|
+ | + | str | name ) | +
Retrieves the constraints of a leaf node with the given name.
+Args: name (str): The name of the leaf node.
+Returns: constraints.ConstraintGroup: The constraints of the leaf node.
+ +"Leaf" timeloopfe.v4.arch.ArchNode.name2leaf | +( | +self, | +|
+ | + | str | name ) | +
Finds a leaf node with the given name.
+Args: name (str): The name of the leaf node to find.
+Returns: Leaf: The leaf node with the given name.
+Raises: ValueError: If the leaf node with the given name is not found.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.ArchNodes, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.ArchNodes) | timeloopfe.v4.arch.ArchNodes | |
__repr__(self) | timeloopfe.v4.arch.ArchNodes | |
combine(self, "ArchNodes" other) | timeloopfe.v4.arch.ArchNodes | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.ArchNodes | |
parse_expressions(self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | timeloopfe.v4.arch.ArchNodes |
+ TimeloopFE
+
+ |
+
A collection of architectural nodes. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
"ArchNodes" | combine (self, "ArchNodes" other) |
Combines two ArchNodes instances. | |
__repr__ (self) | |
Returns a string representation of the ArchNodes instance. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parses expressions in the ArchNodes instance. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A collection of architectural nodes.
+This class inherits from ArchNode
and ListNode
classes.
Attributes: None
+Methods: declare_attrs: Declares attributes for the architectural nodes. init: Initializes an instance of the ArchNodes
class. combine: Combines two ArchNodes
instances. repr: Returns a string representation of the ArchNodes
instance. parse_expressions: Parses expressions in the ArchNodes
instance.
timeloopfe.v4.arch.ArchNodes.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.ArchNode.
+ +timeloopfe.v4.arch.ArchNodes.__repr__ | +( | +self | ) | ++ |
Returns a string representation of the ArchNodes
instance.
Returns: A string representation of the ArchNodes
instance.
"ArchNodes" timeloopfe.v4.arch.ArchNodes.combine | +( | +self, | +|
+ | + | "ArchNodes" | other ) | +
Combines two ArchNodes
instances.
Args: other: Another ArchNodes
instance to combine with.
Returns: A new ArchNodes
instance that is the combination of self and other.
timeloopfe.v4.arch.ArchNodes.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +timeloopfe.v4.arch.ArchNodes.parse_expressions | +( | +self, | +|
+ | + | Optional[Dict[str, Any]] | symbol_table = None, | +
+ | + | Optional[set] | parsed_ids = None ) | +
Parses expressions in the ArchNodes
instance.
Args: symbol_table: A dictionary representing the symbol table. parsed_ids: A set of parsed IDs.
+Returns: The parsed ArchNodes
instance.
Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Architecture, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Architecture) | timeloopfe.v4.arch.Architecture | |
combine(self, "Architecture" other) | timeloopfe.v4.arch.Architecture | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Architecture |
+ TimeloopFE
+
+ |
+
An architecture. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
"Architecture" | combine (self, "Architecture" other) |
Combines this dictionary with another dictionary. | |
Public Member Functions inherited from timeloopfe.v4.arch.Branch | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse expressions in this node and all subnodes. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
An architecture.
+Attributes: version (Union[str, Number]): The version of the architecture.
+timeloopfe.v4.arch.Architecture.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Branch.
+ +"Architecture" timeloopfe.v4.arch.Architecture.combine | +( | +self, | +|
+ | + | "Architecture" | other ) | +
Combines this dictionary with another dictionary.
+If a key is present in both dictionaries, the values are combined. Otherwise, the key is taken from whichever dictionary has it.
+ +Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.arch.Architecture.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Branch.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Attributes, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Attributes) | timeloopfe.v4.arch.Attributes | |
_default_parse (defined in timeloopfe.v4.arch.Attributes) | timeloopfe.v4.arch.Attributes | protected |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Attributes |
+ TimeloopFE
+
+ |
+
A class representing attributes for a node in the architecture. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Protected Attributes | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
A class representing attributes for a node in the architecture.
+Attributes: has_power_gating (bool): Indicates whether the node has power gating.
+timeloopfe.v4.arch.Attributes.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.arch.Attributes.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +Reimplemented in timeloopfe.v4.arch.StorageAttributes, and timeloopfe.v4.arch.StorageAttributes.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Branch, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Branch) | timeloopfe.v4.arch.Branch | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Branch | |
parse_expressions(self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | timeloopfe.v4.arch.Branch |
+ TimeloopFE
+
+ |
+
A branch in the architecture. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse expressions in this node and all subnodes. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A branch in the architecture.
+Attributes: nodes (ArchNodes): List of child nodes in the branch.
+timeloopfe.v4.arch.Branch.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.ArchNode.
+ +timeloopfe.v4.arch.Branch.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +Reimplemented in timeloopfe.v4.arch.Architecture.
+ +timeloopfe.v4.arch.Branch.parse_expressions | +( | +self, | +|
+ | + | Optional[Dict[str, Any]] | symbol_table = None, | +
+ | + | Optional[set] | parsed_ids = None ) | +
Parse expressions in this node and all subnodes.
+Args: symbol_table: A dictionary mapping variable names to values. parsed_ids: A set of IDs of nodes that have already been parsed. callfunc: A function to call on each node after parsing.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Component, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Component) | timeloopfe.v4.arch.Component | |
_check_unrecognized(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Component) | timeloopfe.v4.arch.Component | protected |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Component |
+ TimeloopFE
+
+ |
+
A component in the architecture. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.arch.Leaf | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse the expressions in the leaf node. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Protected Member Functions | |
_check_unrecognized (self, *args, **kwargs) | |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A component in the architecture.
+Attributes: _class (str): The class of the component. subclass (str): The subclass of the component. required_actions (List[str]): The list of required actions for the component. area_share (float): The area share of the component. enabled (bool): Indicates whether the component is enabled or not.
+timeloopfe.v4.arch.Component.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Leaf.
+ +
+
|
+ +protected | +
Reimplemented from timeloopfe.common.nodes.Node.
+ +timeloopfe.v4.arch.Component.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Leaf.
+ +Reimplemented in timeloopfe.v4.arch.Storage, timeloopfe.v4.arch.Compute, timeloopfe.v4.arch.Network, and timeloopfe.v4.arch.Nothing.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Compute, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Compute) | timeloopfe.v4.arch.Compute | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Compute |
+ TimeloopFE
+
+ |
+
A compute component. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.arch.Leaf | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse the expressions in the leaf node. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.v4.arch.Component | |
_check_unrecognized (self, *args, **kwargs) | |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A compute component.
+timeloopfe.v4.arch.Compute.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Component.
+ +timeloopfe.v4.arch.Compute.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Component.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Container, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Container) | timeloopfe.v4.arch.Container | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Container |
+ TimeloopFE
+
+ |
+
A container in the architecture. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.arch.Leaf | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse the expressions in the leaf node. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A container in the architecture.
+timeloopfe.v4.arch.Container.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Leaf.
+ +timeloopfe.v4.arch.Container.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Leaf.
+ +
+ TimeloopFE
+
+ |
+
A hierarchical branch in the architecture. + More...
++Additional Inherited Members | |
Public Member Functions inherited from timeloopfe.v4.arch.Branch | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse expressions in this node and all subnodes. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A hierarchical branch in the architecture.
+
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Leaf, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Leaf) | timeloopfe.v4.arch.Leaf | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Leaf | |
parse_expressions(self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | timeloopfe.v4.arch.Leaf |
+ TimeloopFE
+
+ |
+
A leaf node in the architecture hierarchy. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse the expressions in the leaf node. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A leaf node in the architecture hierarchy.
+Attributes: name (str): The name of the leaf node. attributes (Attributes): The attributes associated with the leaf node. spatial (Spatial): The spatial attributes of the leaf node. constraints (ConstraintGroup): The constraint group associated with the leaf node. sparse_optimizations (SparseOptimizationGroup): The sparse optimization group associated with the leaf node.
+timeloopfe.v4.arch.Leaf.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.ArchNode.
+ +timeloopfe.v4.arch.Leaf.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +Reimplemented in timeloopfe.v4.arch.Component, timeloopfe.v4.arch.Container, timeloopfe.v4.arch.Storage, timeloopfe.v4.arch.Compute, timeloopfe.v4.arch.Network, and timeloopfe.v4.arch.Nothing.
+ +timeloopfe.v4.arch.Leaf.parse_expressions | +( | +self, | +|
+ | + | Optional[Dict[str, Any]] | symbol_table = None, | +
+ | + | Optional[set] | parsed_ids = None ) | +
Parse the expressions in the leaf node.
+Args: symbol_table (Optional[Dict[str, Any]]): The symbol table for parsing expressions. parsed_ids (Optional[set]): The set of parsed IDs.
+Returns: Attributes: The parsed attributes.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Network, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Network) | timeloopfe.v4.arch.Network | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Network |
+ TimeloopFE
+
+ |
+
A network component. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.arch.Leaf | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse the expressions in the leaf node. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.v4.arch.Component | |
_check_unrecognized (self, *args, **kwargs) | |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A network component.
+This class inherits from the Component class and provides additional functionality specific to networks.
+timeloopfe.v4.arch.Network.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Component.
+ +timeloopfe.v4.arch.Network.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Component.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Networks, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Networks |
+ TimeloopFE
+
+ |
+
A list of networks in the architecture. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of networks in the architecture.
+timeloopfe.v4.arch.Networks.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Nothing, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Nothing) | timeloopfe.v4.arch.Nothing | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Nothing |
+ TimeloopFE
+
+ |
+
A class representing a 'nothing' component. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.arch.Leaf | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse the expressions in the leaf node. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.v4.arch.Component | |
_check_unrecognized (self, *args, **kwargs) | |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A class representing a 'nothing' component.
+This class inherits from the Component class and provides a default implementation for the 'nothing' component.
+Attributes: name (str): The name of the component. class (str): The class of the component.
+timeloopfe.v4.arch.Nothing.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Component.
+ +timeloopfe.v4.arch.Nothing.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Component.
+ +
+ TimeloopFE
+
+ |
+
A parallel branch in the architecture. + More...
++Additional Inherited Members | |
Public Member Functions inherited from timeloopfe.v4.arch.Branch | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse expressions in this node and all subnodes. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A parallel branch in the architecture.
+
+ TimeloopFE
+
+ |
+
" A pipelined branch in the architecture. + More...
++Additional Inherited Members | |
Public Member Functions inherited from timeloopfe.v4.arch.Branch | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse expressions in this node and all subnodes. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
" A pipelined branch in the architecture.
+
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Spatial, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Spatial) | timeloopfe.v4.arch.Spatial | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Spatial | |
get_fanout(self) (defined in timeloopfe.v4.arch.Spatial) | timeloopfe.v4.arch.Spatial | |
to_fanout_string(self) (defined in timeloopfe.v4.arch.Spatial) | timeloopfe.v4.arch.Spatial | |
validate_fanout(self) (defined in timeloopfe.v4.arch.Spatial) | timeloopfe.v4.arch.Spatial |
+ TimeloopFE
+
+ |
+
A spatial configuration in a system architecture. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
+ | validate_fanout (self) |
+ | get_fanout (self) |
+ | to_fanout_string (self) |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A spatial configuration in a system architecture.
+Attributes: meshX (int): The number of elements in the X dimension of the mesh. meshY (int): The number of elements in the Y dimension of the mesh. get_fanout (Callable): A function that returns the fanout of the spatial configuration.
+timeloopfe.v4.arch.Spatial.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.arch.Spatial.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.Storage, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.Storage) | timeloopfe.v4.arch.Storage | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.Storage |
+ TimeloopFE
+
+ |
+
A storage component. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.arch.Leaf | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse the expressions in the leaf node. | |
Public Member Functions inherited from timeloopfe.v4.arch.ArchNode | |
"Leaf" | name2leaf (self, str name) |
Finds a leaf node with the given name. | |
+"Leaf" | find (self, *args, **kwargs) |
Alias for name2leaf function. | |
"constraints.ConstraintGroup" | name2constraints (self, str name) |
Retrieves the constraints of a leaf node with the given name. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Protected Member Functions inherited from timeloopfe.v4.arch.Component | |
_check_unrecognized (self, *args, **kwargs) | |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
A storage component.
+timeloopfe.v4.arch.Storage.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Component.
+ +timeloopfe.v4.arch.Storage.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Component.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.arch.StorageAttributes, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.StorageAttributes) | timeloopfe.v4.arch.StorageAttributes | |
__init__(self, *args, **kwargs) (defined in timeloopfe.v4.arch.StorageAttributes) | timeloopfe.v4.arch.StorageAttributes | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.StorageAttributes | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.arch.StorageAttributes |
+ TimeloopFE
+
+ |
+
Represents the attributes of a storage element. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.v4.arch.Attributes | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Represents the attributes of a storage element.
+This class provides methods to declare and initialize various attributes related to a storage element, such as datawidth, technology, number of banks, block size, cluster size, etc.
+Attributes: datawidth (Union[str, int]): The datawidth of the storage element. technology (Union[str, int]): The technology used for the storage element. n_banks (Union[str, int]): The number of banks in the storage element. block_size (Union[str, Number]): The block size of the storage element. cluster_size (Union[str, Number]): The cluster size of the storage element. depth (Union[str, Number]): The depth of the storage element. entries (Union[str, Number]): The number of entries in the storage element. sizeKB (Union[str, Number]): The size of the storage element in kilobytes. reduction_supported (Union[str, bool]): Indicates if reduction is supported. multiple_buffering (Union[str, Number]): The level of multiple buffering. min_utilization (Union[str, Number]): The minimum utilization of the storage element. shared_bandwidth (Union[str, Number]): The shared bandwidth of the storage element. read_bandwidth (Union[str, Number]): The read bandwidth of the storage element. write_bandwidth (Union[str, Number]): The write bandwidth of the storage element. network_fill_latency (Union[str, int]): The network fill latency of the storage element. network_drain_latency (Union[str, int]): The network drain latency of the storage element. allow_overbooking (Union[str, bool]): Indicates if overbooking is allowed. metadata_block_size (Union[str, int]): The block size of the metadata storage. metadata_datawidth (Union[str, int]): The datawidth of the metadata storage. metadata_storage_width (Union[str, int]): The storage width of the metadata storage. metadata_storage_depth (Union[str, int]): The storage depth of the metadata storage. concordant_compressed_tile_traversal (Union[str, bool]): Indicates if concordant compressed tile traversal is supported. tile_partition_supported (Union[str, bool]): Indicates if tile partition is supported. decompression_supported (Union[str, bool]): Indicates if decompression is supported. compression_supported (Union[str, bool]): Indicates if compression is supported.
+timeloopfe.v4.arch.StorageAttributes.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Attributes.
+ +timeloopfe.v4.arch.StorageAttributes.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.arch.Attributes.
+ +timeloopfe.v4.arch.StorageAttributes.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Attributes.
+ +timeloopfe.v4.arch.StorageAttributes.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.arch.Attributes.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.Action, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.components.Action) | timeloopfe.v4.components.Action | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.Action |
+ TimeloopFE
+
+ |
+
Represents an action that a component can perform. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Represents an action that a component can perform.
+Attributes: name (str): The name of the action. arguments (DictNode): The arguments of the action. subcomponents (ActionSubcomponentsList): The subcomponents of the action.
+timeloopfe.v4.components.Action.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.components.Action.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.ActionSubcomponentsList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.ActionSubcomponentsList |
+ TimeloopFE
+
+ |
+
A list of actions that may be taken as subactions of an action. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of actions that may be taken as subactions of an action.
+timeloopfe.v4.components.ActionSubcomponentsList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.ActionsList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.ActionsList |
+ TimeloopFE
+
+ |
+
A list of actions for a component. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of actions for a component.
+timeloopfe.v4.components.ActionsList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.ComponentAttributes, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.ComponentAttributes |
+ TimeloopFE
+
+ |
+
Represents the attributes of a component. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
__init__ (self, *args, __node_skip_parse=False, **kwargs) | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Represents the attributes of a component.
+timeloopfe.v4.components.ComponentAttributes.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.Components, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.components.Components) | timeloopfe.v4.components.Components | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.Components | |
parse_expressions(self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | timeloopfe.v4.components.Components |
+ TimeloopFE
+
+ |
+
A collection of components. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse expressions in this node and all subnodes. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A collection of components.
+Attributes: version (str): The version of the components. classes (FlatteningListNode): The list of classes associated with the components.
+timeloopfe.v4.components.Components.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.components.Components.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +timeloopfe.v4.components.Components.parse_expressions | +( | +self, | +|
+ | + | Optional[Dict[str, Any]] | symbol_table = None, | +
+ | + | Optional[set] | parsed_ids = None ) | +
Parse expressions in this node and all subnodes.
+Args: symbol_table: A dictionary mapping variable names to values. parsed_ids: A set of IDs of nodes that have already been parsed. callfunc: A function to call on each node after parsing.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.ComponentsList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.ComponentsList |
+ TimeloopFE
+
+ |
+
A list of components. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.FlatteningListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.FlatteningListNode | |
+ | _flatten (self) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of components.
+timeloopfe.v4.components.ComponentsList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.CompoundComponent, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.components.CompoundComponent) | timeloopfe.v4.components.CompoundComponent | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.CompoundComponent |
+ TimeloopFE
+
+ |
+
Represents a compound component. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Represents a compound component.
+Attributes: name (str): The name of the compound component. attributes (ComponentAttributes): The attributes of the compound component. subcomponents (SubcomponentList): The list of subcomponents. actions (ActionsList): The list of actions.
+timeloopfe.v4.components.CompoundComponent.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.components.CompoundComponent.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.Subcomponent, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.components.Subcomponent) | timeloopfe.v4.components.Subcomponent | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.Subcomponent |
+ TimeloopFE
+
+ |
+
A subcomponent. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A subcomponent.
+Attributes: name (str): The name of the subcomponent. attributes (ComponentAttributes): The attributes of the subcomponent. area_share (Union[Number, str]): The area share of the subcomponent.
+timeloopfe.v4.components.Subcomponent.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.components.Subcomponent.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.SubcomponentAction, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.components.SubcomponentAction) | timeloopfe.v4.components.SubcomponentAction | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.SubcomponentAction |
+ TimeloopFE
+
+ |
+
A subcomponent action. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A subcomponent action.
+timeloopfe.v4.components.SubcomponentAction.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.components.SubcomponentAction.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.SubcomponentActionGroup, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.components.SubcomponentActionGroup) | timeloopfe.v4.components.SubcomponentActionGroup | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.SubcomponentActionGroup |
+ TimeloopFE
+
+ |
+
A group of subactions taken by a particular subcomponent. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A group of subactions taken by a particular subcomponent.
+timeloopfe.v4.components.SubcomponentActionGroup.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.components.SubcomponentActionGroup.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.SubcomponentActionList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.SubcomponentActionList |
+ TimeloopFE
+
+ |
+
A list of subcomponent actions. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of subcomponent actions.
+timeloopfe.v4.components.SubcomponentActionList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.components.SubcomponentList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.components.SubcomponentList |
+ TimeloopFE
+
+ |
+
A list of subcomponents. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of subcomponents.
+timeloopfe.v4.components.SubcomponentList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Constraint, including all inherited members.
+
+ TimeloopFE
+
+ |
+
A constraint in the system. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
isempty (self) | |
Return True if this node is empty. | |
+ | clear_respecification (self, "Constraint" other, dict mine, dict others) |
+dict | list_attrs_to_dict (self, List[str] attrs) |
+dict | set_list_attrs_from_dict (self, dict d, Iterable[str] attrs=(), Type cast_to_type=list) |
+"Constraint" | combine_list_attrs (self, "Constraint" other, List[str] attrs) |
"Constraint" | combine (self, "Constraint" other) |
Combines this dictionary with another dictionary. | |
__str__ (self) | |
Return the name of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Protected Attributes | |
+ | _disjoint_dataspaces_lists |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
A constraint in the system.
+Args: type (str): The type of the constraint. target (str): The target of the constraint.
+Attributes: type (str): The type of the constraint. target (str): The target of the constraint.
+timeloopfe.v4.constraints.Constraint.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.constraints.Constraint.__str__ | +( | +self | ) | ++ |
Return the name of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +"Constraint" timeloopfe.v4.constraints.Constraint.combine | +( | +self, | +|
+ | + | "Constraint" | other ) | +
Combines this dictionary with another dictionary.
+If a key is present in both dictionaries, the values are combined. Otherwise, the key is taken from whichever dictionary has it.
+ +Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.constraints.Constraint.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +Reimplemented in timeloopfe.v4.constraints.Iteration, timeloopfe.v4.constraints.Spatial, timeloopfe.v4.constraints.Temporal, timeloopfe.v4.constraints.Dataspace, timeloopfe.v4.constraints.MaxOverbookedProportion, and timeloopfe.v4.constraints.Utilization.
+ +timeloopfe.v4.constraints.Constraint.isempty | +( | +self | ) | ++ |
Return True if this node is empty.
+Good to override.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.ConstraintGroup, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.constraints.ConstraintGroup) | timeloopfe.v4.constraints.ConstraintGroup | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.ConstraintGroup |
+ TimeloopFE
+
+ |
+
A group of constraints. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A group of constraints.
+Attributes: spatial (Spatial): The spatial constraint. temporal (Temporal): The temporal constraint. dataspace (Dataspace): The dataspace constraint. max_overbooked_proportion (MaxOverbookedProportion): The maximum overbooked proportion constraint.
+timeloopfe.v4.constraints.ConstraintGroup.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.constraints.ConstraintGroup.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Constraints, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.constraints.Constraints) | timeloopfe.v4.constraints.Constraints | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.Constraints |
+ TimeloopFE
+
+ |
+
Class representing constraints. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Class representing constraints.
+Attributes: version (str): The version of the constraints. targets (ConstraintsList): The list of targets for the constraints.
+timeloopfe.v4.constraints.Constraints.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.constraints.Constraints.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.ConstraintsList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.ConstraintsList |
+ TimeloopFE
+
+ |
+
A class representing a list of constraints. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.CombineableListNode | |
"CombineableListNode" | combine (self, "CombineableListNode" other) |
Extends this list with the contents of another list. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A class representing a list of constraints.
+timeloopfe.v4.constraints.ConstraintsList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Dataspace, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.constraints.Dataspace) | timeloopfe.v4.constraints.Dataspace | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.Dataspace |
+ TimeloopFE
+
+ |
+
A constraint class for specifying dataspace properties. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.constraints.Constraint | |
isempty (self) | |
Return True if this node is empty. | |
+ | clear_respecification (self, "Constraint" other, dict mine, dict others) |
+dict | list_attrs_to_dict (self, List[str] attrs) |
+dict | set_list_attrs_from_dict (self, dict d, Iterable[str] attrs=(), Type cast_to_type=list) |
+"Constraint" | combine_list_attrs (self, "Constraint" other, List[str] attrs) |
"Constraint" | combine (self, "Constraint" other) |
Combines this dictionary with another dictionary. | |
__str__ (self) | |
Return the name of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.v4.constraints.Constraint | |
+ | _disjoint_dataspaces_lists |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A constraint class for specifying dataspace properties.
+Attributes: bypass (List[str]): List of bypass dataspace names. keep (List[str]): List of keep dataspace names. no_coalesce (List[str]): List of no_coalesce dataspace names.
+timeloopfe.v4.constraints.Dataspace.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.constraints.Constraint.
+ +timeloopfe.v4.constraints.Dataspace.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.constraints.Constraint.
+ +
+ TimeloopFE
+
+ |
+
A loop factor (e.g., P=1) + More...
+A loop factor (e.g., P=1)
+
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Factors, including all inherited members.
+
+ TimeloopFE
+
+ |
+
A list of factors used to describe loop bounds. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
List[Tuple[str, str, str]] | get_split_factors (self) |
Get a list of split factors. | |
List[str] | get_factor_names (self) |
Get a list of factor names. | |
remove_factor (self, str name) | |
Remove a factor from the list of factors. | |
add_eq_factor (self, str name, int value, bool overwrite=False) | |
Adds an equality factor to the constraint. | |
add_leq_factor (self, str name, int value, bool overwrite=False) | |
Adds a less than or equal to (<=) factor constraint to the list of constraints. | |
add_geq_factor (self, str name, int value, bool overwrite=False) | |
Adds a greater-than-or-equal factor constraint to the constraint set. | |
+ | check_unique_remove_repeat (self) |
"Factors" | combine (self, "Factors" other) |
Extends this list with the contents of another list. | |
get_minimum_product (self, problem.Instance problem_instance) | |
Calculates the minimum product of all factors in this list. | |
bool | add_eq_factor_iff_not_exists (self, str name, int value) |
Add an "name=value" factor iff "name" is not already in the factor list. | |
bool | add_leq_factor_iff_not_exists (self, str name, int value) |
Add an "name<=value" factor iff "name" is not already in the factor list. | |
+Optional[str] | name2factor (self, str name) |
Return the factor with the given name, or None if not found. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Static Public Member Functions | |
check_valid_factor (f, bool _allow_invalid=True) | |
Check if a factor is valid. | |
"Factors" | factory (Union[str, list] x) |
Create a Factors object from a string or a list. | |
Tuple[str, str, int] | splitfactor (str x) |
Split a factor string into its components. | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
+Protected Member Functions | |
+ | _check_factors_compatible (self, a, b) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of factors used to describe loop bounds.
+timeloopfe.v4.constraints.Factors.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.ListNode.
+ +timeloopfe.v4.constraints.Factors.add_eq_factor | +( | +self, | +|
+ | + | str | name, | +
+ | + | int | value, | +
+ | + | bool | overwrite = False ) | +
Adds an equality factor to the constraint.
+Args: name (str): The name of the factor. value (int): The value of the factor. overwrite (bool, optional): If True, removes any existing factor with the same name before adding the new one. Defaults to False.
+ +bool timeloopfe.v4.constraints.Factors.add_eq_factor_iff_not_exists | +( | +self, | +|
+ | + | str | name, | +
+ | + | int | value ) | +
Add an "name=value" factor iff "name" is not already in the factor list.
+Return True if the factor was added.
+ +timeloopfe.v4.constraints.Factors.add_geq_factor | +( | +self, | +|
+ | + | str | name, | +
+ | + | int | value, | +
+ | + | bool | overwrite = False ) | +
Adds a greater-than-or-equal factor constraint to the constraint set.
+Args: name (str): The name of the factor. value (int): The value of the factor. overwrite (bool, optional): If True, removes any existing factor with the same name before adding the new one. Defaults to False.
+ +timeloopfe.v4.constraints.Factors.add_leq_factor | +( | +self, | +|
+ | + | str | name, | +
+ | + | int | value, | +
+ | + | bool | overwrite = False ) | +
Adds a less than or equal to (<=) factor constraint to the list of constraints.
+Args: name (str): The name of the factor. value (int): The value of the factor. overwrite (bool, optional): If True, removes any existing factor with the same name before adding the new one. Defaults to False.
+ +bool timeloopfe.v4.constraints.Factors.add_leq_factor_iff_not_exists | +( | +self, | +|
+ | + | str | name, | +
+ | + | int | value ) | +
Add an "name<=value" factor iff "name" is not already in the factor list.
+Return True if the factor was added.
+ +
+
|
+ +static | +
Check if a factor is valid.
+Parameters:
Returns:
Raises:
"Factors" timeloopfe.v4.constraints.Factors.combine | +( | +self, | +|
+ | + | "Factors" | other ) | +
Extends this list with the contents of another list.
+ +Reimplemented from timeloopfe.common.nodes.CombineableListNode.
+ +timeloopfe.v4.constraints.Factors.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+
|
+ +static | +
Create a Factors object from a string or a list.
+Args: x (Union[str, list]): The input string or list.
+Returns: Factors: The Factors object created from the input.
+Raises: None
+ +List[str] timeloopfe.v4.constraints.Factors.get_factor_names | +( | +self | ) | ++ |
Get a list of factor names.
+Example: get_factor_names() returns ["X", "Y", "Z"] if the factors are "X=123", "Y=456", and "Z=789".
+ +timeloopfe.v4.constraints.Factors.get_minimum_product | +( | +self, | +|
+ | + | problem.Instance | problem_instance ) | +
Calculates the minimum product of all factors in this list.
+Args: problem_instance (problem.Instance): The problem instance.
+Returns: int: The calculated minimum product.
+ +List[Tuple[str, str, str]] timeloopfe.v4.constraints.Factors.get_split_factors | +( | +self | ) | ++ |
Get a list of split factors.
+Example: get_split_factors() returns [("X", "=", "123"), ("Y", "=", "456"), ("Z", "=", "789")] if the factors are "X=123", "Y=456", and "Z=789".
+ +timeloopfe.v4.constraints.Factors.remove_factor | +( | +self, | +|
+ | + | str | name ) | +
Remove a factor from the list of factors.
+Args: name (str): The name of the factor to be removed.
+Raises: None
+Example: remove_factor("X") removes the factor "X=123" from the list of factors.
+ +
+
|
+ +static | +
Split a factor string into its components.
+Args: x (str): The factor string to be split.
+Returns: Tuple[str, str, int]: A tuple containing the factor name, the comparison operator, and the factor value.
+Raises: ValueError: If none of the valid comparison operators are found in the factor string.
+Example: splitfactor("X=123") returns ("X", "=", 123)
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Iteration, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.constraints.Iteration) | timeloopfe.v4.constraints.Iteration | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.Iteration |
+ TimeloopFE
+
+ |
+
An iteration (spatial or temporal) constraint. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.constraints.Constraint | |
isempty (self) | |
Return True if this node is empty. | |
+ | clear_respecification (self, "Constraint" other, dict mine, dict others) |
+dict | list_attrs_to_dict (self, List[str] attrs) |
+dict | set_list_attrs_from_dict (self, dict d, Iterable[str] attrs=(), Type cast_to_type=list) |
+"Constraint" | combine_list_attrs (self, "Constraint" other, List[str] attrs) |
"Constraint" | combine (self, "Constraint" other) |
Combines this dictionary with another dictionary. | |
__str__ (self) | |
Return the name of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.v4.constraints.Constraint | |
+ | _disjoint_dataspaces_lists |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
An iteration (spatial or temporal) constraint.
+Attributes: factors (Factors): The factors associated with the iteration. permutation (Permutation): The permutation associated with the iteration. default_max_factor (int): The default maximum factor value. default_min_factor (int): The default minimum factor value. remainders (int): The remainders associated with the iteration.
+timeloopfe.v4.constraints.Iteration.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.constraints.Constraint.
+ +timeloopfe.v4.constraints.Iteration.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.constraints.Constraint.
+ +Reimplemented in timeloopfe.v4.constraints.Spatial, and timeloopfe.v4.constraints.Temporal.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.MaxOverbookedProportion, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.constraints.MaxOverbookedProportion) | timeloopfe.v4.constraints.MaxOverbookedProportion | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.MaxOverbookedProportion |
+ TimeloopFE
+
+ |
+
A constraint that defines the maximum overbooked proportion. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.constraints.Constraint | |
isempty (self) | |
Return True if this node is empty. | |
+ | clear_respecification (self, "Constraint" other, dict mine, dict others) |
+dict | list_attrs_to_dict (self, List[str] attrs) |
+dict | set_list_attrs_from_dict (self, dict d, Iterable[str] attrs=(), Type cast_to_type=list) |
+"Constraint" | combine_list_attrs (self, "Constraint" other, List[str] attrs) |
"Constraint" | combine (self, "Constraint" other) |
Combines this dictionary with another dictionary. | |
__str__ (self) | |
Return the name of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.v4.constraints.Constraint | |
+ | _disjoint_dataspaces_lists |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A constraint that defines the maximum overbooked proportion.
+Attributes: proportion (float): The maximum overbooked proportion.
+timeloopfe.v4.constraints.MaxOverbookedProportion.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.constraints.Constraint.
+ +timeloopfe.v4.constraints.MaxOverbookedProportion.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.constraints.Constraint.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Permutation, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.Permutation | |
factory(Union[str, list] x) (defined in timeloopfe.v4.constraints.Permutation) | timeloopfe.v4.constraints.Permutation | static |
+ TimeloopFE
+
+ |
+
A permutation of ranks. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Static Public Member Functions | |
+"Permutation" | factory (Union[str, list] x) |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A permutation of ranks.
+timeloopfe.v4.constraints.Permutation.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.ProblemDataspaceList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.ProblemDataspaceList |
+ TimeloopFE
+
+ |
+
A list of problem dataspaces. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of problem dataspaces.
+timeloopfe.v4.constraints.ProblemDataspaceList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Spatial, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.constraints.Spatial) | timeloopfe.v4.constraints.Spatial | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.Spatial |
+ TimeloopFE
+
+ |
+
A spatial iteration constraint. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.constraints.Constraint | |
isempty (self) | |
Return True if this node is empty. | |
+ | clear_respecification (self, "Constraint" other, dict mine, dict others) |
+dict | list_attrs_to_dict (self, List[str] attrs) |
+dict | set_list_attrs_from_dict (self, dict d, Iterable[str] attrs=(), Type cast_to_type=list) |
+"Constraint" | combine_list_attrs (self, "Constraint" other, List[str] attrs) |
"Constraint" | combine (self, "Constraint" other) |
Combines this dictionary with another dictionary. | |
__str__ (self) | |
Return the name of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.v4.constraints.Constraint | |
+ | _disjoint_dataspaces_lists |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A spatial iteration constraint.
+Attributes: no_reuse (List[str]): A list of problem dataspaces that should not be reused. no_link_transfer (List[str]): A list of problem dataspaces that should not have link transfers. split (int): The number of splits for the spatial iteration.
+timeloopfe.v4.constraints.Spatial.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.constraints.Iteration.
+ +timeloopfe.v4.constraints.Spatial.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.constraints.Iteration.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Temporal, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.constraints.Temporal) | timeloopfe.v4.constraints.Temporal | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.Temporal |
+ TimeloopFE
+
+ |
+
A temporal iteration constraint. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.constraints.Constraint | |
isempty (self) | |
Return True if this node is empty. | |
+ | clear_respecification (self, "Constraint" other, dict mine, dict others) |
+dict | list_attrs_to_dict (self, List[str] attrs) |
+dict | set_list_attrs_from_dict (self, dict d, Iterable[str] attrs=(), Type cast_to_type=list) |
+"Constraint" | combine_list_attrs (self, "Constraint" other, List[str] attrs) |
"Constraint" | combine (self, "Constraint" other) |
Combines this dictionary with another dictionary. | |
__str__ (self) | |
Return the name of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.v4.constraints.Constraint | |
+ | _disjoint_dataspaces_lists |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A temporal iteration constraint.
+Attributes: no_reuse (List[str]): A list of problem dataspaces that should not be reused. rmw_first_update (List[str]): A list of problem dataspaces that should have RMW for the first update (rather than a write only).
+timeloopfe.v4.constraints.Temporal.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.constraints.Iteration.
+ +timeloopfe.v4.constraints.Temporal.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.constraints.Iteration.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.constraints.Utilization, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.constraints.Utilization) | timeloopfe.v4.constraints.Utilization | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.constraints.Utilization |
+ TimeloopFE
+
+ |
+
A constraint that defines the utilization of a component. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.v4.constraints.Constraint | |
isempty (self) | |
Return True if this node is empty. | |
+ | clear_respecification (self, "Constraint" other, dict mine, dict others) |
+dict | list_attrs_to_dict (self, List[str] attrs) |
+dict | set_list_attrs_from_dict (self, dict d, Iterable[str] attrs=(), Type cast_to_type=list) |
+"Constraint" | combine_list_attrs (self, "Constraint" other, List[str] attrs) |
"Constraint" | combine (self, "Constraint" other) |
Combines this dictionary with another dictionary. | |
__str__ (self) | |
Return the name of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.v4.constraints.Constraint | |
+ | _disjoint_dataspaces_lists |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A constraint that defines the utilization of a component.
+Attributes: min (float or str): The minimum utilization value. type (str): The type of the constraint, which is "utilization".
+timeloopfe.v4.constraints.Utilization.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.v4.constraints.Constraint.
+ +timeloopfe.v4.constraints.Utilization.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.v4.constraints.Constraint.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.globals.EnvironmentVariables, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.globals.EnvironmentVariables) | timeloopfe.v4.globals.EnvironmentVariables | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.globals.EnvironmentVariables |
+ TimeloopFE
+
+ |
+
Dictionary of environment variables. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Dictionary of environment variables.
+timeloopfe.v4.globals.EnvironmentVariables.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.globals.EnvironmentVariables.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.globals.ExpressionCustomFunctions, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.globals.ExpressionCustomFunctions) | timeloopfe.v4.globals.ExpressionCustomFunctions | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.globals.ExpressionCustomFunctions |
+ TimeloopFE
+
+ |
+
A list of paths to Python files containing functions to be used in expressions. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.CombineableListNode | |
"CombineableListNode" | combine (self, "CombineableListNode" other) |
Extends this list with the contents of another list. | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of paths to Python files containing functions to be used in expressions.
+timeloopfe.v4.globals.ExpressionCustomFunctions.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.ListNode.
+ +timeloopfe.v4.globals.ExpressionCustomFunctions.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.globals.Globals, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.globals.Globals) | timeloopfe.v4.globals.Globals | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.globals.Globals |
+ TimeloopFE
+
+ |
+
Top-level Globals key. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Top-level Globals key.
+Attributes: version (str): Version of the Timeloop file. environment_variables (EnvironmentVariables): Environment variables to be used. expression_custom_functions (ExpressionCustomFunctions): Paths to Python files containing functions to be used in expressions.
+timeloopfe.v4.globals.Globals.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.globals.Globals.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.mapper.Mapper, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.mapper.Mapper) | timeloopfe.v4.mapper.Mapper | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.mapper.Mapper |
+ TimeloopFE
+
+ |
+
A mapper object that holds various attributes and settings for mapping operations in Timeloop. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A mapper object that holds various attributes and settings for mapping operations in Timeloop.
+Attributes: version (str): The version of the mapper. out_prefix (str): The prefix for output files generated by the mapper. num_threads (int): The number of threads to use for mapping. optimization_metric (OptimizationMetrics): The optimization metric to use for mapping. search_size (int): The size of the search space for mapping. timeout (int): The timeout value for mapping operations. victory_condition (int): The victory condition for mapping. sync_interval (int): The synchronization interval for mapping. log_interval (int): The interval for logging mapping information. log_oaves (bool): Flag indicating whether to log OAVEs (Overall Average Energy). log_oaves_mappings (bool): Flag indicating whether to log OAVEs for each mapping. log_stats (bool): Flag indicating whether to log mapping statistics. log_suboptimal (bool): Flag indicating whether to log suboptimal mappings. live_status (bool): Flag indicating whether to display live mapping status. diagnostics (bool): Flag indicating whether to enable mapping diagnostics. penalize_consecutive_bypass_fails (bool): Flag indicating whether to penalize consecutive bypass fails. emit_whoop_nest (bool): Flag indicating whether to emit the Whoop nest. algorithm (str): The mapping algorithm to use. filter_revisits (bool): Flag indicating whether to filter revisited mappings. max_permutations_per_if_visit (int): The maximum number of permutations per index factorization visit.
+timeloopfe.v4.mapper.Mapper.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.mapper.Mapper.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.mapper.OptimizationMetrics, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.mapper.OptimizationMetrics) | timeloopfe.v4.mapper.OptimizationMetrics | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.mapper.OptimizationMetrics |
+ TimeloopFE
+
+ |
+
A list of optimization metrics including delay, energy, EDP, and last level accesses. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of optimization metrics including delay, energy, EDP, and last level accesses.
+timeloopfe.v4.mapper.OptimizationMetrics.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.ListNode.
+ +timeloopfe.v4.mapper.OptimizationMetrics.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.mapspace.Mapspace, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.mapspace.Mapspace) | timeloopfe.v4.mapspace.Mapspace | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.mapspace.Mapspace |
+ TimeloopFE
+
+ |
+
Top-level mapspace object. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Top-level mapspace object.
+Attributes: version (str): The version of the mapspace. template (str): The template to use for the mapspace. "ruby" for imperfect factorization, any other string for perfect factorization.
+timeloopfe.v4.mapspace.Mapspace.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.mapspace.Mapspace.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.problem.DataSpace, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.problem.DataSpace) | timeloopfe.v4.problem.DataSpace | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.problem.DataSpace |
+ TimeloopFE
+
+ |
+
A data space object. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A data space object.
+Attributes: name (str): The name of the data space. projection (list): The projection of the data space. read_write (str, bool, int): The read-write attribute of the data space. factors (list): The factors derived from the projection.
+timeloopfe.v4.problem.DataSpace.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.problem.DataSpace.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.problem.Density, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.problem.Density) | timeloopfe.v4.problem.Density | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.problem.Density |
+ TimeloopFE
+
+ |
+
A Density object represents the density and distribution of a workload tensor. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A Density object represents the density and distribution of a workload tensor.
+Attributes: density (Number or str): The density of the workload tensor. distribution (str): The distribution type of the workload tensor. band_width (int): The band width of the workload tensor (for banded distribution). workload_tensor_size (int): The size of the workload tensor (for hypergeometric distribution).
+timeloopfe.v4.problem.Density.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.problem.Density.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.problem.DensityList, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.problem.DensityList) | timeloopfe.v4.problem.DensityList | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.problem.DensityList |
+ TimeloopFE
+
+ |
+
A list of densities for each data space. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of densities for each data space.
+timeloopfe.v4.problem.DensityList.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.problem.DensityList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.problem.Instance, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.problem.Instance) | timeloopfe.v4.problem.Instance | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.problem.Instance |
+ TimeloopFE
+
+ |
+
An problem instance object. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
An problem instance object.
+Attributes: name (str): The name of the instance. data_spaces (DataSpaceList): The data spaces of the instance. densities (DensityList): The densities of each data space.
+timeloopfe.v4.problem.Instance.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.problem.Instance.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.problem.Problem, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.problem.Problem) | timeloopfe.v4.problem.Problem | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.problem.Problem |
+ TimeloopFE
+
+ |
+
The top-level problem object in Timeloop. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
The top-level problem object in Timeloop.
+Attributes: version (str): The version of the problem. instance (Instance): The instance object for the problem. shape (Shape): The shape object for the problem.
+timeloopfe.v4.problem.Problem.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.problem.Problem.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.problem.ProblemDataspaceList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.problem.ProblemDataspaceList |
+ TimeloopFE
+
+ |
+
A list of data spaces in the problem. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of data spaces in the problem.
+timeloopfe.v4.problem.ProblemDataspaceList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.problem.Shape, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.problem.Shape) | timeloopfe.v4.problem.Shape | |
dataspace2dims(self, Union[str, List[str]] name) | timeloopfe.v4.problem.Shape | |
dataspace2unique_dims(self, str name) | timeloopfe.v4.problem.Shape | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.problem.Shape | |
name2dataspace(self, Union[str, List[str]] name) | timeloopfe.v4.problem.Shape |
+ TimeloopFE
+
+ |
+
Problem shape object. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Union["DataSpace", List["DataSpace"]] | name2dataspace (self, Union[str, List[str]] name) |
Convert the name of a data space to the corresponding DataSpace object(s). | |
List[str] | dataspace2dims (self, Union[str, List[str]] name) |
Convert the name(s) of data space(s) to the corresponding dimensions. | |
List[str] | dataspace2unique_dims (self, str name) |
Get the unique dimensions associated with a specific data space. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Problem shape object.
+Attributes: name (str): The name of the shape. dimensions (ListNode): The dimensions of the shape. data_spaces (ProblemDataspaceList): The data spaces of the shape. coefficients (ListNode): The coefficients of the shape.
+timeloopfe.v4.problem.Shape.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +List[str] timeloopfe.v4.problem.Shape.dataspace2dims | +( | +self, | +|
+ | + | Union[str, List[str]] | name ) | +
Convert the name(s) of data space(s) to the corresponding dimensions.
+Args: name (Union[str, List[str]]): The name(s) of the data space(s) to convert.
+Returns: List[str]: The corresponding dimensions.
+Raises: ValueError: If the data space with the given name is not found.
+ +List[str] timeloopfe.v4.problem.Shape.dataspace2unique_dims | +( | +self, | +|
+ | + | str | name ) | +
Get the unique dimensions associated with a specific data space.
+Args: name (str): The name of the data space.
+Returns: List[str]: The unique dimensions associated with the data space.
+ +timeloopfe.v4.problem.Shape.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +Union["DataSpace", List["DataSpace"]] timeloopfe.v4.problem.Shape.name2dataspace | +( | +self, | +|
+ | + | Union[str, List[str]] + | name ) | +
Convert the name of a data space to the corresponding DataSpace object(s).
+Args: name (Union[str, List[str]]): The name(s) of the data space(s) to convert.
+Returns: Union[DataSpace, List[DataSpace]]: The corresponding DataSpace object(s).
+Raises: ValueError: If the data space with the given name is not found.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor) | timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor | |
_process_target(self, x, Specification spec) (defined in timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor) | timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor | protected |
declare_attrs(self, *args, **kwargs) | timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor | |
process(self, Specification spec) | timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor |
+ TimeloopFE
+
+ |
+
Takes constraints from constraints lists and attaches them to objects in the architecture. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
process (self, Specification spec) | |
Process the specification. | |
declare_attrs (self, *args, **kwargs) | |
Initialize the attributes that the processor is responsible for. | |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Protected Member Functions | |
+ | _process_target (self, x, Specification spec) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
Takes constraints from constraints lists and attaches them to objects in the architecture.
+timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor.declare_attrs | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes that the processor is responsible for.
+!
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor.process | +( | +self, | +|
+ | + | Specification | spec ) | +
Process the specification.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor) | timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor | |
declare_attrs(self) | timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor | |
get_constrained_dims(self, Factors factors, Specification spec) (defined in timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor) | timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor | |
get_unconstrained_dims(self, Specification spec) (defined in timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor) | timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor | |
process(self, Specification spec) | timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor |
+ TimeloopFE
+
+ |
+
Defines constraint macros to be used for simplifying constraint specification. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
declare_attrs (self) | |
Initialize the attributes that the processor is responsible for. | |
+Dict[str, int] | get_unconstrained_dims (self, Specification spec) |
+Dict[str, int] | get_constrained_dims (self, Factors factors, Specification spec) |
process (self, Specification spec) | |
Process the specification. | |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
Defines constraint macros to be used for simplifying constraint specification.
+Iteration constraint macros:
Dataspace constraint macros:
timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor.declare_attrs | +( | +self | ) | ++ |
Initialize the attributes that the processor is responsible for.
+!
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor.process | +( | +self, | +|
+ | + | Specification | spec ) | +
Process the specification.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor, including all inherited members.
+_get_kept_dataspaces(self, Node b) (defined in timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor) | timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor | protected |
_parse_branch(self, Branch branch, Set[str] dataspaces, Specification spec) (defined in timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor) | timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor | protected |
get_problem_ds_names(self, spec) (defined in timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor) | timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor | |
process(self, Specification spec) | timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor |
+ TimeloopFE
+
+ |
+
Resolves which data spaces are kept in which branches. + More...
++Public Member Functions | |
+Set[str] | get_problem_ds_names (self, spec) |
process (self, Specification spec) | |
Process the specification. | |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
+ | __init__ (self, Optional["Specification"] spec=None) |
declare_attrs (self) | |
Initialize the attributes that the processor is responsible for. | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Protected Member Functions | |
+Set[str] | _get_kept_dataspaces (self, Node b) |
+Set[str] | _parse_branch (self, Branch branch, Set[str] dataspaces, Specification spec) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
Resolves which data spaces are kept in which branches.
+timeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor.process | +( | +self, | +|
+ | + | Specification | spec ) | +
Process the specification.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.processors.enable_dummy_table.EnableDummyTableProcessor, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.processors.enable_dummy_table.EnableDummyTableProcessor) | timeloopfe.v4.processors.enable_dummy_table.EnableDummyTableProcessor | |
process(self, Specification spec) | timeloopfe.v4.processors.enable_dummy_table.EnableDummyTableProcessor |
+ TimeloopFE
+
+ |
+
Enable the dummy table for Accelergy to placeholder energy/area. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
process (self, Specification spec) | |
Process the specification. | |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
declare_attrs (self) | |
Initialize the attributes that the processor is responsible for. | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
Enable the dummy table for Accelergy to placeholder energy/area.
+timeloopfe.v4.processors.enable_dummy_table.EnableDummyTableProcessor.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.v4.processors.enable_dummy_table.EnableDummyTableProcessor.process | +( | +self, | +|
+ | + | Specification | spec ) | +
Process the specification.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.processors.permutation_optimizer.PermutationOptimizerProcessor, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.processors.permutation_optimizer.PermutationOptimizerProcessor) | timeloopfe.v4.processors.permutation_optimizer.PermutationOptimizerProcessor | |
process(self, Specification spec) | timeloopfe.v4.processors.permutation_optimizer.PermutationOptimizerProcessor |
+ TimeloopFE
+
+ |
+
Optimizes permutation by pruning superfluous permutations. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
process (self, Specification spec) | |
Process the specification. | |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
declare_attrs (self) | |
Initialize the attributes that the processor is responsible for. | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
Optimizes permutation by pruning superfluous permutations.
+timeloopfe.v4.processors.permutation_optimizer.PermutationOptimizerProcessor.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.v4.processors.permutation_optimizer.PermutationOptimizerProcessor.process | +( | +self, | +|
+ | + | Specification | spec ) | +
Process the specification.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.processors.required_actions.RequiredActionsProcessor, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.processors.required_actions.RequiredActionsProcessor) | timeloopfe.v4.processors.required_actions.RequiredActionsProcessor | |
check_compute(self, Component elem) (defined in timeloopfe.v4.processors.required_actions.RequiredActionsProcessor) | timeloopfe.v4.processors.required_actions.RequiredActionsProcessor | |
check_storage(self, Storage elem) (defined in timeloopfe.v4.processors.required_actions.RequiredActionsProcessor) | timeloopfe.v4.processors.required_actions.RequiredActionsProcessor | |
process(self, Specification spec) | timeloopfe.v4.processors.required_actions.RequiredActionsProcessor |
+ TimeloopFE
+
+ |
+
Ensures that all components have actions defined for Accelergy Storage: + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
+ | check_storage (self, Storage elem) |
+ | check_compute (self, Component elem) |
process (self, Specification spec) | |
Process the specification. | |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
declare_attrs (self) | |
Initialize the attributes that the processor is responsible for. | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
Ensures that all components have actions defined for Accelergy Storage:
+DEPRECATED. NOW ALL OF THE FOLLOWING ARE NOT REQUIRED. Deprecated because: Skipped/gated actions can just be no action decompression_count/compression_count is not supported in many of the plug-ins that Sparseloop uses
+timeloopfe.v4.processors.required_actions.RequiredActionsProcessor.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.v4.processors.required_actions.RequiredActionsProcessor.process | +( | +self, | +|
+ | + | Specification | spec ) | +
Process the specification.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.processors.sparse_opt_attacher.SparseOptAttacherProcessor, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.processors.sparse_opt_attacher.SparseOptAttacherProcessor) | timeloopfe.v4.processors.sparse_opt_attacher.SparseOptAttacherProcessor | |
process(self, Specification spec) | timeloopfe.v4.processors.sparse_opt_attacher.SparseOptAttacherProcessor |
+ TimeloopFE
+
+ |
+
Takes sparse optimizations from sparse optimizations lists and attaches them to the architecture. + More...
++Public Member Functions | |
__init__ (self, *args, **kwargs) | |
process (self, Specification spec) | |
Process the specification. | |
Public Member Functions inherited from timeloopfe.common.processor.Processor | |
declare_attrs (self) | |
Initialize the attributes that the processor is responsible for. | |
+ | get_index (self, type processor_type, "Specification" spec) |
Get the index of the processor in the list of processors. | |
must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
Ensure that this processor runs after another processor. | |
+ | add_attr (self, Node target, *args, **kwargs) |
+Additional Inherited Members | |
Public Attributes inherited from timeloopfe.common.processor.Processor | |
+ | logger |
+ | spec |
Takes sparse optimizations from sparse optimizations lists and attaches them to the architecture.
+timeloopfe.v4.processors.sparse_opt_attacher.SparseOptAttacherProcessor.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.processor.Processor.
+ +timeloopfe.v4.processors.sparse_opt_attacher.SparseOptAttacherProcessor.process | +( | +self, | +|
+ | + | Specification | spec ) | +
Process the specification.
+ +Reimplemented from timeloopfe.common.processor.Processor.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.ActionOptimization, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.ActionOptimization) | timeloopfe.v4.sparse_optimizations.ActionOptimization | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.ActionOptimization |
+ TimeloopFE
+
+ |
+
An action optimization. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
An action optimization.
+Attributes: type (str): The type of action optimization. One of "gating", "skipping", "spatial_skipping". options (ActionOptimizationOptionList): A list of action optimization options.
+timeloopfe.v4.sparse_optimizations.ActionOptimization.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.sparse_optimizations.ActionOptimization.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.ActionOptimizationList, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.ActionOptimizationList) | timeloopfe.v4.sparse_optimizations.ActionOptimizationList | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.ActionOptimizationList |
+ TimeloopFE
+
+ |
+
A list of action optimizations. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of action optimizations.
+timeloopfe.v4.sparse_optimizations.ActionOptimizationList.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.ListNode.
+ +timeloopfe.v4.sparse_optimizations.ActionOptimizationList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.ActionOptimizationOption, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.ActionOptimizationOption) | timeloopfe.v4.sparse_optimizations.ActionOptimizationOption | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.ActionOptimizationOption |
+ TimeloopFE
+
+ |
+
An action optimization option. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
An action optimization option.
+Attributes: target (str): The target of the optimization. condition_on (list): Which tensor(s) to condition on.
+timeloopfe.v4.sparse_optimizations.ActionOptimizationOption.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.sparse_optimizations.ActionOptimizationOption.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.ActionOptimizationOptionList, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.ActionOptimizationOptionList) | timeloopfe.v4.sparse_optimizations.ActionOptimizationOptionList | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.ActionOptimizationOptionList |
+ TimeloopFE
+
+ |
+
A list of action optimization options. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of action optimization options.
+timeloopfe.v4.sparse_optimizations.ActionOptimizationOptionList.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.ListNode.
+ +timeloopfe.v4.sparse_optimizations.ActionOptimizationOptionList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.ComputeOptimization, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.ComputeOptimization) | timeloopfe.v4.sparse_optimizations.ComputeOptimization | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.ComputeOptimization |
+ TimeloopFE
+
+ |
+
A compute optimization. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A compute optimization.
+Attributes: type (str): The type of compute optimization. One of "gating", "skipping". options (ActionOptimizationOptionList): A list of action optimization options.
+timeloopfe.v4.sparse_optimizations.ComputeOptimization.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.sparse_optimizations.ComputeOptimization.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.RepresentationDataSpace, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.RepresentationDataSpace) | timeloopfe.v4.sparse_optimizations.RepresentationDataSpace | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.RepresentationDataSpace |
+ TimeloopFE
+
+ |
+
Contains the representation format for a data space. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Contains the representation format for a data space.
+timeloopfe.v4.sparse_optimizations.RepresentationDataSpace.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.sparse_optimizations.RepresentationDataSpace.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.RepresentationFormat, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.RepresentationFormat) | timeloopfe.v4.sparse_optimizations.RepresentationFormat | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.RepresentationFormat |
+ TimeloopFE
+
+ |
+
A representation format sparse optimization. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A representation format sparse optimization.
+Attributes: data_spaces (RepresentationProblemDataspaceList): A list of data spaces.
+timeloopfe.v4.sparse_optimizations.RepresentationFormat.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.sparse_optimizations.RepresentationFormat.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.RepresentationProblemDataspaceList, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.RepresentationProblemDataspaceList) | timeloopfe.v4.sparse_optimizations.RepresentationProblemDataspaceList | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.RepresentationProblemDataspaceList |
+ TimeloopFE
+
+ |
+
A list of representation problem dataspaces. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of representation problem dataspaces.
+timeloopfe.v4.sparse_optimizations.RepresentationProblemDataspaceList.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.ListNode.
+ +timeloopfe.v4.sparse_optimizations.RepresentationProblemDataspaceList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.RepresentationRank, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.RepresentationRank) | timeloopfe.v4.sparse_optimizations.RepresentationRank | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.RepresentationRank |
+ TimeloopFE
+
+ |
+
A representation rank. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A representation rank.
+Attributes: name (str): The name of the rank. format (str): The format of the rank. One of "CP", "B", "RLE", "UOP". metadata_word_bits (int): The number of metadata word bits. payload_word_bits (int): The number of payload word bits. flattened_rankIDs (list): A list of flattened rank IDs.
+timeloopfe.v4.sparse_optimizations.RepresentationRank.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.sparse_optimizations.RepresentationRank.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.RepresentationRankList, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.RepresentationRankList) | timeloopfe.v4.sparse_optimizations.RepresentationRankList | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.RepresentationRankList |
+ TimeloopFE
+
+ |
+
A list of ranks to be used in the representation format. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of ranks to be used in the representation format.
+timeloopfe.v4.sparse_optimizations.RepresentationRankList.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.ListNode.
+ +timeloopfe.v4.sparse_optimizations.RepresentationRankList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup) | timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup | |
isempty(self) | timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup |
+ TimeloopFE
+
+ |
+
A group of sparse optimizations. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
bool | isempty (self) |
Check if the sparse optimization group is empty. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A group of sparse optimizations.
+Attributes: target (str): The target of the sparse optimization group. action_optimization (ActionOptimization): The action optimization associated with the group. representation_format (RepresentationFormat): The representation format associated with the group. compute_optimization (ComputeOptimization): The compute optimization associated with the group.
+timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +bool timeloopfe.v4.sparse_optimizations.SparseOptimizationGroup.isempty | +( | +self | ) | ++ |
Check if the sparse optimization group is empty.
+Returns: bool: True if the group is empty, False otherwise.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.SparseOptimizations, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.sparse_optimizations.SparseOptimizations) | timeloopfe.v4.sparse_optimizations.SparseOptimizations | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.SparseOptimizations |
+ TimeloopFE
+
+ |
+
Top-level class for sparse optimizations. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
Top-level class for sparse optimizations.
+Attributes: version (str): The version of the sparse optimizations. targets (SparseOptimizationsList): A list of sparse optimizations.
+timeloopfe.v4.sparse_optimizations.SparseOptimizations.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.sparse_optimizations.SparseOptimizations.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.sparse_optimizations.SparseOptimizationsList, including all inherited members.
+declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.sparse_optimizations.SparseOptimizationsList |
+ TimeloopFE
+
+ |
+
A list of sparse optimizations. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
Public Member Functions inherited from timeloopfe.common.nodes.ListNode | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
check_unrecognized (self, bool ignore_empty=False, ignore_should_have_been_removed_by=False) | |
Check for unrecognized keys in this node and all subnodes. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
Any | __getitem__ (self, Union[str, int] key) |
Get the value at the given key or index. | |
__setitem__ (self, Union[str, int] key, Any value) | |
Set the value at the given key or index. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A list of sparse optimizations.
+
+
timeloopfe.v4.sparse_optimizations.SparseOptimizationsList.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.specification.Specification, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.specification.Specification) | timeloopfe.v4.specification.Specification | |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.specification.Specification | |
parse_expressions(self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | timeloopfe.v4.specification.Specification | |
variables (defined in timeloopfe.v4.specification.Specification) | timeloopfe.v4.specification.Specification |
+ TimeloopFE
+
+ |
+
A top-level class for the Timeloop specification. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None) | |
Parse expressions in the specification. | |
Public Member Functions inherited from timeloopfe.common.base_specification.BaseSpecification | |
+ | needs_processing (self, Optional[List["Processor"]] with_processors=None, Optional[List["Processor"]] to_run=None) |
process (self, Union["Processor", List["Processor"]] with_processors=None, bool check_types=False, bool check_types_ignore_empty=True, bool reprocess=True) | |
Process the specification with the given processors. | |
"Specification" | from_yaml_files (cls, *args, **kwargs) |
Create a Specification object from YAML files. | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Public Attributes | |
+ | variables |
Public Attributes inherited from timeloopfe.common.base_specification.BaseSpecification | |
+ | processors |
+ | spec |
+ | preserve_references |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Protected Member Functions inherited from timeloopfe.common.base_specification.BaseSpecification | |
+ | _claim_nodes (self, *args, **kwargs) |
+ | _processors_declare_attrs (self, *args, **kwargs) |
+ | _early_init_processors (self, List["Processor"] _required_processors, **kwargs) |
+ | _process (self) |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
Protected Attributes inherited from timeloopfe.common.base_specification.BaseSpecification | |
+ | _required_processors |
+ | _processor_attributes |
+ | _parsed_expressions |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
A top-level class for the Timeloop specification.
+Attributes: architecture: The top-level architecture description. components: List of compound components. constraints: Additional constraints on the architecture and mapping. mapping: Additional constraints on the architecture and mapping. problem: The problem specification. variables: Variables to be used in parsing. mapper: Directives to control the mapping process. sparse_optimizations: Additional sparse optimizations available to the architecture. mapspace: The top-level mapspace description. globals: Global inclusion of extra parsing functions and environment variables.
+Note: Inherits from BaseSpecification.
+timeloopfe.v4.specification.Specification.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.base_specification.BaseSpecification.
+ +timeloopfe.v4.specification.Specification.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.base_specification.BaseSpecification.
+ +timeloopfe.v4.specification.Specification.parse_expressions | +( | +self, | +|
+ | + | Optional[Dict[str, Any]] | symbol_table = None, | +
+ | + | Optional[set] | parsed_ids = None ) | +
Parse expressions in the specification.
+Args: symbol_table (Optional[Dict[str, Any]], optional): Symbol table to be used for parsing. Defaults to None. parsed_ids (Optional[set], optional): Set of IDs of specifications that have already been parsed. Defaults to None.
+ +Reimplemented from timeloopfe.common.base_specification.BaseSpecification.
+ +
+ TimeloopFE
+
+ |
+
This is the complete list of members for timeloopfe.v4.variables.Variables, including all inherited members.
+__init__(self, *args, **kwargs) (defined in timeloopfe.v4.variables.Variables) | timeloopfe.v4.variables.Variables | |
_default_parse (defined in timeloopfe.v4.variables.Variables) | timeloopfe.v4.variables.Variables | protected |
declare_attrs(cls, *args, **kwargs) | timeloopfe.v4.variables.Variables |
+ TimeloopFE
+
+ |
+
A top-level class for variables. + More...
++Public Member Functions | |
declare_attrs (cls, *args, **kwargs) | |
Initialize the attributes of this node. | |
__init__ (self, *args, **kwargs) | |
Public Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+ | require_one_of (cls, *args) |
Require that at least one of the given keys is present. | |
+ | require_all_or_none_of (cls, *args) |
Require that all or none of the given keys are present. | |
"DictNode" | combine (self, "DictNode" other) |
Combines this dictionary with another dictionary. | |
"DictNode" | from_yaml_files (cls, *Union[str, List[str]] files, Dict[str, Any] jinja_parse_data=None, **kwargs) |
Loads a dictionary from one more more yaml files. | |
Any | __getitem__ (self, Any __key) |
Get the value at the given key or index. | |
None | __setitem__ (self, Any __key, Any __value) |
Set the value at the given key or index. | |
+Any | get (self, Any __key, Any __default=None) |
Gets a key from the dictionary. | |
+Any | setdefault (self, Any __key, Any __default=None) |
Sets the default value for a key. | |
+Any | pop (self, Any __key, Any __default=None) |
Pops a key from the dictionary. | |
None | check_unrecognized (self, *args, **kwargs) |
Check for unrecognized keys in this node and all subnodes. | |
+ | __getattr__ (self, name) |
Index into the attributes or the contents of this node. | |
+ | __setattr__ (self, name, value) |
Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+ | get_specifiers_from_processors (cls, "BaseSpecification" spec) |
Get the specifiers that have been set from processors. | |
+ | reset_specifiers_from_processors (cls, Optional[Type] processor=None) |
Reset the specifiers that have been set from processors. | |
+ | reset_processor_elems (cls, Optional[Type] processor=None) |
recognize_all (cls, bool recognize_all=True) | |
Set whether all attributes under this node should be recognized. | |
+str | get_tag (self) |
Get the tag of this node. | |
+Iterable[Tuple[Union[str, int], Any]] | items (self) |
Get iterable of (key, value) or (index, value) pairs. | |
T | combine_index (self, Union[str, int] key, T value) |
Combine the value at the given key with the given value. | |
+str | get_name (self, Union[Set, None] seen=None) |
Get the name of this node. | |
Any | recursive_apply (self, callable func, bool self_first=False, set applied_to=None) |
Apply a function to this node and all subnodes. | |
+ | clean_empties (self) |
Remove empty nodes from this node and all subnodes. | |
bool | isempty (self) |
Return True if this node is empty. | |
+bool | isempty_recursive (self) |
Return True if this node or all subnodes are empty. | |
add_attr (cls, str key_or_tag, Optional[Union[type, Tuple[type,...], Tuple[None,...], Tuple[str,...], None]] required_type=None, Any default=default_unspecified_, Optional[Callable] callfunc=None, Optional[bool] part_name_match=None, Optional[bool] no_change_key=None, Any _processor_responsible_for_removing=None, Optional[Dict[str, TypeSpecifier]] _add_checker_to=None) | |
Initialize a type specifier for this class. | |
List[T] | get_nodes_of_type (self, Type[T] node_type) |
Return a list of all subnodes of a given type. | |
Callable | get_setter_lambda (self, Union[str, int] keytag) |
Get a function that can be used to set a value in this node. | |
Callable | get_combiner_lambda (self, Union[str, int] keytag) |
Get a function that can be used to combine a value to this node. | |
List[Tuple[Any, Callable]] | get_setters_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_combiners_for_keytag (self, str keytag, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given key/tag. | |
List[Tuple[Any, Callable]] | get_setters_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, setter) for all keys/tags in this node that match the given type. | |
List[Tuple[Any, Callable]] | get_combiners_for_type (self, Type t, bool recursive=True) |
Get a list of tuples of the form (value, combiner) for all keys/tags in this node that match the given type. | |
__str__ (self) | |
Return the name of this node. | |
+ | __format__ (self, format_spec) |
Formats the name of this node. | |
+bool | is_defined_non_default_non_empty (self, str key) |
Returns True if the given key is defined in this node and is not the default value and is not empty. | |
parse_expressions (self, Optional[Dict[str, Any]] symbol_table=None, Optional[set] parsed_ids=None, Optional[Callable] callfunc=None) | |
Parse expressions in this node and all subnodes. | |
+ | unique_class_name (cls) |
Return a unique name for this class. | |
+Protected Attributes | |
+ | _default_parse |
Protected Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | _require_one_of |
+ | _require_all_or_none_of |
Protected Attributes inherited from timeloopfe.common.nodes.Node | |
+ | _default_parse |
+Additional Inherited Members | |
Static Public Member Functions inherited from timeloopfe.common.nodes.Node | |
+"BaseSpecification" | get_global_spec () |
Get the global specification object. | |
+ | set_global_spec ("BaseSpecification" spec) |
Set the global specification object. | |
Any | try_combine (Any a, Any b, Union["Node", None] innonde=None, Union[int, str, None] index=None) |
Try to combine two values. | |
Public Attributes inherited from timeloopfe.common.nodes.DictNode | |
+ | spec |
Public Attributes inherited from timeloopfe.common.nodes.Node | |
+ | logger |
+ | parent_node |
+ | spec |
Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+None | _check_alias (self, key) |
Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
Dict[str, TypeSpecifier] | _get_type_specifiers (cls, "BaseSpecification" spec) |
Get the type specifiers for this node. | |
+ | _get_all_recognized (self) |
+Dict[Union[str, int], TypeSpecifier] | _get_index2checker (self, Optional[List[Tuple[str, Any]]] key2elem=None) |
+ | _parse_elem (self, Union[str, int] key, TypeSpecifier check, Any value_override=None) |
+ | _parse_elems (self) |
+ | _parse_extra_elems (self, List[Tuple[str, Any]] key2elem) |
+ | _check_unrecognized (self, ignore_empty=False, ignore_should_have_been_removed_by=False) |
+ | _parse_expression (self, Union[str, int] index, Dict[str, Any] symbol_table, Optional[TypeSpecifier] checker=None) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.DictNode | |
+Dict[Any, Any] | _to_dict (Any x) |
Static Protected Member Functions inherited from timeloopfe.common.nodes.Node | |
+str | _get_tag (x) |
A top-level class for variables.
+These will be available to parsing at all other points in the specification.
+timeloopfe.v4.variables.Variables.__init__ | +( | +self, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Reimplemented from timeloopfe.common.nodes.DictNode.
+ +timeloopfe.v4.variables.Variables.declare_attrs | +( | +cls, | +|
+ | + | * | args, | +
+ | + | ** | kwargs ) | +
Initialize the attributes of this node.
+ +Reimplemented from timeloopfe.common.nodes.Node.
+ +
+ TimeloopFE
+
+ |
+
+ TimeloopFE
+
+ |
+
+ TimeloopFE
+
+ |
+
+ TimeloopFE
+
+ |
+
+ TimeloopFE
+
+ |
+
+ TimeloopFE
+
+ |
+
+ TimeloopFE
+
+ |
+
+ TimeloopFE
+
+ |
+
This page explains how to interpret the graphs that are generated by doxygen.
+Consider the following example:
This will result in the following graph:
+The boxes in the above graph have the following meaning:
+The arrows have the following meaning:
+
+ TimeloopFE
+
+ |
+
▼Cdict | |
▼Ctimeloopfe.common.nodes.DictNode | A node that is a dictionary of other nodes |
►Ctimeloopfe.common.base_specification.BaseSpecification | Base class for specifications in the Timeloop framework |
Ctimeloopfe.common.base_specification.BaseSpecification | Base class for specifications in the Timeloop framework |
►Ctimeloopfe.v4.arch.Attributes | A class representing attributes for a node in the architecture |
►Ctimeloopfe.v4.arch.Branch | A branch in the architecture |
►Ctimeloopfe.v4.arch.Leaf | A leaf node in the architecture hierarchy |
Ctimeloopfe.v4.arch.Spatial | A spatial configuration in a system architecture |
Ctimeloopfe.v4.components.Action | Represents an action that a component can perform |
Ctimeloopfe.v4.components.ComponentAttributes | Represents the attributes of a component |
Ctimeloopfe.v4.components.Components | A collection of components |
Ctimeloopfe.v4.components.CompoundComponent | Represents a compound component |
Ctimeloopfe.v4.components.Subcomponent | A subcomponent |
Ctimeloopfe.v4.components.SubcomponentAction | A subcomponent action |
Ctimeloopfe.v4.components.SubcomponentActionGroup | A group of subactions taken by a particular subcomponent |
►Ctimeloopfe.v4.constraints.Constraint | A constraint in the system |
Ctimeloopfe.v4.constraints.ConstraintGroup | A group of constraints |
Ctimeloopfe.v4.constraints.Constraints | Class representing constraints |
Ctimeloopfe.v4.globals.EnvironmentVariables | Dictionary of environment variables |
Ctimeloopfe.v4.globals.Globals | Top-level Globals key |
Ctimeloopfe.v4.mapper.Mapper | A mapper object that holds various attributes and settings for mapping operations in Timeloop |
Ctimeloopfe.v4.mapspace.Mapspace | Top-level mapspace object |
Ctimeloopfe.v4.problem.DataSpace | A data space object |
Ctimeloopfe.v4.problem.Density | A Density object represents the density and distribution of a workload tensor |
Ctimeloopfe.v4.problem.DensityList | A list of densities for each data space |
Ctimeloopfe.v4.problem.Instance | An problem instance object |
Ctimeloopfe.v4.problem.Problem | The top-level problem object in Timeloop |
Ctimeloopfe.v4.problem.Shape | Problem shape object |
Ctimeloopfe.v4.sparse_optimizations.ActionOptimization | An action optimization |
Ctimeloopfe.v4.sparse_optimizations.ActionOptimizationOption | An action optimization option |
Ctimeloopfe.v4.sparse_optimizations.ComputeOptimization | A compute optimization |
Ctimeloopfe.v4.sparse_optimizations.RepresentationDataSpace | Contains the representation format for a data space |
Ctimeloopfe.v4.sparse_optimizations.RepresentationFormat | A representation format sparse optimization |
Ctimeloopfe.v4.sparse_optimizations.RepresentationRank | A representation rank |
Ctimeloopfe.v4.sparse_optimizations.SparseOptimizationGroup | A group of sparse optimizations |
Ctimeloopfe.v4.sparse_optimizations.SparseOptimizations | Top-level class for sparse optimizations |
Ctimeloopfe.v4.variables.Variables | A top-level class for variables |
▼CException | |
Ctimeloopfe.common.nodes.ParseError | Exception for nodes |
Ctimeloopfe.common.processor.ProcessorError | Exception raised by processors |
Ctimeloopfe.common.nodes.GrabParentAddMe | |
▼Clist | |
▼Ctimeloopfe.common.nodes.ListNode | A node that is a list of other nodes |
►Ctimeloopfe.common.nodes.CombineableListNode | A list node that can be combined with others by extending |
►Ctimeloopfe.common.nodes.FlatteningListNode | A list node that flattens lists of lists |
Ctimeloopfe.v4.arch.ArchNodes | A collection of architectural nodes |
Ctimeloopfe.v4.arch.Networks | A list of networks in the architecture |
Ctimeloopfe.v4.components.ActionSubcomponentsList | A list of actions that may be taken as subactions of an action |
Ctimeloopfe.v4.components.ActionsList | A list of actions for a component |
Ctimeloopfe.v4.components.SubcomponentActionList | A list of subcomponent actions |
Ctimeloopfe.v4.components.SubcomponentList | A list of subcomponents |
Ctimeloopfe.v4.constraints.Permutation | A permutation of ranks |
Ctimeloopfe.v4.constraints.ProblemDataspaceList | A list of problem dataspaces |
Ctimeloopfe.v4.mapper.OptimizationMetrics | A list of optimization metrics including delay, energy, EDP, and last level accesses |
Ctimeloopfe.v4.problem.ProblemDataspaceList | A list of data spaces in the problem |
Ctimeloopfe.v4.sparse_optimizations.ActionOptimizationList | A list of action optimizations |
Ctimeloopfe.v4.sparse_optimizations.ActionOptimizationOptionList | A list of action optimization options |
Ctimeloopfe.v4.sparse_optimizations.RepresentationProblemDataspaceList | A list of representation problem dataspaces |
Ctimeloopfe.v4.sparse_optimizations.RepresentationRankList | A list of ranks to be used in the representation format |
Ctimeloopfe.v4.sparse_optimizations.SparseOptimizationsList | A list of sparse optimizations |
▼Cstr | |
Ctimeloopfe.v4.constraints.Factor | A loop factor (e.g., P=1) |
Ctimeloopfe.common.nodes.TypeSpecifier | Represents a type specifier for a node in the TimeloopFE library |
Ctimeloopfe.common.nodes.Unspecified | Class to represent an unspecified value |
▼CABC | |
▼Ctimeloopfe.common.nodes.Node | Base class for all nodes in the hierarchy |
Ctimeloopfe.common.nodes.DictNode | A node that is a dictionary of other nodes |
Ctimeloopfe.common.nodes.ListNode | A node that is a list of other nodes |
►Ctimeloopfe.v4.arch.ArchNode | A node in the architecture hierarchy |
▼Ctimeloopfe.common.processor.Processor | Base class for all processors, which are used to modify the specification before it is passed to Accelergy/Timeloop |
Ctimeloopfe.common.processor.References2CopiesProcessor | Converts references to copies in the specification |
Ctimeloopfe.common.processor.SimpleProcessor | An example simple processor |
Ctimeloopfe.v4.processors.constraint_attacher.ConstraintAttacherProcessor | Takes constraints from constraints lists and attaches them to objects in the architecture |
Ctimeloopfe.v4.processors.constraint_macro.ConstraintMacroProcessor | Defines constraint macros to be used for simplifying constraint specification |
Ctimeloopfe.v4.processors.dataspace2branch.Dataspace2BranchProcessor | Resolves which data spaces are kept in which branches |
Ctimeloopfe.v4.processors.enable_dummy_table.EnableDummyTableProcessor | Enable the dummy table for Accelergy to placeholder energy/area |
Ctimeloopfe.v4.processors.permutation_optimizer.PermutationOptimizerProcessor | Optimizes permutation by pruning superfluous permutations |
Ctimeloopfe.v4.processors.required_actions.RequiredActionsProcessor | Ensures that all components have actions defined for Accelergy Storage: |
Ctimeloopfe.v4.processors.sparse_opt_attacher.SparseOptAttacherProcessor | Takes sparse optimizations from sparse optimizations lists and attaches them to the architecture |
Ctimeloopfe.v4.arch.Branch | A branch in the architecture |
Ctimeloopfe.v4.arch.Component | A component in the architecture |
Ctimeloopfe.v4.arch.Container | A container in the architecture |
Ctimeloopfe.v4.arch.Leaf | A leaf node in the architecture hierarchy |
+ TimeloopFE
+
+ |
+
The Timeloop Front-End (TimeloopFE) is a Python front-end interface to the Timeloop infrastructure, which allows users to model tensor accelerators and explore the vast space of architectures, workloads, and mappings.
+TimeloopFE provides a rich Python interface, error checking, and automation tools. With closely-aligned Python and YAML interfaces, TimeloopFE is designed to enable easy design space exploration and automation.
+First, ensure that Timeloop and Accelergy are installed following the Timeloop+Accelergy install instructions.
+To install timeloopfe, run the following commands:
Tutorials and examples available in the Timeloop and Accelergy exercises repository. In this repository, examples can be found in the workspace/baseline_designs
directory and tutorials can be found in the workspace/exercises
directory.
TimeloopFE interface provides two primary functions: - Input file gathering & error checking - Python interface for design space exploration
Please visit the Timeloop and Accelergy exercises repository for more examples and tutorials.
+
+ TimeloopFE
+
+ |
+
+ + |
+ + |
+ + |
+ + |
+ + |
+ + |