Class ComplexClock
java.lang.Object
org.episteme.social.history.clock.ComplexClock
A composite clock container that aggregates multiple specialized clock functionalities.
Groups a standard clock, chronometer, alarm, and countdown into a single management unit.
* @version 1.1
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionComplexClock(BasicClock clock, ChronometerClock chronometer, AlarmClock alarm, CountdownClock countdown) Creates a new ComplexClock with initial clock components. -
Method Summary
Modifier and TypeMethodDescriptiongetAlarm()Returns the alarm component.Returns the chronometer component.getClock()Returns the primary basic clock.Returns the countdown component.voidsetAlarm(AlarmClock alarm) Sets the alarm component.voidsetChronometer(ChronometerClock chronometer) Sets the chronometer component.voidsetClock(BasicClock clock) Sets the primary basic clock.voidsetCountdown(CountdownClock countdown) Sets the countdown component.
-
Constructor Details
-
ComplexClock
public ComplexClock(BasicClock clock, ChronometerClock chronometer, AlarmClock alarm, CountdownClock countdown) Creates a new ComplexClock with initial clock components.- Parameters:
clock- the primary clockchronometer- the chronometeralarm- the alarm clockcountdown- the countdown clock- Throws:
NullPointerException- if any component is null
-
-
Method Details
-
getChronometer
-
setChronometer
Sets the chronometer component.- Parameters:
chronometer- the chronometer
-
getAlarm
-
setAlarm
Sets the alarm component.- Parameters:
alarm- the alarm clock
-
getCountdown
-
setCountdown
Sets the countdown component.- Parameters:
countdown- the countdown clock
-
getClock
-
setClock
Sets the primary basic clock.- Parameters:
clock- the basic clock
-