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

has_base_unit

base packaging unit

Type

ItemUnit

has_unit_levels

list of all different packaging units

Type

List[ItemUnit]

INIT DESCRIPTION

Methods

create(_id, description, gtype, zone, …)

destroy_all()

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

is_a

namespace

storid

Full Description

classmethod create(_id, description, gtype, zone, base_unit, unit_levels)[source]
Parameters
classmethod destroy_all()[source]

Destroy all instances of Item class as well as related entities.

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