Python API Reference#
This page provides the complete auto-generated API reference for the Lattix Python API.
Module: pyliblattix#
- class pyliblattix.Atom#
Bases:
object- property module: DependModule#
Return the module that created this atom
- property display_name: str#
Return the display name of the Atom. This may be the same as getName()
- property kind: str#
Return the kind of this atom.
- property name: str#
Return the name of the Atom. This should be unique
- property name_space: str#
Return the name space of the atom
- property short_display_name: str#
- property module_id: str#
Return the module id in which to search for the target atom
- class pyliblattix.BasicCollection#
Bases:
object- property empty: bool#
Return true if the collection is empty
- class pyliblattix.Partition#
Bases:
object- property atom_partition: bool#
- property leaf: bool#
Return true if this is a leaf partition
- property reference: bool#
Returns true if this partition is a Partition Reference
- property atom_set: AtomCollection#
Return a set of all the atoms directly contained in this partition
- property parent_rule_source: RuleSource#
- property level: int#
- property segment_map_index: int#
- property clear_text_description: str#
- property description: str#
- property display_name: str#
- property name: str#
- property short_display_name: str#
- property x_m_l_partition_type: str#
- atom_iterator()#
Iterator through all the atoms directly contained in this partition
- set_segment_map_index(index)#
- Parameters:
index (int)
- class pyliblattix.PartitionCollection#
Bases:
object- property empty: bool#
- size()#
Return the number of partitions in the collection
- Return type:
int
- class pyliblattix.PartitionCollectionCollection#
Bases:
object- property empty: bool#
Return true if the collection is empty
- iterator()#
- Return type:
- class pyliblattix.PartitionSet#
Bases:
PartitionCollection- contains(e)#
Return true if the given element is in the collection
- Parameters:
e (Partition)
- Return type:
bool
- property empty: bool#
Return true if the collection is empty
- remove(part)#
Remove the given partition from the set
- Parameters:
part (Partition) – The partition to remove
- Return type:
bool
- size()#
Return the number of partitions in the collection
- Return type:
int
- iterator()#
Returns an iterator over a collection of elements of type E.
- add_all(parts)#
Add all the partitions in the given collection to this set
- Parameters:
parts (Iterable) – the Collection of partitions to add
- class pyliblattix.PartitionRelationCollection#
Bases:
object- contains(tag)#
Return true if the given PartitionRelation is in the collection
- Parameters:
tag (PartitionRelation)
- Return type:
bool
- property empty: bool#
Return true if the collection is empty
- iterator()#
Returns an iterator over the PartitionRelations
- Return type:
- class pyliblattix.AtomKind#
Bases:
object- has_behavior(b)#
Return true if this AtomKind has the given behavior
- Parameters:
b (AtomBehavior) – AtomBehavior
- Return type:
bool
- property member: bool#
- supports_dependencies()#
- Return type:
bool
- supports_members()#
- Return type:
bool
- get_atom_property_definition(name)#
- Parameters:
name (str)
- Return type:
- get_property_definition(name)#
- Parameters:
name (str)
- Return type:
- property flags: int#
- property image_name: str#
- property module_id: str#
Return the module id that created this kind
- property name: str#
- property res_name: str#
- behavior_iterator()#
Return an iterator of any behaviors this AtomKind has
- Return type:
- property_definition_iterator(flags)#
- Parameters:
flags (int)
- Return type:
- class pyliblattix.Metric#
Bases:
object- disable_hierarchy()#
- Return type:
bool
- property percent: bool#
- property decimal_precision: int#
- property segment_map_index: int#
- get_description(resMgr)#
- Parameters:
resMgr (ResourceManager)
- Return type:
str
- property format_string: str#
- property format_string_res: str#
- property id: str#
- property image_name: str#
- property name: str#
- set_segment_map_index(index)#
- Parameters:
index (int)
- class pyliblattix.MetricsData#
Bases:
object- get_metric(arg0, arg1)#
- Parameters:
tag
arg0 (AtomKind)
arg1 (ResourceManager)
- Return type:
- get_metric2(tag)#
- Parameters:
tag (AtomPropertyDefinition)
- Return type:
- property custom_metrics: MetricGroup#
- notify()#
- notify_all()#
- wait2()#
- to_string()#
- Return type:
str
- property metrics_iterator: Iterator[MetricGroup]#
- hash_code()#
- Return type:
int
- set_global_metrics_data()#
- build_all_metrics()#
- cleanup()#
- dispose()#
- dump_metrics()#
- class pyliblattix.AtomCollection#
Bases:
object- contains(atom)#
Returns true if the given atom is in this collection
- Parameters:
atom (Atom)
- Return type:
bool
- property empty: bool#
Returns true if this collection is empty.
- size()#
Return the number of atoms in this collection
- Return type:
int
- class pyliblattix.AtomSet#
Bases:
AtomCollection- contains(e)#
Return true if the given element is in the collection
- Parameters:
e (Atom)
- Return type:
bool
- property empty: bool#
Return true if the collection is empty
- remove(atom)#
remove the given atom from the set
- Parameters:
atom (Atom) – remove the given atom
- Return type:
bool
- size()#
Return the number of atoms in this collection
- Return type:
int
- iterator()#
Returns an iterator over a collection of elements of type E.
- add_all(collection)#
Add all atoms in given collection
- Parameters:
collection (AtomCollection) – Collection of atoms to add
- class pyliblattix.DependModule#
Bases:
object- property id: str#
Return the uniqe ID of this plugin component
- property name: str#
- property version: str#
- class pyliblattix.DependencyKind#
Bases:
object- has_behavior(b)#
Return true if this DependencyKind has the given behavior
- Parameters:
b (DependencyBehavior) – DependencyBehavior
- Return type:
bool
- clone()#
- Return type:
- property flags: int#
- property kind_id: str#
Return the id of this kind
- property module_id: str#
Return the module id that created this kind
- property res_name: str#
Return the resource name of this kind
- behavior_iterator()#
Return an iterator of any behaviors this DependencyKind has
- Return type:
- class pyliblattix.GraphCycles#
Bases:
object- has_cycles()#
- Return type:
bool
- list_disjoint_paths(srcParts, targetParts)#
- Parameters:
srcParts (PartitionCollection)
targetParts (PartitionCollection)
- Return type:
- property cycle_components: Iterator[PartitionRelationCollection]#
- notify()#
- notify_all()#
- wait2()#
- property num_cycles: int#
- hash_code()#
- Return type:
int
- to_string()#
- Return type:
str
- list_disjoint_paths2()#
- Parameters:
srcParts
targetParts
- Return type:
- class pyliblattix.DependencyBehavior#
Bases:
object- property mask: int#
- hash_code()#
- Return type:
int
- ordinal()#
- Return type:
int
- property name_res: str#
- name()#
- Return type:
str
- notify()#
- notify_all()#
- wait2()#
- to_string()#
- Return type:
str
- value_of(name)#
- Parameters:
name (str)
- Return type:
- behavor_string_to_flags(string, ignoreUnknownBehaviors)#
- Parameters:
string (str)
ignoreUnknownBehaviors (bool)
- Return type:
int
- get_behavior_string(flags)#
- Parameters:
flags (DependencyKind)
- Return type:
str
- class pyliblattix.AtomBehavior#
Bases:
object- property mask: int#
- hash_code()#
- Return type:
int
- ordinal()#
- Return type:
int
- property name_res: str#
- name()#
- Return type:
str
- notify()#
- notify_all()#
- wait2()#
- to_string()#
- Return type:
str
- is_member_behavior(b)#
- Parameters:
b (AtomBehavior)
- Return type:
bool
- value_of(name)#
- Parameters:
name (str)
- Return type:
- behavor_string_to_flags(string, ignoreUnknownBehaviors)#
- Parameters:
string (str)
ignoreUnknownBehaviors (bool)
- Return type:
int
- class pyliblattix.PartitionEdgePath#
Bases:
object- contains(e)#
Return true if the given element is in the collection
- Parameters:
e (Partition)
- Return type:
bool
- property empty: bool#
Return true if the collection is empty
- get_at(index)#
Get the Partition at the given index in the path
- Parameters:
index (int) – the index of the path
- Return type:
- size()#
Return the number of Partitions in the path
- Return type:
int
- class pyliblattix.PartitionEdgePathCollection#
Bases:
object- property empty: bool#
Return true if the collection is empty
- property max_path_size: int#
Return the longest path in the collection
- size()#
Return the number of paths in the collection
- Return type:
int
- iterator()#
Returns an iterator over the PartitionEdgePaths
- Return type:
- class pyliblattix.MetricGroup#
Bases:
object- do_calc_as_group()#
- Return type:
bool
- property disable_hierarchy: bool#
- property description: str#
- notify()#
- notify_all()#
- wait2()#
- property id: str#
- property res_name: str#
- to_string()#
- Return type:
str
- hash_code()#
- Return type:
int
- remove_all()#
- set_disable_hierarchy(on)#
- Parameters:
on (bool)
- class pyliblattix.AtomKindCount#
Bases:
object- disable_hierarchy()#
- Return type:
bool
- property percent: bool#
- property segment_map_index: int#
- property id: str#
- property image_name: str#
- property name: str#
- notify()#
- notify_all()#
- set_segment_map_index(index)#
- Parameters:
index (int)
- wait2()#
- property decimal_precision: int#
- hash_code()#
- Return type:
int
- get_description(resMgr)#
- Parameters:
resMgr (ResourceManager)
- Return type:
str
- property format_string: str#
- property format_string_res: str#
- to_string()#
- Return type:
str
- build_id(compId, kindId)#
- Parameters:
compId (str)
kindId (str)
- Return type:
str
- create_count_resource(arg0, arg1)#
- Parameters:
arg0 (ResourceManager)
arg1 (str)
- Return type:
str
- class pyliblattix.RuleSet#
Bases:
object- property default: bool#
- property empty: bool#
Return true if the collection is empty
- property rule_source: RuleSource#
- property rule_count: int#
- property name: str#
- class pyliblattix.WorkItem#
Bases:
object- has_child_work_items()#
- Return type:
bool
- property priority: int#
- property key_index: int#
- property key_map_index: int#
- property default_description: str#
- property description: str#
- property id: str#
- property name: str#
- property owner: str#
- property plain_text_description: str#
- property title: str#
- property type: str#
- set_key_index(index)#
- Parameters:
index (int)
- set_key_map_index(keyMapIndex)#
- Parameters:
keyMapIndex (int)
- class pyliblattix.WorkItemCollection#
Bases:
object- contains(tag)#
Return true if the given element is in the collection
- Parameters:
tag (WorkItem)
- Return type:
bool
- property empty: bool#
Return true if the collection is empty
- class pyliblattix.RuleViolator#
Bases:
object- property edges: DependencyEdgeCollection#
Get the DependencyEdges that cause the violation
- property dependencies: Iterator[Dependency]#
Get the collection of dependencies that cause the violation
- property num_violations: int#
- get_dependency_line_number(dep)#
- Parameters:
dep (Dependency)
- Return type:
Iterator[int]
- class pyliblattix.Dependency#
Bases:
object- property display_name: str#
Return the display name of this dependency
- property kind_string: str#
Return the kind string of this dependency.
- property module_id: str#
Return the module id in which to search for the target atom
- property name: str#
Return the name of the dependency. The name of an dependency represents a target, which could be an atom or an external dependency. The target atom that matches may have a different name.
- class pyliblattix.BasicDependencyCollection#
Bases:
object- contains(tag)#
Return true if the given Dependency is in the collection
- Parameters:
tag (Dependency)
- Return type:
bool
- property empty: bool#
Return true if the collection is empty
- iterator()#
Returns an iterator over the Dependencies
- Return type:
- class pyliblattix.Rule#
Bases:
object- property cannot_use: bool#
Returns whether this is a CANNOT_USE rule
- property default: bool#
- property exception: bool#
Return true if this rule is considered an exception
- property must_use: bool#
Returns whether this is a MUST_USE rule
- property rule_source: RuleSource#
Get the source of this rule. Can be a Partition or Tag
- property target_type: int#
Return the target type of the rule target. These are defined in RuleTarget
- property clear_text_description: str#
Return the clear text description (strips off HTML tags)
- property dependency_filter_string: str#
Return an encoded filter for dependencies
- property description: str#
Return the description of this rule.
- property display_name: str#
Get the display name of the rule
- property name: str#
Get the name of the rule
- property source_atom_filter_string: str#
Return an encoded filter for source atoms
- property target_atom_filter_string: str#
Return an encoded filter for target atoms
- property target_name: str#
Return the target name of this rule
- class pyliblattix.RuleSource#
Bases:
object- property parent_rule_source: RuleSource#
- property display_name: str#
- property name: str#
- class pyliblattix.RuleViolatorCollection#
Bases:
object- contains(tag)#
Return true if the given RuleViolator is in the collection
- Parameters:
tag (RuleViolator)
- Return type:
bool
- property empty: bool#
Return true if the collection is empty
- iterator()#
Returns an iterator over the RuleViolators
- Return type:
- get_rule_violations_iterator()#
- Return type:
- class pyliblattix.RuleViolatorSet#
Bases:
object- contains(e)#
Return true if the given element is in the collection
- Parameters:
e (RuleViolator)
- Return type:
bool
- add(rv)#
- Parameters:
rv (RuleViolator)
- Return type:
bool
- property empty: bool#
- iterator()#
Returns an iterator over a collection of elements of type E.
- Return type:
- add_all(set)#
- Parameters:
set (Iterable)
- class pyliblattix.DependencyEdge#
Bases:
object- property dependency: Dependency#
Get dependency
- property strength: int#
Get dependency strength. (optional operation).
- class pyliblattix.DependencyEdgeCollection#
Bases:
object- property empty: bool#
- size()#
- Return type:
int
- iterator()#
- Return type:
- get_dependency_edge_iterator()#
- Return type:
- class pyliblattix.AtomPropertyDefinition#
Bases:
object- has_behavior(b)#
- Parameters:
b (PropertyBehavior)
- Return type:
bool
- property long_precision: bool#
- clone()#
- Return type:
- property decimal_precision: int#
- property flag: int#
- property type: int#
- property format_string_res: str#
- property module_id: str#
- property name: str#
- property res_name: str#
- behavior_iterator()#
- Return type:
- class pyliblattix.PropertyBehavior#
Bases:
object- property mask: int#
- hash_code()#
- Return type:
int
- ordinal()#
- Return type:
int
- property name_res: str#
- name()#
- Return type:
str
- notify()#
- notify_all()#
- wait2()#
- to_string()#
- Return type:
str
- value_of(name)#
- Parameters:
name (str)
- Return type:
- behavor_string_to_flags(string, ignoreUnknownBehaviors)#
- Parameters:
string (str)
ignoreUnknownBehaviors (bool)
- Return type:
int
- class pyliblattix.Tag#
Bases:
object- property visible: bool#
Return true if this tag is visible.
- property criteria: Criteria#
Return the criteria of this tag. The Criteria defines the partitions contained in this tag.
- property parent_rule_source: RuleSource#
- property segment_map_index: int#
- property display_name: str#
- property name: str#
- property full_name: str#
- property description: str#
- property display_name2: str#
- property name2: str#
- set_segment_map_index(index)#
- Parameters:
index (int)
- class pyliblattix.TagCollection#
Bases:
object- contains(tag)#
Return true if the given Tag is in the collection
- Parameters:
tag (Tag)
- Return type:
bool
- property empty: bool#
Return true if the collection is empty
- class pyliblattix.Number#
Bases:
object- int_value()#
- Return type:
int
- notify()#
- notify_all()#
- wait2()#
- to_string()#
- Return type:
str
- hash_code()#
- Return type:
int
- class pyliblattix.Color#
Bases:
object- notify()#
- notify_all()#
- wait2()#
- property alpha: int#
- property blue: int#
- property green: int#
- property r_g_b: int#
- property red: int#
- property transparency: int#
- hash_code()#
- Return type:
int
- to_string()#
- Return type:
str
- class pyliblattix.ProjectModel#
Bases:
object- has_ancestor(partition, ancestors)#
Return true if “ancestor” is an ancestor of “partition”
- has_ancestor2(partition, ancestors)#
Return true if “ancestor” is an ancestor of “partition”
- Parameters:
partition (Partition) – Partition to test
ancestors (BasicCollection) – Partitions that might be ancestors
- Return type:
bool
- has_collapsed_members(parts)#
Returns true if any of the given partitions contains atoms that can be member level expanded
- Parameters:
parts (PartitionCollection)
- Return type:
bool
- has_expanded_members(parts)#
Returns true if any of the given partitions contains atoms that can be member level collapsed
- Parameters:
parts (PartitionCollection)
- Return type:
bool
Returns true if the given edge is hidden
- Parameters:
sourceAtom (Atom) – source of the dependency edge
dep (Dependency) – Dependency kind and target of the edge
- Return type:
bool
Returns true if the given edge is hidden
- Parameters:
sourceAtom – source of the dependency edge
dep – Dependency kind and target of the edge
arg0 (DependencyEdge)
- Return type:
bool
- property disposed: bool#
Returns true if the given partition is hidden.
- Parameters:
part (Partition) – Partition
- Return type:
bool
- property read_only: bool#
- property valid: bool#
- new_search_criteria_builder()#
- Return type:
- get_manual_atom(moduleId, atomName)#
Find a manual atom of the given name in the given module, if it exists, else return null.
- Parameters:
moduleId (str) – ID of a module
atomName (str) – Name of the Atom
- Return type:
- new_manual_atom(moduleId, atomName, atomKind)#
Create a manual atom with the given name in the given module. If atom with given name already exists, throw Exception
- Parameters:
moduleId (str) – ID of a module
atomName (str) – Name of the Atom
atomKind (str) – Kind of the Atom
- Return type:
- get_atom(arg0)#
Returns the atom with the given name, or null if none exists.
- Parameters:
name – of the atom
moduleId – ID of module
arg0 (str)
- Return type:
- get_atom2(name, moduleId)#
Returns the atom with the given name, or null if none exists.
- Parameters:
name (str) – of the atom
moduleId (str) – ID of module
- Return type:
- get_atom_at(part)#
Get the atom at the given partition
- get_source_atom_for(edge)#
Find the Source Atom for this dependency edge
- Parameters:
edge (DependencyEdge) – the DependencyEdge
- Return type:
- get_target_atom_for(arg0, arg1)#
Find Atom (if any) that edge resolves to.
- Parameters:
edge – DependencyEdge that may resolve to an Atom
arg0 (Atom)
arg1 (Dependency)
- Return type:
- get_target_atom_for2(edge)#
Find Atom (if any) that edge resolves to.
- Parameters:
edge (DependencyEdge) – DependencyEdge that may resolve to an Atom
- Return type:
- get_all_atoms(parts)#
Returns a collection of atoms that are represented by the given partitions and their descendants
- Parameters:
parts (PartitionCollection) – Collection or partitions
- Return type:
- get_atoms_at(parts)#
Returns a collection of atoms that are directly represented by the given partitions
- Parameters:
parts (PartitionCollection) – Collection of partitions
- Return type:
- partitions_to_atoms(parts)#
Convert PartitionCollection to AtomCollection
- Parameters:
parts (PartitionCollection)
- Return type:
- get_dependencies(atoms)#
Finds all the dependencies from the given atom. This may not include manual dependencies if the atom is a manual atom.
- Parameters:
atoms (AtomCollection) – The atoms
- Return type:
- get_depend_module(id)#
Get DependModule by id
- Parameters:
id (str)
- Return type:
- new_manual_dependency(srcPart, targetPart, kind, strength)#
Create a new manual dependency between two partitions
- Parameters:
- Return type:
- new_dependency_edge(srcPart, targetPart, kind, strength)#
Create a new manual dependency edge between two partitions
- Parameters:
- Return type:
- get_edges(source, target)#
Finds all the dependency edges between the source atom and target atom. dependencies if the atom is not a manual atom.
- Parameters:
- Return type:
- get_edges2(source, target)#
Finds all the dependency edges between the source atom and target atom. dependencies if the atom is not a manual atom.
- Parameters:
- Return type:
- get_edges3(arg0)#
Finds all the dependency edges between the source atom and target atom. dependencies if the atom is not a manual atom.
- Parameters:
source – The source atom
target – The target atom
arg0 (PartitionRelationCollection)
- Return type:
- get_edges_between(srcParts, targetParts)#
Find all the dependencies between the 2 collections
- Parameters:
srcParts (PartitionCollection) –
Source Partitions
targetParts (PartitionCollection) –
Target Partitions
- Return type:
- get_edges_from(atoms)#
Finds all the dependency edges from a collection of atoms. This may not include manual dependencies if the atom is not a manual atom.
- Parameters:
atoms (AtomCollection) – Atom Collection
- Return type:
- get_edges_from_work_item(workItem)#
Get all the edges reference by the given work item
- Parameters:
workItem (WorkItem)
- Return type:
- get_external_edges(partitions)#
Finds all the dependency edges descendant from the given partitions to external targets.
- Parameters:
partitions (PartitionCollection)
- Return type:
- get_used_by_edges(atoms)#
Returns collection of edges that are used by the given atoms
- Parameters:
atoms (AtomCollection) – Collection of Atoms
- Return type:
- get_used_by_edges2(atoms)#
Returns collection of edges that are used by the given atoms
- Parameters:
atoms (DependencyEdgeCollection) – Collection of Atoms
- Return type:
- get_used_by_edges3(atoms)#
Returns collection of edges that are used by the given atoms
- Parameters:
atoms (PartitionCollection) – Collection of Atoms
- Return type:
- get_uses_edges(parts)#
Returns collection of edges that the given partitions use
- Parameters:
parts (DependencyEdgeCollection) – Collection of Partitions
- Return type:
- get_uses_edges2(parts)#
Returns collection of edges that the given partitions use
- Parameters:
parts (PartitionCollection) – Collection of Partitions
- Return type:
- get_dependency_kind(dep)#
Returns the DependencyKind object for the Dependency
- Parameters:
dep (Dependency) – Dependency
- Return type:
- get_ordering_algorithm(id)#
Iterator over the available ordering algorithms
- Parameters:
id (str) – ID of the ordering algorithms
- Return type:
- new_partition(parent, name)#
Create a new partition with the given name as a child of the given parent.
- new_partition_with_atom(parent, moduleId, name, atomKind)#
Create a new partition with the given name as a child of the given parent. The new partition will contain an atom with the same name
- get_child_partition_by_name(parent, name)#
Finds child partition with the given name.
- get_display_sub_partition(partition, index)#
Returns child partition at given display index
- get_partition(atom)#
Return the partition that is associated with the given atom.
- get_partition2(atom)#
Return the partition that is associated with the given atom.
- Parameters:
atom (str) – The atom object
- Return type:
- get_sub_partition(partition, index)#
Returns child partition at given index
- atoms_to_partitions(atoms)#
Convert AtomCollection to PartitionCollection
- Parameters:
atoms (AtomCollection)
- Return type:
- get_all_partitions(tag)#
Finds all the partitions that have the given tag.
- Parameters:
tag (PartitionCollection) – Tag that exists in the system
- Return type:
- get_all_partitions2(tag)#
Finds all the partitions that have the given tag.
- Parameters:
tag (Tag) – Tag that exists in the system
- Return type:
- get_descendant_atom_partitions(part)#
Finds all atoms descendant from this partition (if member-level is on this includes members)
- Parameters:
part (Partition)
- Return type:
- get_partitions_by_name(name)#
Finds all partitions that have a given name.
- Parameters:
name (str) – Name of a partition in the system
- Return type:
- get_sub_partitions(partition)#
Returns partition collection
- Parameters:
partition (Partition) – A partition
- Return type:
- get_tagged_partitions(tag)#
Finds all the partitions that have the given tag.
- Parameters:
tag (Tag) – Tag that exists in the system
- Return type:
- get_cycle_components(part)#
Returns all the strongly connected components that are directly in a partition. Analyzes the dependencies in the sub-partitions of the given partition and returns them in groups of components. If there are no cycles, each component will contain exactly one partition.
- Parameters:
part (Partition) – A Partition
- Return type:
- get_low_level_cycle_components(part)#
Returns all the low strongly connected components useful for finding files/classes in cycles without regard to whether they are in a cycle or not.
- Parameters:
part (Partition) – A Partition
- Return type:
- new_partition_set()#
Create empty PartitionSet
- Return type:
- new_sorted_partition_set()#
Create empty PartitionSet that sorts by hierarchy
- Return type:
- get_partition_rules(part)#
Return the set of rules assigned to a given partition
- get_rule_violators(arg0, arg1)#
Return collection of violations at or contained within the given partition intersections
- Parameters:
- Return type:
- get_rule_violators2(relations)#
Return collection of violations at or contained within the given partition intersections
- Parameters:
relations (PartitionCollection)
- Return type:
- get_rule_violators3(relations)#
Return collection of violations at or contained within the given partition intersections
- Parameters:
relations (PartitionRelationCollection)
- Return type:
- get_rule_violators_from_work_item(workItem)#
Get all the violations referenced by the given work item
- Parameters:
workItem (WorkItem) – Work Item
- Return type:
- new_rule_violator_set()#
Create an empty RuleViolatorSet
- Return type:
- property applied_rules: RuleViolatorSet#
Get all applied rules for each dependency
- create_or_find_tag(name, color)#
Create new Tag if tag does not already exist, else return the existing tag. If tag already exists, color will be changed to the specified color, if color is non-null.
- new_impact_tag(tagName, color, parts)#
- Parameters:
tagName (str)
color (Color)
parts (PartitionCollection)
- Return type:
- new_impact_tag2(tagName, color, parts)#
- new_tag(name, color)#
Create a new Tag Object with the given name.
- get_tag(name)#
Returns the Tag object with the given name
- Parameters:
name (str) – Name of the tag to find.
- Return type:
- property all_tags: TagCollection#
Return a collection of all tags in the model.
- get_direct_tags_for(parts)#
Return a collection of all tags directly associated with the given partitions. This does not include tags inherited from a parent partition. Only tags directly set on the given partitions are included
- Parameters:
parts (PartitionCollection) – Collection of Partitions
- Return type:
- get_tags_for(part)#
Return a collection of all tags associated with the given partition.
- Parameters:
part (PartitionCollection) – The partition
- Return type:
- create_work_item(comment, parts, name)#
Create a WorkItem associated with the given PartitionRelations
- Parameters:
comment (str)
parts (DependencyEdgeCollection)
name (str)
- Return type:
- create_work_item2(comment, parts, name)#
Create a WorkItem associated with the given PartitionRelations
- Parameters:
comment (str)
parts (PartitionCollection)
name (str)
- Return type:
- create_work_item3(comment, parts, name)#
Create a WorkItem associated with the given PartitionRelations
- Parameters:
comment (str)
parts (PartitionRelationCollection)
name (str)
- Return type:
- create_work_item4(comment, parts, name)#
Create a WorkItem associated with the given PartitionRelations
- Parameters:
comment (str)
parts (RuleViolatorCollection)
name (str)
- Return type:
- property work_items: WorkItemCollection#
Get all the WorkItem objects in the model
- inc_ref()#
- Return type:
int
- get_dependency_strength(sourcePartition, targetPartition)#
Get dependency strength between 2 partitions
- get_impact_strength(partition, level)#
Get the impact strength
- Parameters:
partition (Partition)
level (int)
- Return type:
int
- get_partition_index(partition)#
Get the index of the partition in its container
- Parameters:
partition (Partition) – Partition to find the index of
- Return type:
int
- get_sub_partition_count(partition)#
Returns number of child partitions
- Parameters:
partition (Partition) – A partition
- Return type:
int
- property instance: int#
- get_atom_kind_resource_name(atom)#
Returns the localized name of the Atom kind
- Parameters:
atom (Atom) – Atom
- Return type:
str
- get_atom_property_value(atom, propName)#
return the value of a property assigned to an atom
- Parameters:
atom (Atom) – the atom
propName (str)
- Return type:
str
- get_dependency_kind_resource_name(dep)#
Returns the localized name of the Dependency kind
- Parameters:
dep (Dependency) – Dependency
- Return type:
str
- get_full_source_name(atom)#
Return the full source filename that defines the atom
- Parameters:
atom (Atom)
- Return type:
str
- property project_name: str#
Returns the name of the Project.
- property all_high_level_cycles: Iterator[GraphCycles]#
Returns an Iterator of all the high level cycles
- get_all_partition_iterator(parts)#
Finds all the partitions that have the given tag.
- Parameters:
parts (PartitionCollection) – collection or partitions
- Return type:
- get_atom_partition_iterator(parts)#
Finds all the atom partitions that have the given tag.
- Parameters:
parts (PartitionCollection) – collection or partitions
- Return type:
- get_descendent_rules_for(source)#
Get the rules attached to the given source, and the ones attached to the children sources
- Parameters:
source (RuleSource) – can be Partition, Tag
- Return type:
- get_inherited_rules_for(source)#
Get the rules attached to the given source, and all parent sources
- Parameters:
source (RuleSource) – can be Partition, Tag
- Return type:
- get_module_atom_kinds(moduleId)#
Returns the atom kinds defined in the given module
- get_module_dependency_kinds(moduleId)#
Returns the DependencyKinds defined in the given module
- Parameters:
moduleId (str) – id of the module
- Return type:
- property module_ids: Iterator[str]#
Returns the available module ids, specified by the given project profile.
- property ordering_algorithms: Iterator[DsmOrderingAlgorithm]#
Iterator over the available ordering algorithms
- property project_atom_kinds: Iterator[AtomKind]#
Returns the atom kinds defined in the current project
- property project_dependency_kinds: Iterator[DependencyKind]#
Returns the DependencyKinds defined in the current project
- get_rules_for(source)#
Get the rules attached to the given source
- Parameters:
source (RuleSource) – can be Partition, Tag
- Return type:
- get_tags_for2(part)#
Return a collection of all tags associated with the given partition.
- get_used_by_edges_closure(atoms, level)#
Returns collection of edges to transitive closure that are used by the given atoms
- Parameters:
atoms (AtomCollection) – Collection of Atoms
level (int)
- Return type:
- get_uses_edges_closure(atoms, level)#
Returns collection of edges that the given atoms use
- Parameters:
atoms (AtomCollection) – Collection of Atoms
level (int) – what level to calculate usage
- Return type:
- partition_property_name_iterator(partition)#
- sub_partition_display_iterator(partition)#
Returns partition collection, which consists of children of the given partition, in display order
- sub_partition_iterator(partition)#
Returns partition collection, which consitst of the children of the given partition.
- visible_sub_partition_iterator(partition)#
Returns partition collection, which consists of the visible children of the given partition.
- add_atom_to_partition(partition, atom)#
Add atom to the given partition.
- add_partition_to_tag(tag, part)#
Add partition to the given tag
- add_partitions_to_tag(tag, parts)#
Add partitions to the given tag
- Parameters:
tag (Tag) – Tag that will be assigned partitions.
parts (PartitionCollection) – Collection of partitions to add to tag
- change_atom_kind(atom, atomKind)#
Change the kind of the given atom
- clear_partition_property(name)#
Clear named property for all partitions
- Parameters:
name (str) – name of property
- clear_tag_filter()#
- collapse_members(parts)#
Collapse members on given partitions
- param parts:
Partition Collection
Throws Exception is no atom database is found
- Parameters:
parts (PartitionCollection)
- delete_partition(partitions)#
Delete the given partitions. Children of deleted partition will be moved up a level
- Parameters:
partitions (PartitionCollection) – Collection of partitions to delete. (Sub-partitions will not be deleted)
- delete_partition_tree(partitions)#
Delete the given partitions and all descendants.
- Parameters:
partitions (PartitionCollection) – Collection of partitions to delete. All sub-partitions will also be deleted.
- expand_members(parts)#
Expand members on given partitions
- param parts:
Partition Collection
Throws Exception is no atom database is found
- Parameters:
parts (PartitionCollection)
- hide_dependencies(edges)#
Hide the given dependencies.
- Parameters:
edges (DependencyEdgeCollection) – Collection of DependencyEdges to hide
- hide_partition(partitions)#
Hide the given dependencies.
- Parameters:
partitions (PartitionCollection) – Collection of Partitions to hide
- import_file_as_manual(sourceFile)#
Attempt to import file as manual atoms
- Parameters:
sourceFile (File)
- import_l_d_ias_module(sourceFile, moduleId)#
Import given LDI file using the given module
- Parameters:
sourceFile (File)
moduleId (str)
- move_partition(partitions, newParent)#
Move a collection of partitions to a new Partition
- Parameters:
partitions (PartitionCollection) – Collection of partitions to move
newParent (Partition) – New partition partition to move partitions into.
- move_partition_to(partitions, newParent, newIndex)#
Move a collection of partitions to a new Partition
- Parameters:
partitions (PartitionCollection) – Collection of partitions to move
newParent (Partition) – New partition partition to move partitions into.
newIndex (int) – New index of the partition
- perform_ordering(partition, ordering, createVirtual, recursive)#
Perform the ordering algorithm on the contents of the given partition
- Parameters:
partition (Partition) – Parent partition
ordering (DsmOrderingAlgorithm) – Ordering algorithm to use
createVirtual (bool) – set to true to create Virtual Partitions
recursive (bool) – set to true to perform the ordering recursively
- remove_atom_from_partition(partition, atom)#
Remove atom from the given partition.
- remove_dependency_edge(sourceAtom, dependency, strength)#
Remove a dependency edge
- Parameters:
sourceAtom (Atom)
dependency (Dependency)
strength (int)
- remove_dependency_edge2(arg0)#
Remove a dependency edge
- Parameters:
sourceAtom
dependency
strength
arg0 (DependencyEdge)
- remove_partitions_from_tag(tag, parts)#
Remove partitions from the given tag
- Parameters:
tag (Tag) – Tag that will be modified
parts (PartitionCollection) – Collection of partitions to remove from tag
- rename_partition(partition, newName)#
Rename a partition to a new name
- Parameters:
partition (Partition) – Partition object, path to partition or name of partition
newName (str) – new name of partition
- set_atom_property(atom, name, value)#
Set property on an atom
- Parameters:
atom (Atom) – Atom
name (str) – Property Name
value (str) – Property Value
- set_cell_text(arg0, arg1, arg2)#
Set the text string in a given partition intersection
- set_cell_text2(relation, text)#
Set the text string in a given partition intersection
- Parameters:
relation (PartitionRelation) – partition intersection
text (str) – Text for the cell
- set_edge_property(arg0, arg1, arg2, arg3)#
Set property on a dependency edge
- Parameters:
edge – Source Dependency edge
name – Property Name
value – Property Value
arg0 (Atom)
arg1 (Dependency)
arg2 (str)
arg3 (str)
- set_edge_property2(edge, name, value)#
Set property on a dependency edge
- Parameters:
edge (DependencyEdge) – Source Dependency edge
name (str) – Property Name
value (str) – Property Value
- set_partition_description(partition, description)#
Change the partition description text
- Parameters:
partition (Partition) – Partition to change
description (str) – New description text
- set_tag_color(tag, color)#
Set the color of the given tag
- set_tag_criteria(tag, criteria)#
Set the criteria that the tag will represent.
- set_tag_edges(tag, edges)#
Set the edges that the tag will represent.
- Parameters:
tag (Tag) – Tag that will be assigned partitions.
edges (DependencyEdgeCollection) – Collection of edges to add to tag
- set_tag_filter(tag, filterAtoms, filterDependencies)#
- Parameters:
tag (Tag)
filterAtoms (bool)
filterDependencies (bool)
- set_tag_partitions(tag, parts)#
Set the partitions that the tag will represent.
- Parameters:
tag (Tag) – Tag that will be assigned partitions.
parts (PartitionCollection) – Collection of partitions to add to tag
- set_work_item_description(workItem, description)#
Change the description of the WorkItem
- Parameters:
workItem (WorkItem) – the WorkItem
description (str) – new WorkItem description
- set_work_item_name(workItem, name)#
Change the name of the WorkItem
- Parameters:
workItem (WorkItem) – the WorkItem
name (str) – new WorkItem name
- set_work_item_owner(workItem, owner)#
Change the owner of the WorkItem
- Parameters:
workItem (WorkItem) – the WorkItem
owner (str) – new WorkItem owner
- unhide_dependencies(edges)#
Unhide the given dependencies.
- Parameters:
edges (DependencyEdgeCollection) – Collection of DependencyEdges to hide
- unhide_partition(partitions)#
Unhide the given dependencies.
- Parameters:
partitions (PartitionCollection) – Collection of Partitions to unhide
- check_canceled()#
- dispose()#
- create_or_find_tag2(name, color)#
Create new Tag if tag does not already exist, else return the existing tag. If tag already exists, color will be changed to the specified color, if color is non-null.
- get_dsm_js_data()#
- Return type:
str
- get_name_alt()#
- Return type:
str
- get_int_edge_propertys(dep, propName)#
- Parameters:
dep (DependencyEdge)
propName (str)
- Return type:
Iterator[int]
- save_project()#
- save_project_as(fileName)#
- Parameters:
fileName (str)
- class pyliblattix.LattixPythonApi#
Bases:
object- create_new_lattix_project()#
- Return type:
- open_lattix_project(path)#
- Parameters:
path (str)
- Return type:
- notify()#
- notify_all()#
- wait2()#
- to_string()#
- Return type:
str
- hash_code()#
- Return type:
int
- class pyliblattix.File#
Bases:
object- can_execute()#
- Return type:
bool
- can_read()#
- Return type:
bool
- can_write()#
- Return type:
bool
- create_new_file()#
- Return type:
bool
- exists()#
- Return type:
bool
- property absolute: bool#
- property directory: bool#
- property file: bool#
- mkdir()#
- Return type:
bool
- mkdirs()#
- Return type:
bool
- set_executable(arg0)#
- Parameters:
arg0 (bool)
- Return type:
bool
- set_executable2(arg0, arg1)#
- Parameters:
arg0 (bool)
arg1 (bool)
- Return type:
bool
- set_read_only()#
- Return type:
bool
- set_readable(arg0)#
- Parameters:
arg0 (bool)
- Return type:
bool
- set_readable2(arg0, arg1)#
- Parameters:
arg0 (bool)
arg1 (bool)
- Return type:
bool
- set_writable(arg0)#
- Parameters:
arg0 (bool)
- Return type:
bool
- set_writable2(arg0, arg1)#
- Parameters:
arg0 (bool)
arg1 (bool)
- Return type:
bool
- notify()#
- notify_all()#
- wait2()#
- hash_code()#
- Return type:
int
- property absolute_path: str#
- property canonical_path: str#
- property name: str#
- property parent: str#
- property path: str#
- to_string()#
- Return type:
str
- create_temp_file2(arg0, arg1, arg2)#
- delete_on_exit()#
- class pyliblattix.ResourceManager#
Bases:
object- has_resource(resName)#
- Parameters:
resName (str)
- Return type:
bool
- add_resource(key, res)#
- Parameters:
key (str)
res (str)
- Return type:
str
- get_resource(arg0)#
- Parameters:
id
param1
param2
arg0 (str)
- Return type:
str
- get_resource2(arg0, arg1)#
- Parameters:
id
param1
param2
arg0 (str)
arg1 (str)
- Return type:
str
- get_resource3(id, param1, param2)#
- Parameters:
id (str)
param1 (str)
param2 (str)
- Return type:
str
- add_all(resMgr)#
- Parameters:
resMgr (ResourceManager)
- class pyliblattix.SearchCriteriaBuilder#
Bases:
object- atom_kind_filter_builder()#
Return AtomKindFilterBuilder to specify atom kinds
- Return type:
- case_sensitive()#
Turn on case sensitive
- Return type:
- property reg_ex: SearchCriteriaBuilder#
Turn on regex. Specifies if the search string is a regex expression
- partitions_with_atoms()#
Turn on option to search for partitions with atoms
- Return type:
- partitions_without_atoms()#
Turn on option to search for partitions with atoms
- Return type:
- text(text)#
Set the text to search for
- Parameters:
text (str) – string to search for
- Return type:
- build()#
build the SearchCriteria
- Return type:
- notify()#
- notify_all()#
- wait2()#
- to_string()#
- Return type:
str
- hash_code()#
- Return type:
int
- class pyliblattix.AtomKindFilterBuilder#
Bases:
object- disable_module(moduleId)#
Filter out an entire module
- Parameters:
moduleId (str) – Module to be filtered
- Return type:
- filter_atom_kind(atomKind)#
Add an atom kind that will be filtered out
- Parameters:
atomKind (AtomKind) – AtomKind to be filtered
- Return type:
- notify()#
- notify_all()#
- wait2()#
- to_string()#
- Return type:
str
- hash_code()#
- Return type:
int
- class pyliblattix.SearchCriteria#
Bases:
Criteria- notify()#
- notify_all()#
- wait2()#
- property id: str#
- property name: str#
- to_string()#
- Return type:
str
- hash_code()#
- Return type:
int
- pyliblattix.acquire_lattix_api()#
- Return type: