⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productbound.java

📁 著名IT公司ILog的APS高级排产优化引擎
💻 JAVA
字号:
package com.power.pipeengine.Entity;

import java.util.*;
import com.power.pipeengine.InputData.*;

public class ProductBound
{
    private int _facilityID;
	private String _productID;
	private Hashtable _bounds = new Hashtable();

	public ProductBound( int fID, String prodID ) {
		_facilityID = fID;
		_productID = prodID;
	}

	public int getFacilityID() {
		return _facilityID;
	}

	public Facility getFacility() {
		Facilities facilities = DataModel.getInstance().getFacilities();
		return facilities.getFacility( _facilityID );
	}

	public String getProductID() {
		return _productID;
	}

	public Product getProduct() {
		Products products = DataModel.getInstance().getProducts();
		return products.getProduct( _facilityID, _productID );
	}


	public void addBound( int bucketID, String type, double qty, double cost ) {
		_bounds.put( new Integer( bucketID ).toString(),
					 new Bound( type, qty, cost ) );
	}

	public Bound getBound( int bucketID ) {
		return (Bound) _bounds.get( new Integer( bucketID ).toString() );
	}

	public void print() {
		System.out.println( _facilityID + ", " +
							_productID + "  " +
							_bounds );
	}


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -