Exemple #1
0
 internal WeighNode(SPort _port, byte node_addr)
     : base(_port, node_addr)
 {
     _lastweight = -1;
     rand        = new Random();
     cnt_match   = 0;
     cnt_aderr   = 0;
 }
Exemple #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> >();
            valfresh  = new Dictionary <string, bool>();

            ICollection <string> names = reg_type_tbl.Keys;

            foreach (string name in names)
            {
                curr_conf[name] = null;
                valfresh[name]  = false;
            }
            port.InFrameHandlers[node_id] = HandleInFrame;



            status = NodeStatus.ST_IDLE;
        }
Exemple #3
0
 internal VibrateNode(SPort _port, byte node_addr) : base(_port, node_addr)
 {
     intf_byte = new Intf(0);
 }
Exemple #4
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>>();
     valfresh = new Dictionary<string, bool>();
    
     ICollection<string> names = reg_type_tbl.Keys;
     foreach (string name in names)
     {
         curr_conf[name] = null;
         valfresh[name] = false;
     }
     port.InFrameHandlers[node_id] = HandleInFrame;
     
     
     
     status = NodeStatus.ST_IDLE;
         
 }
Exemple #5
0
 internal VibrateNode(SPort _port,byte node_addr): base(_port,node_addr)
 {
     intf_byte = new Intf(0);
 }
Exemple #6
0
 internal WeighNode(SPort _port, byte node_addr)
     : base(_port,node_addr)
 {
     _lastweight = -1;
     rand = new Random();
     cnt_match = 0;
     cnt_aderr = 0;
 }