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.CloneableEditable Java class for concept LocationObject of cleaner-generated ontology.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringidAttribute for slot id.protected LocationlocationThe location of the object.protected SimplePropertyChangeSupportpcsThe 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 voidaddPropertyChangeListener(PropertyChangeListener listener)Add a PropertyChangeListener to the listener list.java.lang.Objectclone()Clone the object.booleanequals(java.lang.Object o)Test if two instances are equal.java.lang.StringgetId()Get the id of this LocationObject.LocationgetLocation()Get the location of this LocationObject.inthashCode()Get the hashcode for this object.voidremovePropertyChangeListener(PropertyChangeListener listener)Remove a PropertyChangeListener from the listener list.voidsetId(java.lang.String id)Set the id of this LocationObject.voidsetLocation(Location location)Set the location of this LocationObject.java.lang.StringtoString()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:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
equals
public boolean equals(java.lang.Object o)
Test if two instances are equal.- Overrides:
equalsin classjava.lang.Object- Returns:
- True, if equal.
-
hashCode
public int hashCode()
Get the hashcode for this object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hashcode.
-
clone
public java.lang.Object clone()
Clone the object.- Overrides:
clonein 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.
-
-