Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoned date time #3

Open
wants to merge 11 commits into
base: option-0-no-api
Choose a base branch
from

Commits on Jul 15, 2024

  1. Configuration menu
    Copy the full SHA
    23e33a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89e4c02 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Completes chunk of proposed refactoring.

    Largely simplifies things down a little more and reduces reliance on global settings such as timezones or clocks.
    
    Some other notable points:
    - simplifes ElecriticityReadingsGenerator with a stream. Supplies tests for this stream.
    - factors out PeakTimeMultiplier into a simple record
    - provides ElectricityReading with a secondary constructor to avoid the fixture factory
    - PricePLan is now constructed with simple Map<DayOfWeek, BigDecimal> rather than a list for more determinism
    - Tidies up imports and formatting using the code conventions defined in the build
    jejking-tw committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    4c379c1 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2024

  1. Configuration menu
    Copy the full SHA
    d2eb50d View commit details
    Browse the repository at this point in the history
  2. Update src/test/java/tw/joi/energy/config/ElectricityReadingsGenerato…

    …rTest.java
    
    Co-authored-by: Jeremy Huiskamp <[email protected]>
    jejking-tw and jeremyhuiskamp authored Jul 21, 2024
    Configuration menu
    Copy the full SHA
    19e10a6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c9c2268 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    54a628c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    20ce194 View commit details
    Browse the repository at this point in the history
  6. Provides an additional constructor for PricePlan that initiates an …

    …immutable empty map of peak time modifiers. Modifies the existing constructor to remove unnecessary (and broken) conversion from set to map.
    jejking-tw committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    6baa03c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    50af408 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    aa0836c View commit details
    Browse the repository at this point in the history