NAME

Box::Calc::Box - The container in which we pack items.

VERSION

version 0.0100

SYNOPSIS

my $box = Box::Calc::Box->new(name => 'Big Box', x => 12, y => 12, z => 18, weight => 20);

METHODS

new(params)

Constructor.

NOTE: All boxes automatically have one empty Box::Calc::Layer added to them.

params
name

An identifying name for your box.

x

The interior width of your box.

y

The interior length of your box.

z

The interior thickness of your box.

weight

The weight of your box.

fill_x()

Returns how full the box is in the x dimension.

fill_y()

Returns how full the box is in the y dimension.

fill_z()

Returns how full the box is in the z dimension.

name()

Returns the name of the box.

layers()

Returns an array reference of the Box::Calc::Layers in this box.

calculate_weight()

Calculates and returns the weight of all the layers in this box, including the weight of this box.

create_layer()

Adds a new Box::Calc::Layer to this box.

pack_item(item)

Add a Box::Calc::Item to this box.

item

The Box::Calc::Item instance you want to add to this box.

packing_list()

Returns an array reference of Box::Calc::Layer packing lists.