排产系统

源代码在线查看: rscslackvariable.java

软件大小: 4136 K
上传用户: zhou28
关键词:
下载地址: 免注册下载 普通下载 VIP

相关代码

				package com.power.pipeengine.Variable;
				
				import java.util.*;
				import com.power.pipeengine.Entity.*;
				
				public class RscSlackVariable
				    extends Variable {
				  private static final RscSlackVariable INSTANCE =
				      new RscSlackVariable();
				
				  // Private constructor supresses
				  // default public constructor
				  private RscSlackVariable() {
				  }
				
				  public static RscSlackVariable getInstance() {
				    return INSTANCE;
				  }
				
				  public String getVariable(Resource rsc, Facility f, Bucket b) {
				    String varName = new String("R" +
				                      "R" + rsc.getVariableCode() +
				                      "F" + f.getVariableCode() +
				                      "T" + b.getVariableCode());
				    /*String separator = "";
				       return new String( "R" + rsc.getResourceID() + separator +
				           f.getFacilityID() + separator +
				           b.getBucketID() );*/
				
				    //this.setObjElement( varName, (100 - b.getBucketID())/100 );
				    return varName;
				  }
				
				}			

相关资源