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 TypeMethodDescriptionvoidAdd a PropertyChangeListener to the listener list.clone()Clone the object.booleanTest if two instances are equal.getId()Get the id of this LocationObject.Get the location of this LocationObject.protected PropertyChangeSupportGet the property change handler for firing events.inthashCode()Get the hashcode for this object.voidRemove a PropertyChangeListener from the listener list.voidSet the id of this LocationObject.voidsetLocation(Location location) Set the location of this LocationObject.voidupdate(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:
getIdin 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:
getLocationin 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.
-