AutomaticArch¶
- class understand.AutomaticArch¶
Bases:
object
Automatic architecture plugin architecture object
This object is provided to an automatic architecture plugin’s build function. Use the
add()
method to define the architecture.Methods Summary
Add an entity with the given name to this architecture.
Return a
cache
that can be used to store, retrieve, and share data.Return True if architecture generation has been aborted by the user.
Deprecated alias of
add()
Return the Options object associated with this architecture.
Set progress range (default 1 - 100).
Report progress value.
Methods Documentation
- add(ent[, name]) None ¶
Add an entity with the given name to this architecture.
- Parameters:
ent (understand.Ent) – the entity to add
name (str) – optional, forward slash separated name relative to the architecture root. If not specified, the entity is added to the root.
- Return type:
None
- cache([id]) understand.Cache ¶
Return a
cache
that can be used to store, retrieve, and share data. If id is not given, it will be a script-specific identifier. This function may return None if caching is not available.- Return type:
- Returns:
a cache object or None
- is_aborted() bool ¶
Return True if architecture generation has been aborted by the user.
- Return type:
bool
- Returns:
True if architecture generation has been aborted by the user
- options() understand.Options ¶
Return the Options object associated with this architecture.
- Return type:
- Returns:
the Options object associated with this architecture
- set_progress_range(min, max) None ¶
Set progress range (default 1 - 100).
- Parameters:
min (int) – the minimum progress value
max (int) – the maximum progress value
- Return type:
None
- set_progress_value(value) None ¶
Report progress value.
- Parameters:
value (int) – the current progress
- Return type:
None