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