Class LocationObject

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    Chargingstation, Cleaner, MapPoint, Vision, Waste, Wastebin

    public abstract class LocationObject
    extends java.lang.Object
    implements java.lang.Cloneable
    Editable Java class for concept LocationObject of cleaner-generated ontology.
    • Field Detail

      • id

        protected java.lang.String id
        Attribute for slot id.
      • location

        protected Location location
        The location of the object.
    • Constructor Detail

      • LocationObject

        public LocationObject()
        Create a new LocationObject.
      • LocationObject

        public LocationObject​(java.lang.String id,
                              Location location)
        Create a new LocationObject.
    • Method Detail

      • getId

        public java.lang.String getId()
        Get the id of this LocationObject.
        Returns:
        id
      • setId

        public void setId​(java.lang.String id)
        Set the id of this LocationObject.
        Parameters:
        id - the value to be set
      • getLocation

        public Location getLocation()
        Get the location of this LocationObject. The location of the object.
        Returns:
        location
      • setLocation

        public void setLocation​(Location location)
        Set the location of this LocationObject. The location of the object.
        Parameters:
        location - the value to be set
      • toString

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

        public boolean equals​(java.lang.Object o)
        Test if two instances are equal.
        Overrides:
        equals in class java.lang.Object
        Returns:
        True, if equal.
      • hashCode

        public int hashCode()
        Get the hashcode for this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hashcode.
      • clone

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

        public void addPropertyChangeListener​(PropertyChangeListener listener)
        Add a PropertyChangeListener to the listener list. The listener is registered for all properties.
        Parameters:
        listener - The PropertyChangeListener to be added.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener listener)
        Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
        Parameters:
        listener - The PropertyChangeListener to be removed.