Class Almanac

java.lang.Object
org.episteme.social.sports.Almanac
All Implemented Interfaces:
Serializable

public class Almanac extends Object implements Serializable
A persistent record container for sporting events, competitions, and match results. Acts as a historical archive for sports data analysis. * @version 1.1
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Almanac

      public Almanac()
  • Method Details

    • addResult

      public void addResult(Match match)
      Adds a match result to the almanac.
      Parameters:
      match - the match to record
    • addResult

      public void addResult(Competition competition)
      Adds a competition result to the almanac.
      Parameters:
      competition - the competition to record
    • removeResult

      public void removeResult(Object result)
      Removes a specific record from the almanac.
      Parameters:
      result - the record object (Match or Competition)
    • getMatches

      public Set<Match> getMatches()
      Retrieves all recorded matches.
      Returns:
      an unmodifiable set of matches
    • getCompetitions

      public Set<Competition> getCompetitions()
      Retrieves all recorded competitions.
      Returns:
      an unmodifiable set of competitions
    • getAllRecords

      public Set<Object> getAllRecords()
      Retrieves all records stored in the almanac.
      Returns:
      an unmodifiable set of all records