Example #1
0
 /** @param type The type of the condition */
 public void setType(String type) {
   logger.trace("setType(" + type + ")");
   for (EnumCondType val : EnumCondType.values()) {
     if (val.value().equals(type)) {
       this.type = val;
     }
   }
 }
Example #2
0
 public static TLTCond createCond(String type) {
   return createCond(EnumCondType.fromValue(type));
 }
Example #3
0
 /** @param type The type of the condition */
 public void setType(EnumCondType type) {
   logger.trace("setType(" + type.value() + ")");
   this.type = type;
 }
Example #4
0
 /**
  * Advanced constructor for a TLTCond.
  *
  * @param id
  * @param observer The name of the observer corresponding to the condition
  * @param type The type of the condition
  */
 public TLTCond(String id, Observer observer, EnumCondType type, String value) {
   logger.trace("constructor(" + id + ", " + observer + ", " + type.value() + ")");
   this.id = id;
   this.observer = observer;
   this.type = type;
 }