Class Vision

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Vision
    extends LocationObject
    Editable Java class for concept Vision of cleaner-generated ontology.
    • Field Detail

      • cleaners

        protected java.util.List cleaners
        Attribute for slot cleaners.
      • wastebins

        protected java.util.List wastebins
        Attribute for slot wastebins.
      • wastes

        protected java.util.List wastes
        Attribute for slot wastes.
      • stations

        protected java.util.List stations
        Attribute for slot stations.
      • daytime

        protected boolean daytime
        Attribute for slot daytime.
    • Constructor Detail

      • Vision

        public Vision()
        Create a new Vision.
      • Vision

        public Vision​(java.util.List wastes,
                      java.util.List wastebins,
                      java.util.List stations,
                      java.util.List cleaners,
                      boolean daytime)
        Create a new vision.
    • Method Detail

      • getCleaners

        public Cleaner[] getCleaners()
        Get the cleaners of this Vision.
        Returns:
        cleaners
      • setCleaners

        public void setCleaners​(Cleaner[] cleaners)
        Set the cleaners of this Vision.
        Parameters:
        cleaners - the value to be set
      • getCleaner

        public Cleaner getCleaner​(int idx)
        Get an cleaners of this Vision.
        Parameters:
        idx - The index.
        Returns:
        cleaners
      • setCleaner

        public void setCleaner​(int idx,
                               Cleaner cleaner)
        Set a cleaner to this Vision.
        Parameters:
        idx - The index.
        cleaner - a value to be added
      • addCleaner

        public void addCleaner​(Cleaner cleaner)
        Add a cleaner to this Vision.
        Parameters:
        cleaner - a value to be removed
      • removeCleaner

        public boolean removeCleaner​(Cleaner cleaner)
        Remove a cleaner from this Vision.
        Parameters:
        cleaner - a value to be removed
        Returns:
        True when the cleaners have changed.
      • getWastebins

        public Wastebin[] getWastebins()
        Get the wastebins of this Vision.
        Returns:
        wastebins
      • setWastebins

        public void setWastebins​(Wastebin[] wastebins)
        Set the wastebins of this Vision.
        Parameters:
        wastebins - the value to be set
      • getWastebin

        public Wastebin getWastebin​(int idx)
        Get an wastebins of this Vision.
        Parameters:
        idx - The index.
        Returns:
        wastebins
      • setWastebin

        public void setWastebin​(int idx,
                                Wastebin wastebin)
        Set a wastebin to this Vision.
        Parameters:
        idx - The index.
        wastebin - a value to be added
      • addWastebin

        public void addWastebin​(Wastebin wastebin)
        Add a wastebin to this Vision.
        Parameters:
        wastebin - a value to be removed
      • removeWastebin

        public boolean removeWastebin​(Wastebin wastebin)
        Remove a wastebin from this Vision.
        Parameters:
        wastebin - a value to be removed
        Returns:
        True when the wastebins have changed.
      • getWastes

        public Waste[] getWastes()
        Get the wastes of this Vision.
        Returns:
        wastes
      • setWastes

        public void setWastes​(Waste[] wastes)
        Set the wastes of this Vision.
        Parameters:
        wastes - the value to be set
      • getWaste

        public Waste getWaste​(int idx)
        Get an wastes of this Vision.
        Parameters:
        idx - The index.
        Returns:
        wastes
      • setWaste

        public void setWaste​(int idx,
                             Waste waste)
        Set a waste to this Vision.
        Parameters:
        idx - The index.
        waste - a value to be added
      • addWaste

        public void addWaste​(Waste waste)
        Add a waste to this Vision.
        Parameters:
        waste - a value to be removed
      • removeWaste

        public boolean removeWaste​(Waste waste)
        Remove a waste from this Vision.
        Parameters:
        waste - a value to be removed
        Returns:
        True when the wastes have changed.
      • getStations

        public Chargingstation[] getStations()
        Get the stations of this Vision.
        Returns:
        stations
      • setStations

        public void setStations​(Chargingstation[] stations)
        Set the stations of this Vision.
        Parameters:
        stations - the value to be set
      • getStation

        public Chargingstation getStation​(int idx)
        Get an stations of this Vision.
        Parameters:
        idx - The index.
        Returns:
        stations
      • setStation

        public void setStation​(int idx,
                               Chargingstation station)
        Set a station to this Vision.
        Parameters:
        idx - The index.
        station - a value to be added
      • addStation

        public void addStation​(Chargingstation station)
        Add a station to this Vision.
        Parameters:
        station - a value to be removed
      • removeStation

        public boolean removeStation​(Chargingstation station)
        Remove a station from this Vision.
        Parameters:
        station - a value to be removed
        Returns:
        True when the stations have changed.
      • isDaytime

        public boolean isDaytime()
        Get the daytime of this Vision.
        Returns:
        daytime
      • setDaytime

        public void setDaytime​(boolean daytime)
        Set the daytime of this Vision.
        Parameters:
        daytime - the value to be set
      • toString

        public java.lang.String toString()
        Get a string representation of this Vision.
        Overrides:
        toString in class LocationObject
        Returns:
        The string representation.
      • clone

        public java.lang.Object clone()
        Clone the object.
        Overrides:
        clone in class LocationObject