private AtomicAction() { Walking = new atomic("Walking", 0); Running = new atomic("Running", 0); Nonuniform = new atomic("Nonuniform", 0); Standing = new atomic("Standing", 0); Sitting = new atomic("Sitting", 0); Unknown = new atomic("Unknown", 0); Counter = 0; }
public string GetAtomicAction() { List <atomic> list = new List <atomic>(); list.Add(Walking); list.Add(Running); list.Add(Nonuniform); list.Add(Standing); list.Add(Sitting); list.Add(Unknown); var ret = new atomic("", 0); foreach (var a in list) { if (a.value > ret.value) { ret = a; } } return(ret.name); }