PHP 클래스 DVDoug\BoxPacker\WeightRedistributor

저자: Doug Wright
상속: implements Psr\Log\LoggerAwareInterface, use trait Psr\Log\LoggerAwareTrait
파일 보기 프로젝트 열기: dvdoug/boxpacker 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$boxes DVDoug\BoxPacker\BoxList List of box sizes available to pack items into

공개 메소드들

메소드 설명
__construct ( DVDoug\BoxPacker\BoxList $boxList ) Constructor
redistributeWeight ( DVDoug\BoxPacker\PackedBoxList $originalBoxes ) : DVDoug\BoxPacker\PackedBoxList Given a solution set of packed boxes, repack them to achieve optimum weight distribution

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( DVDoug\BoxPacker\BoxList $boxList )
$boxList DVDoug\BoxPacker\BoxList

redistributeWeight() 공개 메소드

Given a solution set of packed boxes, repack them to achieve optimum weight distribution
public redistributeWeight ( DVDoug\BoxPacker\PackedBoxList $originalBoxes ) : DVDoug\BoxPacker\PackedBoxList
$originalBoxes DVDoug\BoxPacker\PackedBoxList
리턴 DVDoug\BoxPacker\PackedBoxList

프로퍼티 상세

$boxes 보호되어 있는 프로퍼티

List of box sizes available to pack items into
protected BoxList,DVDoug\BoxPacker $boxes
리턴 DVDoug\BoxPacker\BoxList