• 大小: 923KB
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2021-01-05
  • 语言: Java
  • 标签: 代码  

资源简介

三维装箱问题——最佳适应解法(BestFit),利用Java实现,借鉴于GitHub项目,大篇幅修改完成,数学建模专用。

资源截图

代码片段和文件信息

package BinPacking.Data.Logic.Bin;

import BinPacking.Data.Logic.BinSpace.BinSpace;
import BinPacking.Data.Logic.BinSpace.Dimensions;
import BinPacking.Data.Logic.BinSpace.Point;
import BinPacking.Data.UI.SceneModels.BinModel;
import BinPacking.Data.UI.SceneModels.GraphicsModel;
import BinPacking.Data.UI.SceneModels.SceneModel;

/**
 * Created by FrankWu on 18.07.2019.
 * 箱子是类树结构,每一个箱子都包含它的货物列表
 */
public class Bin extends BinSpace implements GraphicsModel {
    public enum State {EMPTY FULL WASTE}

    public enum Type {ROOT A B C D}

    private State state = State.EMPTY;
    private Type type;
    private SceneModel binModel;

    public Bin(Point point Dimensions dimensions Type type) {
        super(point new Dimensions(dimensions.getLength() dimensions.getWidth() dimension

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-09-08 11:17  3D-Bin-Packing\
     文件       75994  2019-07-18 17:03  3D-Bin-Packing\junit-jupiter-api-5.0.0.jar
     目录           0  2019-09-08 12:19  __MACOSX\
     目录           0  2019-09-08 12:19  __MACOSX\3D-Bin-Packing\
     文件         408  2019-07-18 17:03  __MACOSX\3D-Bin-Packing\._junit-jupiter-api-5.0.0.jar
     文件        8196  2019-07-21 20:09  3D-Bin-Packing\.DS_Store
     文件         120  2019-07-21 20:09  __MACOSX\3D-Bin-Packing\._.DS_Store
     目录           0  2019-09-08 11:13  3D-Bin-Packing\out\
     目录           0  2019-09-08 11:13  3D-Bin-Packing\out\production\
     目录           0  2019-09-08 11:13  3D-Bin-Packing\out\production\3D-Bin-Packing\
     目录           0  2019-09-08 11:13  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\
     目录           0  2019-09-08 11:13  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\StartApplication\
     文件        2869  2019-07-18 22:02  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\StartApplication\Main.class
     目录           0  2019-09-08 11:13  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\
     文件        3699  2019-07-21 17:55  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\input1.txt
     目录           0  2019-09-08 11:03  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\
     文件        7075  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room16.txt
     文件        7068  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room17.txt
     文件        7065  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room29.txt
     文件        7067  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room15.txt
     文件        7068  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room14.txt
     文件        7075  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room28.txt
     文件        7048  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room10.txt
     文件        7065  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room38.txt
     文件        7063  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room39.txt
     文件        7045  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room11.txt
     文件        7053  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room13.txt
     文件        7063  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room12.txt
     文件        7069  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room49.txt
     文件        7090  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room61.txt
     文件        7065  2019-07-21 19:19  3D-Bin-Packing\out\production\3D-Bin-Packing\BinPacking\Tests\dataWith200\room75.txt
............此处省略353个文件信息

评论

共有 条评论