} //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; }
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; }
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); } } }
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; }
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); } } }
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; }