예제 #1
0
        public void CalculatePattern(WeekValues weekValues)
        {
            StalkMarketAutomaton automaton = new StalkMarketAutomaton(StartingDate, TurnipStartingPrice, weekValues);

            SellingDate        = automaton.SellingDate;
            WeekPatternId      = automaton.Pattern;
            TurnipSellingPrice = automaton.SellingPrice;
        }
예제 #2
0
 public StalkMarketAutomaton(DateTime date, int buyingPrice, WeekValues weekValues)
 {
     BuyingPrice = buyingPrice;
     WeekValues  = weekValues;
     Date        = date;
     Pattern     = 0;
     SellingDate = null;
     WeekStart();
 }
예제 #3
0
 public void Map(WeekValues weekValues)
 {
     Id    = weekValues.Id;
     monAM = weekValues.monAM;
     monPM = weekValues.monPM;
     tueAM = weekValues.tueAM;
     tuePM = weekValues.tuePM;
     wedAM = weekValues.wedAM;
     wedPM = weekValues.wedPM;
     thuAM = weekValues.thuAM;
     thuPM = weekValues.thuPM;
     friAM = weekValues.friAM;
     friPM = weekValues.friPM;
     satAM = weekValues.satAM;
     satPM = weekValues.satPM;
 }