Inheritance: DataDictionary.Types.Type
 public virtual void visit(StateMachine obj)
 {
     visit(obj, true);
 }
 public virtual void visit(StateMachine obj, bool visitSubNodes)
 {
     visit ((Type) 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 void appendStateMachines(Lock aLock,StateMachine el)
 {
     __setDirty(true);
       el.__setDirty(true);
       allStateMachines().Add(el);
       acceptor.connectSon (this, el);
     NotifyControllers(aLock);
 }
 public void insertStateMachines(int idx, StateMachine el,Lock aLock)
 {
     __setDirty(true);
       allStateMachines().Insert (idx, el);
     NotifyControllers(aLock);
 }
 public void setStateMachine(StateMachine v)
 {
     aStateMachine = v;
       if ( v != null ) {
     v.setFather(this);
       }
       __setDirty(true);
       NotifyControllers(null);
 }
 public void copyTo(StateMachine other)
 {
     base.copyTo(other);
     other.aInitialState = aInitialState;
     other.aStates = aStates;
     other.aRules = aRules;
 }
 public State()
 {
     State obj = this;
     aStateMachine=(null);
     aWidth=(0);
     aHeight=(0);
     aX=(0);
     aY=(0);
     aPinned=(false);
     aEnterAction=(null);
     aLeaveAction=(null);
 }
 public Procedure()
 {
     Procedure obj = this;
     aStateMachine=(null);
     aRules=(null);
     aParameters=(null);
     aWidth=(0);
     aHeight=(0);
     aX=(0);
     aY=(0);
     aHidden=(false);
     aPinned=(false);
 }
 public State()
 {
     State obj = this;
     aStateMachine=(null);
     aWidth=(0);
     aHeight=(0);
     aX=(0);
     aY=(0);
 }
 public Procedure()
 {
     Procedure obj = this;
     aStateMachine=(null);
     aRules=(null);
     aParameters=(null);
 }
Exemplo n.º 11
0
        public override void visit(StateMachine obj, bool visitSubNodes)
        {
            Types.StateMachine stateMachine = (Types.StateMachine) obj;

            if (stateMachine != null)
            {
                stateMachine.Messages.Clear();

                if (stateMachine.AllValues.Count > 0)
                {
                    if (Utils.Util.isEmpty(stateMachine.Default))
                    {
                        stateMachine.AddError("Empty initial state");
                    }
                    if (stateMachine.DefaultValue == null)
                    {
                        stateMachine.AddError("Cannot find default value");
                    }
                }
            }

            base.visit(obj, visitSubNodes);
        }