排产系统
源代码在线查看: boundvariable.java
软件大小: |
4136 K |
上传用户: |
zhou28 |
|
|
关键词: |
|
下载地址: |
免注册下载 普通下载
|
|
package com.power.pipeengine.Variable;
import com.power.pipeengine.Entity.*;
import java.util.ResourceBundle;
public class BoundVariable
extends Variable {
private static final BoundVariable INSTANCE =
new BoundVariable();
// Private constructor supresses
// default public constructor
private BoundVariable() {
}
public static BoundVariable getInstance() {
return INSTANCE;
}
public String getVariable(String bndType, Facility f, Product p, Bucket b) {
String var = new String(bndType.substring(0, 1) +
"F" + f.getVariableCode() +
"P" + p.getVariableCode() +
"T" + b.getVariableCode());
/*String separator = "";
String var = new String( bndType.substring(0, 1) +
f.getFacilityID() + separator +
p.getProductID() + separator +
b.getBucketID() );*/
super.setObjElement(var,
500 + p.getASP(b.getBucketID()) + Math.random() * 0.0000001);
return var;
}
}