View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   
6   package cz.cuni.amis.pogamut.udk.t3dgenerator.elements.kismet;
7   
8   /**
9    * A delay action in kismet.
10   * @author Martin Cerny
11   */
12  public class DelayAction extends AbstractKismetObject{
13      public static final String ABORTED_LINK = "Aborted";
14      public static final String DURATION_LINK = "Duration";
15      public static final String FINISHED_LINK = "Finished";
16      public static final String PAUSE_LINK = "Pause";
17      public static final String START_LINK = "Start";
18      public static final String STOP_LINK = "Stop";
19      
20      
21      public static final String CLASSNAME = "SeqAct_Delay";
22      
23      private Float duration;
24      private Boolean startWillRestart;
25      
26      public DelayAction(String archetypeName, Float duration, Boolean startWillRestart){
27          super(CLASSNAME, archetypeName, new String[]{START_LINK, STOP_LINK, PAUSE_LINK}, new String[]{FINISHED_LINK, ABORTED_LINK}, new String[]{DURATION_LINK});
28          this.duration = duration;
29          this.startWillRestart = startWillRestart;
30      }
31  
32      public DelayAction(Float duration, Boolean startWillRestart){
33          this(getDefaultArchetype(CLASSNAME), duration, startWillRestart);
34      }
35  
36      public DelayAction(Float duration){
37          this(duration, null);
38      }
39  
40      public Float getDuration() {
41          return duration;
42      }
43  
44      public void setDuration(Float duration) {
45          this.duration = duration;
46      }
47  
48      public Boolean getStartWillRestart() {
49          return startWillRestart;
50      }
51  
52      public void setStartWillRestart(Boolean startWillRestart) {
53          this.startWillRestart = startWillRestart;
54      }
55      
56      
57  }