productbound.java

来自「著名IT公司ILog的APS高级排产优化引擎」· Java 代码 · 共 53 行

JAVA
53
字号
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 + =
减小字号Ctrl + -
显示快捷键?