Exemplo n.º 1
0
        public void CalculatePattern(WeekValues weekValues)
        {
            StalkMarketAutomaton automaton = new StalkMarketAutomaton(StartingDate, TurnipStartingPrice, weekValues);

            SellingDate        = automaton.SellingDate;
            WeekPatternId      = automaton.Pattern;
            TurnipSellingPrice = automaton.SellingPrice;
        }
Exemplo n.º 2
0
 public StalkMarketAutomaton(DateTime date, int buyingPrice, WeekValues weekValues)
 {
     BuyingPrice = buyingPrice;
     WeekValues  = weekValues;
     Date        = date;
     Pattern     = 0;
     SellingDate = null;
     WeekStart();
 }
Exemplo n.º 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;
 }