Interface IEnvironment

  • All Known Implementing Classes:
    Environment

    public interface IEnvironment
    The possible actions that can be performed in the environment.
    • Method Detail

      • getVision

        Vision getVision​(Cleaner cleaner)
        Get the current vision.
        Parameters:
        cleaner - The cleaner.
        Returns:
        The current vision.
      • pickUpWaste

        boolean pickUpWaste​(Waste waste)
        Try to pick up some piece of waste.
        Parameters:
        waste - The waste.
        Returns:
        True if the waste could be picked up.
      • dropWasteInWastebin

        boolean dropWasteInWastebin​(Waste waste,
                                    Wastebin wastebin)
        Drop a piece of waste.
        Parameters:
        waste - The piece of waste.
        wastebin - The waste bin.