KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > xpdl > elements > TimeEstimation


1 package org.enhydra.shark.xpdl.elements;
2
3 import org.enhydra.shark.xpdl.XMLComplexElement;
4
5 /**
6  * Represents coresponding element from XPDL schema.
7  *
8  * @author Sasa Bojanic
9  */

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 JavaDoc getDuration() {
31       return get("Duration").toValue();
32    }
33    public void setDuration(String JavaDoc duration) {
34       set("Duration",duration);
35    }
36    public String JavaDoc getWaitingTime() {
37       return get("WaitingTime").toValue();
38    }
39    public void setWaitingTime(String JavaDoc waitingTime) {
40       set("WaitingTime",waitingTime);
41    }
42    public String JavaDoc getWorkingTime() {
43       return get("WorkingTime").toValue();
44    }
45    public void setWorkingTime(String JavaDoc workingTime) {
46       set("WorkingTime",workingTime);
47    }
48 }
49
Popular Tags