Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALBurst 2.0.7.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Macros Modules Pages
lalburst.packing.BiggestIntoEmptiest Class Reference

Detailed Description

Packs the biggest object into the emptiest bin.

Definition at line 164 of file packing.py.

Inherits lalburst.packing.Packer.

Public Member Functions

def pack (self, size, obj)
 Pack an object of given size into the bins. More...
 
def packlist (self, size_object_pairs)
 Pack a list of (size, object) tuples into the bins. More...
 
- Public Member Functions inherited from lalburst.packing.Packer
def __init__ (self, bins)
 Set the list of bins on which we shall operate. More...
 
def pack (self, size, obj)
 Pack an object of given size into the bins. More...
 
def packlist (self, size_object_pairs)
 Pack a list of (size, object) tuples into the bins. More...
 

Additional Inherited Members

- Data Fields inherited from lalburst.packing.Packer
 bins
 

Member Function Documentation

◆ pack()

def lalburst.packing.BiggestIntoEmptiest.pack (   self,
  size,
  obj 
)

Pack an object of given size into the bins.

Reimplemented from lalburst.packing.Packer.

Definition at line 165 of file packing.py.

◆ packlist()

def lalburst.packing.BiggestIntoEmptiest.packlist (   self,
  size_object_pairs 
)

Pack a list of (size, object) tuples into the bins.

Default implementation invokes self.pack() on each pair in the the order given.

Reimplemented from lalburst.packing.Packer.

Definition at line 168 of file packing.py.