virtual_warehouse.data.data_model.Item¶
- class Item(name=None, namespace=None, **kargs)[source]¶
Bases:
owlready2.individual.Thing
Basic description of item, including packaging units.
- name¶
id of item
- Type
str
- has_description¶
description of items
- Type
str
- has_gtype¶
type of goods
- Type
str
- has_required_zone¶
required zone for storing item
- Type
str
- INIT DESCRIPTION
Methods
create
(_id, description, gtype, zone, …)Destroy all instances of Item class as well as related entities.
get_by_locations
(locations)Get list of items stored at given location.
get_by_orders
(orders)Get list of items included in given orders.
Attributes
Full Description
- classmethod create(_id, description, gtype, zone, base_unit, unit_levels)[source]¶
- Parameters
_id (str) –
description (str) –
gtype (str) –
zone (str) –
base_unit (virtual_warehouse.data.data_model.ItemUnit) –
unit_levels (List[virtual_warehouse.data.data_model.ItemUnit]) –
- static get_by_locations(locations)[source]¶
Get list of items stored at given location.
- Parameters
locations (List[RackLocation]) – list of locations to look for.
- Returns
List[Item] – list of items stored at locations
- static get_by_orders(orders)[source]¶
Get list of items included in given orders.
- Parameters
orders (List[Order]) – list of orders to search.
- Returns
List[Item] – list of items included in orders.
- is_a = [owl.Thing]¶
- namespace = get_ontology("http://warehouse/onto.owl#")¶
- storid = 308¶