Пример #1
0
        }                                        //status of running

        public Packer()
        {
            vib_node    = null;
            pack_node   = null;
            weight_node = new List <WeighNode>();
            all_conf    = new XmlConfig(pack_define_file);
            all_conf.LoadConfigFromFile();
            sys_cfg   = new PackerConfig();
            curr_node = -1;
            status    = PackerStatus.IDLE;
        }
Пример #2
0
        public PackerStatus status { get; set; } //status of running

        public Packer()
        {
            vib_node = null;
            pack_node = null;
            weight_node = new List<WeighNode>();
            all_conf = new XmlConfig(pack_define_file);
            all_conf.LoadConfigFromFile();
            sys_cfg = new PackerConfig();
            curr_node = -1;
            status = PackerStatus.IDLE;
        }
Пример #3
0
 public void AddNode(SubNode node)
 {
     if (node is WeighNode)
     {
         weight_node.Add(node as WeighNode);
     }
     if (node is VibrateNode)
     {
         vib_node = node as VibrateNode;
     }
     if (node is BottomPackNode)
     {
         pack_node = node as BottomPackNode;
     }
 }
Пример #4
0
 public void AddNode(SubNode node)
 {
     if (node is WeighNode)
     {
         weight_node.Add(node as WeighNode);
     }
     if (node is VibrateNode)
     {
         vib_node = node as VibrateNode;
     }
     if (node is BottomPackNode)
     {
         pack_node = node as BottomPackNode;
     }
 }