Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 3
0
 public void StopRun()
 {
     status = PackerStatus.IDLE;
     vib_node.Action("stop", false);
     foreach (WeighNode n in this.weight_node)
     {
         if (n.status != NodeStatus.ST_LOST)
         {
             n.Action("stop", true);
         }
     }
 }
Esempio n. 4
0
 public void StartRun()
 {
     vib_node.Action("start", false);
     foreach (WeighNode n in this.weight_node)
     {
         if (n.status != NodeStatus.ST_LOST)
         {
             n.Action("start", true);
         }
     }
     status = PackerStatus.RUNNING;
 }
Esempio n. 5
0
 public void StopRun()
 {
     status = PackerStatus.IDLE;
     vib_node.Action("stop",false);
     foreach (WeighNode n in this.weight_node)
     {
         if (n.status != NodeStatus.ST_LOST)
         {
             n.Action("stop", true);
         }
     }
 }
Esempio n. 6
0
 public void StartRun()
 {
     vib_node.Action("start",false);
     foreach (WeighNode n in this.weight_node)
     {
         if (n.status != NodeStatus.ST_LOST)
         {
             n.Action("start", true);
         }
     }
     status = PackerStatus.RUNNING;
 }