View Javadoc

1   package cz.cuni.amis.pogamut.sposh.elements;
2   
3   /**
4    * All elements that can exists in the plan and their type names that will be
5    * used in the path.
6    */
7   public enum LapType {
8   
9       ACTION("A", TriggeredAction.class),
10      ACTION_PATTERN("AP", ActionPattern.class),
11      ADOPT("AD", Adopt.class),
12      COMPETENCE("C", Competence.class),
13      COMPETENCE_ELEMENT("CE", CompetenceElement.class),
14      DRIVE_COLLECTION("DC", DriveCollection.class),
15      DRIVE_ELEMENT("DE", DriveElement.class),
16      PLAN("P", PoshPlan.class),
17      SENSE("S", Sense.class);
18  
19      private final String pathName;
20      private final Class<?> typeClass;
21  
22      private LapType(String name, Class<?> typeClass) {
23          this.pathName = name;
24          this.typeClass = typeClass;
25      }
26  
27      public String getName() {
28          return pathName;
29      }
30  
31      public Class<?> getTypeClass() {
32          return typeClass;
33      }
34  }