/** @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; } } }
public static TLTCond createCond(String type) { return createCond(EnumCondType.fromValue(type)); }
/** @param type The type of the condition */ public void setType(EnumCondType type) { logger.trace("setType(" + type.value() + ")"); this.type = type; }
/** * 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; }