public void CalculatePattern(WeekValues weekValues) { StalkMarketAutomaton automaton = new StalkMarketAutomaton(StartingDate, TurnipStartingPrice, weekValues); SellingDate = automaton.SellingDate; WeekPatternId = automaton.Pattern; TurnipSellingPrice = automaton.SellingPrice; }
public StalkMarketAutomaton(DateTime date, int buyingPrice, WeekValues weekValues) { BuyingPrice = buyingPrice; WeekValues = weekValues; Date = date; Pattern = 0; SellingDate = null; WeekStart(); }
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; }