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

📄 simulationinformation.java

📁 jawe的最新版本,基于Java的图形化工作流编辑器。图形化工作流编辑器 。使用JAVA语言开发
💻 JAVA
字号:
package org.enhydra.shark.xpdl.elements;import org.enhydra.shark.xpdl.XMLAttribute;import org.enhydra.shark.xpdl.XMLComplexElement;import org.enhydra.shark.xpdl.XPDLConstants;/** *  Represents coresponding element from XPDL schema. *  *  @author Sasa Bojanic */public class SimulationInformation extends XMLComplexElement {   public SimulationInformation (Activity parent) {      super(parent, false);   }   protected void fillStructure () {      XMLAttribute attrInstantiation=new XMLAttribute(this,"Instantiation",            false,new String[] {               XPDLConstants.INSTANTIATION_NONE,               XPDLConstants.INSTANTIATION_ONCE,               XPDLConstants.INSTANTIATION_MULTIPLE            }, 0);      Cost refCost=new Cost(this);      TimeEstimation refTimeEstimation=new TimeEstimation(this);      add(attrInstantiation);      add(refCost);      add(refTimeEstimation);   }   public XMLAttribute getInstantiationAttribute() {      return (XMLAttribute)get("Instantiation");   }   public String getInstantiation() {      return getInstantiationAttribute().toValue();   }   public void setInstantiationNONE() {      getInstantiationAttribute().setValue(XPDLConstants.INSTANTIATION_NONE);   }   public void setInstantiationONCE() {      getInstantiationAttribute().setValue(XPDLConstants.INSTANTIATION_ONCE);   }   public void setInstantiationMULTIPLE() {      getInstantiationAttribute().setValue(XPDLConstants.INSTANTIATION_MULTIPLE);   }   public String getCost() {      return get("Cost").toValue();   }   public void setCost(String cost) {      set("Cost",cost);   }   public TimeEstimation getTimeEstimation() {      return (TimeEstimation)get("TimeEstimation");   }}

⌨️ 快捷键说明

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