public override Object Do(ProcessFlow flow) { List <int> result = new List <int>(); foreach (String id in Ids) { Store store = flow.stores.Find(id); result.Add(store.amount); } return(result); }
public override Object Do(ProcessFlow flow) { foreach (StoreIDAmount sa in this.amounts) { String storeId = sa.storeId; Store store = flow.stores.Find(storeId); int amount = sa.amount; int storeAmount = store.amount; int newAmount = storeAmount + amount; if (store.capacity == -1 || newAmount <= store.capacity) { store.amount = newAmount; } } return(null); }
public override Object Do(ProcessFlow flow) { flow.Execute(count); return(null); }
public abstract Object Do(ProcessFlow flow);