Class LocationObject
java.lang.Object
jadex.quickstart.cleanerworld.environment.impl.LocationObject
- All Implemented Interfaces:
ILocationObject
,Cloneable
- Direct Known Subclasses:
Chargingstation
,Cleaner
,Pheromone
,Waste
,Wastebin
Base class for all map objects.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new LocationObject.LocationObject
(String id, Location location) Create a new LocationObject. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a PropertyChangeListener to the listener list.clone()
Clone the object.boolean
Test if two instances are equal.getId()
Get the id of this LocationObject.Get the location of this LocationObject.protected PropertyChangeSupport
Get the property change handler for firing events.int
hashCode()
Get the hashcode for this object.void
Remove a PropertyChangeListener from the listener list.void
Set the id of this LocationObject.void
setLocation
(Location location) Set the location of this LocationObject.void
update
(LocationObject obj) Update this cleaner.
-
Field Details
-
pcs
The property change support.
-
-
Constructor Details
-
LocationObject
public LocationObject()Create a new LocationObject. -
LocationObject
Create a new LocationObject.
-
-
Method Details
-
getId
Get the id of this LocationObject.- Specified by:
getId
in interfaceILocationObject
- Returns:
- id
-
setId
Set the id of this LocationObject.- Parameters:
id
- the value to be set
-
getLocation
Get the location of this LocationObject. The location of the object.- Specified by:
getLocation
in interfaceILocationObject
- Returns:
- location
-
setLocation
Set the location of this LocationObject. The location of the object.- Parameters:
location
- the value to be set
-
equals
Test if two instances are equal. -
hashCode
public int hashCode()Get the hashcode for this object. -
update
Update this cleaner. -
clone
Clone the object. -
addPropertyChangeListener
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.- Parameters:
listener
- The PropertyChangeListener to be added.
-
removePropertyChangeListener
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.- Parameters:
listener
- The PropertyChangeListener to be removed.
-
getPropertyChangeHandler
Get the property change handler for firing events.
-