sem2/oop/oop_exercises/src/main/java/ch/hslu/oop/sw04/ISwitchable.java
package ch.hslu.oop.sw04;

/**
 * Interface for devices that can be switched on and off.
 */
public interface ISwitchable {
    /**
     * Switches the device on.
     */
    void switchOn();

    /**
     * Switches the device off.
     */
    void switchOff();

    /**
     * Returns true if the device is switched on.
     * @return true if the device is switched on.
     */
    boolean isSwitchedOn();

    /**
     * Returns true if the device is switched off.
     * @return true if the device is switched off.
     */
    boolean isSwitchedOff();
}
