コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
 public override Object Do(ProcessFlow flow)
 {
     flow.Execute(count);
     return(null);
 }
コード例 #4
0
 public abstract Object Do(ProcessFlow flow);