Class Almanac
java.lang.Object
org.episteme.social.sports.Almanac
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResult(Competition competition) Adds a competition result to the almanac.voidAdds a match result to the almanac.Retrieves all records stored in the almanac.Retrieves all recorded competitions.Retrieves all recorded matches.voidremoveResult(Object result) Removes a specific record from the almanac.
-
Constructor Details
-
Almanac
public Almanac()
-
-
Method Details
-
addResult
Adds a match result to the almanac.- Parameters:
match- the match to record
-
addResult
Adds a competition result to the almanac.- Parameters:
competition- the competition to record
-
removeResult
Removes a specific record from the almanac.- Parameters:
result- the record object (Match or Competition)
-
getMatches
-
getCompetitions
Retrieves all recorded competitions.- Returns:
- an unmodifiable set of competitions
-
getAllRecords
-