Inheritance: DataDictionary.Namable
 public virtual void visit(Expectation obj, bool visitSubNodes)
 {
     visit ((Namable) obj, false);
     if (visitSubNodes){
     IXmlBBase[] Subs  = acceptor.subElements((IXmlBBase)obj);
     if (Subs != null){
     for (int i=0; i<Subs.Length; i++) {
       dispatch(Subs[i], true);
     } // If
     } // If
     }
 }
        public override void visit(Expectation obj, bool visitSubNodes)
        {
            obj.setKind(acceptor.ExpectationKind.aInstantaneous);
            obj.setBlocking(true);
            obj.setDeadLine(1);

            base.visit(obj, visitSubNodes);
        }
 public void insertExpectations(int idx, Expectation el,Lock aLock)
 {
     __setDirty(true);
       allExpectations().Insert (idx, el);
     NotifyControllers(aLock);
 }
 public virtual void visit(Expectation obj)
 {
     visit(obj, true);
 }
 public void appendExpectations(Lock aLock,Expectation el)
 {
     __setDirty(true);
       el.__setDirty(true);
       allExpectations().Add(el);
       acceptor.connectSon (this, el);
     NotifyControllers(aLock);
 }
 public void copyTo(Expectation other)
 {
     base.copyTo(other);
     other.aValue = aValue;
     other.aBlocking = aBlocking;
     other.aKind = aKind;
     other.aDeadLine = aDeadLine;
     other.aCondition = aCondition;
     other.aComment = aComment;
     other.aCyclePhase = aCyclePhase;
 }
 /// <summary>
 ///     Review the expressions associated to this expectation
 /// </summary>
 /// <param name="expectation"></param>
 private void Review(Expectation expectation)
 {
     expectation.Value = ReviewExpression(expectation.Step, expectation.Value);
 }
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="id"></param>
 public Expect(Expectation expectation, acceptor.RulePriority? priority)
     : base(expectation.ExpressionText, expectation, priority)
 {
     Expectation = expectation;
     State = EventState.Active;
 }
        public override void visit(Expectation obj, bool subNodes)
        {
            Tests.Expectation expect = obj as Tests.Expectation;

            if (expect != null)
            {
                try
                {
                    expect.Messages.Clear();
                    if (!expect.ExpressionText.Contains("%"))
                    {
                        Expression expression = checkExpression(expect, expect.ExpressionText);
                        if (expression != null)
                        {
                            if (!expect.EFSSystem.BoolType.Match(expression.GetExpressionType()))
                            {
                                expect.AddError("Expression type should be Boolean");
                            }
                        }
                    }
                    if (!string.IsNullOrEmpty(expect.getCondition()) && !expect.getCondition().Contains("%"))
                    {
                        Expression expression = checkExpression(expect, expect.getCondition());
                        if (expression != null)
                        {
                            if (!expect.EFSSystem.BoolType.Match(expression.GetExpressionType()))
                            {
                                expect.AddError("Condition type should be Boolean");
                            }
                        }
                    }
                }
                catch (Exception exception)
                {
                    expect.AddException(exception);
                }
            }

            base.visit(obj, subNodes);
        }