Package src :: Package com :: Package deviceatlas :: Package device :: Module component :: Class Component
[frames] | no frames]

Class Component

Represents a set of property/value pairs. A Component is retrieved from a MatchCandidate during the token Trie walk. The component's weight is used to determine whether a component should override an already found component.

@author DeviceAtlas Limited

Instance Methods
 
__init__(self, component_id, weight, component_type, properties, property_ids_to_dynamic_values, component_precedes_dynamic_property, version_specific_children, start_version, end_version)
 
get_component_id(self)
 
get_weight(self)
 
get_component_type(self)
 
get_properties(self)
 
get_property_ids_to_dynamic_values(self)
 
get_component_precedes_dynamic_property(self)
 
get_version_specific_children(self)
 
get_start_version(self)
 
get_end_version(self)
 
get_parent(self)
 
set_parent(self, parent)
 
get_inherits_from(self)
 
set_inherits_from(self, inherits_from)
 
get_stock_child(self)
 
set_stock_child(self, stock_child)
 
get_specific_child(self, generic_component)
Check if there is a specific version of a generic component as a child of this parent component.
 
has_dynamic_property_rules(self)
 
has_version_specific_children(self)
 
set_properties_to_dynamic_values(self, property_ids_to_dynamic_values)
Method Details

get_specific_child(self, generic_component)

 

 Check if there is a specific version of a generic component as a child of this parent component.
:param generic_component:
:return: