Interface SwitchableArtifact

All Known Implementing Classes:
Cooler, Heater

public interface SwitchableArtifact
Interface that models a switchable artifact, that is an artifacts that offers method to turn it on and off.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Turn the artifact off.
    void
    Turn the artifact on.
  • Method Details

    • turnOn

      void turnOn()
      Turn the artifact on.
    • turnOff

      void turnOff()
      Turn the artifact off.