public class Indicator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
BeepIndicator |
beeper |
LEDIndicator |
led |
VibratorIndicator |
vibrator |
| Constructor and Description |
|---|
Indicator(LEDIndicator led,
VibratorIndicator vibrator,
BeepIndicator beeper)
Constructs a new Indicator object with the specified LED, vibrator, and beeper indicators.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
public LEDIndicator led
public VibratorIndicator vibrator
public BeepIndicator beeper
public Indicator(LEDIndicator led, VibratorIndicator vibrator, BeepIndicator beeper)
led - The LEDIndicator object representing the state of the LED indicator.vibrator - The VibratorIndicator object representing the state of the vibrator indicator.beeper - The BeepIndicator object representing the state of the beeper indicator.