01: package org.enhydra.shark.xpdl.elements;
02:
03: import org.enhydra.shark.xpdl.XMLComplexElement;
04:
05: /**
06: * Represents coresponding element from XPDL schema.
07: *
08: * @author Sasa Bojanic
09: */
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 ); // min=0
22: WorkingTime refWorkingTime = new WorkingTime(this ); // min=0
23: Duration refDuration = new Duration(this ); // min=0
24:
25: add(refWaitingTime);
26: add(refWorkingTime);
27: add(refDuration);
28: }
29:
30: public String getDuration() {
31: return get("Duration").toValue();
32: }
33:
34: public void setDuration(String duration) {
35: set("Duration", duration);
36: }
37:
38: public String getWaitingTime() {
39: return get("WaitingTime").toValue();
40: }
41:
42: public void setWaitingTime(String waitingTime) {
43: set("WaitingTime", waitingTime);
44: }
45:
46: public String getWorkingTime() {
47: return get("WorkingTime").toValue();
48: }
49:
50: public void setWorkingTime(String workingTime) {
51: set("WorkingTime", workingTime);
52: }
53: }
|