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_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)
Properties
  component_id
  weight
  component_type
  properties
  component_precedes_dynamic_property
  version_specific_children
  start_version
  end_version
  parent
  inherits_from
  stock_child
  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:


Property Details

component_id

Get Method:
unreachable.component_id(self)

weight

Get Method:
unreachable.weight(self)

component_type

Get Method:
unreachable.component_type(self)

properties

Get Method:
unreachable.properties(self)

component_precedes_dynamic_property

Get Method:
unreachable.component_precedes_dynamic_property(self)

version_specific_children

Get Method:
unreachable.version_specific_children(self)

start_version

Get Method:
unreachable.start_version(self)

end_version

Get Method:
unreachable.end_version(self)

parent

Get Method:
unreachable.parent(self)
Set Method:
unreachable.parent(self, parent)

inherits_from

Get Method:
unreachable.inherits_from(self)
Set Method:
unreachable.inherits_from(self, inherits_from)

stock_child

Get Method:
unreachable.stock_child(self)
Set Method:
unreachable.stock_child(self, stock_child)

property_ids_to_dynamic_values

Get Method:
unreachable.property_ids_to_dynamic_values(self)
Set Method:
unreachable.property_ids_to_dynamic_values(self, property_ids_to_dynamic_values)