virtual_warehouse.data.data_model.Location¶
- class Location(name=None, namespace=None, **kargs)[source]¶
Bases:
virtual_warehouse.data.data_model.PhysicalObject
Description of location in warehouse.
- name¶
unique id of location
- Type
str
- has_ltype¶
type of location
- Type
str
- has_lclass¶
class of location
- Type
str
- has_lsubclass¶
subclass of location
- Type
str
- has_length¶
length of location
- Type
float
- has_width¶
width of location
- Type
float
- has_height¶
height of location
- Type
float
- has_max_weight¶
maximal weight which can location hold
- Type
float
- has_zone¶
zone where is location located
- Type
str
- has_x¶
x coordinate of location
- Type
float
- has_y¶
y coordinate of location
- Type
float
- has_z¶
z coordinate of location
- Type
float
- INIT DESCRIPTION
Methods
create
(_id, ltype, lclass, lsubclass, …[, …])Destroy all instances of Location class.
get_2d
()Get planar coordinates of location (used for top-down view).
set_coord
(x, y, z)Additionally set coordinates of the location.
Attributes
Full Description
- classmethod create(_id, ltype, lclass, lsubclass, length, width, height, dim_uom=None, max_weight=None, weight_uom=None, zone=None, x=None, y=None, z=None)[source]¶
- Parameters
_id (str) –
ltype (str) –
lclass (str) –
lsubclass (str) –
length (float) –
width (float) –
height (float) –
dim_uom (Optional[str]) –
max_weight (Optional[float]) –
weight_uom (Optional[str]) –
zone (Optional[str]) –
x (Optional[float]) –
y (Optional[float]) –
z (Optional[float]) –
- is_a = [onto.PhysicalObject]¶
- namespace = get_ontology("http://warehouse/onto.owl#")¶
- set_coord(x, y, z)[source]¶
Additionally set coordinates of the location.
- Parameters
x (float) –
y (float) –
z (float) –
- storid = 309¶