public abstract class LocationObject
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id
Attribute for slot id.
|
protected Location |
location
The location of the object.
|
protected jadex.commons.SimplePropertyChangeSupport |
pcs
The property change support.
|
Constructor and Description |
---|
LocationObject()
Create a new LocationObject.
|
LocationObject(java.lang.String id,
Location location)
Create a new LocationObject.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(jadex.commons.beans.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(jadex.commons.beans.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.
|
protected java.lang.String id
protected Location location
protected jadex.commons.SimplePropertyChangeSupport pcs
public LocationObject()
public LocationObject(java.lang.String id, Location location)
public java.lang.String getId()
public void setId(java.lang.String id)
id
- the value to be setpublic Location getLocation()
public void setLocation(Location location)
location
- the value to be setpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public void addPropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.