Esempio n. 1
0
        public MetaAction Clone()
        {
            MetaAction action = new MetaAction();

            //Console.WriteLine ("[MetaAction.Clone] clonando a MetaAction {0}...", Name);
            Clone(action);

            return(action);
        }
Esempio n. 2
0
        public void AddAction(string name, MetaAction a)
        {
            if (actions == null)
            {
                actions = new Dictionary <string, MetaAction>();
            }

            a.Father = this;

            if (!actions.ContainsKey(name))
            {
                actions.Add(name, a);
            }
            else
            {
                //System.Diagnostics.Console.WriteLine("[MetaUnit.AddAction] {0} is already in actions ...", name);
            }
        }
Esempio n. 3
0
        public void Clone(MetaAction action)
        {
            //Console.WriteLine ("[MetaAction.Clone] Base MetaAction... {0}", action == null);
            //base.Clone(action);

            if (references != null)
            {
                action.references = new List <string>();

                foreach (string s in references)
                {
                    action.references.Add(s);
                }
            }

            action.Name     = Name;
            action.Protocol = Protocol;
            //Console.WriteLine ("[MetaAction.Clone] Fim Base MetaAction...");
        }
Esempio n. 4
0
 public Interpreter(br.ufc.pargo.hpe.connector.meta.MetaAction action)
 {
     this._action = action;
 }