Exemplo n.º 1
0
/*
 *      public void Query()
 *      {
 *          if (NodeAgent.IsDebug)
 *              return;
 *          read_regs(new string[] { "mtrl_weight_gram", "mtrl_weight_decimal" });
 *      }
 */

        internal WeighNode(SPort _port, byte node_addr)
            : base(_port, node_addr)
        {
            rand      = new Random();
            cnt_aderr = 0;
            cnt_match = -1;
        }
Exemplo n.º 2
0
        internal SubNode(SPort _port, byte node_id)
        {
            port         = _port;
            this.node_id = node_id;
            errlist      = "";

            //to initial reg_table items from xml table
            curr_conf = new Dictionary <string, Nullable <UInt32> >();
            last_conf = new Dictionary <string, Nullable <UInt32> >();

            ICollection <string> names = reg_type_tbl.Keys;

            foreach (string name in names)
            {
                last_conf[name] = null;
                curr_conf[name] = null;
            }
            status = NodeStatus.ST_IDLE;
        }
Exemplo n.º 3
0
 internal SubNode(SPort _port, byte node_id)
 {
     port = _port;
     this.node_id = node_id;
     errlist = "";
     
     //to initial reg_table items from xml table
     curr_conf = new Dictionary<string, Nullable<UInt32>>();
     last_conf = new Dictionary<string, Nullable<UInt32>>();
   
     ICollection<string> names = reg_type_tbl.Keys;
     foreach (string name in names)
     {
         last_conf[name] = null;
         curr_conf[name] = null;
     }
     status = NodeStatus.ST_IDLE;
         
 }
Exemplo n.º 4
0
 internal VibrateNode(SPort _port,byte node_addr): base(_port,node_addr)
 {
     intf_byte = new Intf(0);
 }
Exemplo n.º 5
0
/*        
        public void Query()
        {
            if (NodeAgent.IsDebug)
                return;
            read_regs(new string[] { "mtrl_weight_gram", "mtrl_weight_decimal" });
        }
*/        

        internal WeighNode(SPort _port, byte node_addr)
            : base(_port,node_addr)
        {
            rand = new Random();
            cnt_aderr = 0;
            cnt_match = -1;
        }
Exemplo n.º 6
0
 internal VibrateNode(SPort _port, byte node_addr) : base(_port, node_addr)
 {
     intf_byte = new Intf(0);
 }