public Question(QLMemory memory, string name, string label, QType type) { Memory = memory; Name = name; Label = label; Type = type; }
public void Declare(string name, QType type) { _idsTypes[name] = type; }
public ComputedQuestion(QLMemory memory, string name, string label, QType type, ExpressionBase expression) : base(memory, name, label, type) { _value = expression; }
public override bool IsCompatibleWith(QType type) { return type.IsCompatibleWithQBool(this); }
public virtual bool IsCompatibleWith(QType type) { return false; }
public override bool IsCompatibleWith(QType type) { return(type.IsCompatibleWithQInt(this)); }
public virtual bool IsCompatibleWith(QType type) { return(false); }