Class LocationObject
- java.lang.Object
-
- jadex.bdi.examples.cleanerworld_classic.LocationObject
-
- All Implemented Interfaces:
java.lang.Cloneable
public abstract class LocationObject extends java.lang.Object implements java.lang.Cloneable
Editable Java class for concept LocationObject of cleaner-generated ontology.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
id
Attribute for slot id.protected Location
location
The location of the object.protected SimplePropertyChangeSupport
pcs
The property change support.
-
Constructor Summary
Constructors Constructor Description LocationObject()
Create a new LocationObject.LocationObject(java.lang.String id, Location location)
Create a new LocationObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.java.lang.Object
clone()
Clone the object.boolean
equals(java.lang.Object o)
Test if two instances are equal.java.lang.String
getId()
Get the id of this LocationObject.Location
getLocation()
Get the location of this LocationObject.int
hashCode()
Get the hashcode for this object.void
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.void
setId(java.lang.String id)
Set the id of this LocationObject.void
setLocation(Location location)
Set the location of this LocationObject.java.lang.String
toString()
Get a string representation of this LocationObject.
-
-
-
Field Detail
-
id
protected java.lang.String id
Attribute for slot id.
-
location
protected Location location
The location of the object.
-
pcs
protected SimplePropertyChangeSupport pcs
The property change support.
-
-
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 classjava.lang.Object
- Returns:
- The string representation.
-
equals
public boolean equals(java.lang.Object o)
Test if two instances are equal.- Overrides:
equals
in classjava.lang.Object
- Returns:
- True, if equal.
-
hashCode
public int hashCode()
Get the hashcode for this object.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hashcode.
-
clone
public java.lang.Object clone()
Clone the object.- Overrides:
clone
in classjava.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.
-
-