今天为网友提供的是JAVA源码

源代码在线查看: boundvariable.java

软件大小: 4101 K
上传用户: haibokaishi2006
关键词: JAVA 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				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;
				  }
				}			

相关资源