1 package org.enhydra.shark.xpdl.elements; 2 3 import org.enhydra.shark.xpdl.XMLComplexElement; 4 5 10 public class TimeEstimation extends XMLComplexElement { 11 12 public TimeEstimation (SimulationInformation parent) { 13 super(parent, true); 14 } 15 16 public TimeEstimation (ProcessHeader parent) { 17 super(parent, false); 18 } 19 20 protected void fillStructure () { 21 WaitingTime refWaitingTime=new WaitingTime(this); WorkingTime refWorkingTime=new WorkingTime(this); Duration refDuration=new Duration(this); 25 add(refWaitingTime); 26 add(refWorkingTime); 27 add(refDuration); 28 } 29 30 public String getDuration() { 31 return get("Duration").toValue(); 32 } 33 public void setDuration(String duration) { 34 set("Duration",duration); 35 } 36 public String getWaitingTime() { 37 return get("WaitingTime").toValue(); 38 } 39 public void setWaitingTime(String waitingTime) { 40 set("WaitingTime",waitingTime); 41 } 42 public String getWorkingTime() { 43 return get("WorkingTime").toValue(); 44 } 45 public void setWorkingTime(String workingTime) { 46 set("WorkingTime",workingTime); 47 } 48 } 49 | Popular Tags |