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 SummaryFields Modifier and Type Field Description protected java.lang.StringidAttribute for slot id.protected LocationlocationThe location of the object.protected SimplePropertyChangeSupportpcsThe property change support.
 - 
Constructor SummaryConstructors Constructor Description LocationObject()Create a new LocationObject.LocationObject(java.lang.String id, Location location)Create a new LocationObject.
 - 
Method SummaryAll 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- 
idprotected java.lang.String id Attribute for slot id.
 - 
locationprotected Location location The location of the object.
 - 
pcsprotected SimplePropertyChangeSupport pcs The property change support.
 
- 
 - 
Constructor Detail- 
LocationObjectpublic LocationObject() Create a new LocationObject.
 - 
LocationObjectpublic LocationObject(java.lang.String id, Location location)Create a new LocationObject.
 
- 
 - 
Method Detail- 
getIdpublic java.lang.String getId() Get the id of this LocationObject.- Returns:
- id
 
 - 
setIdpublic void setId(java.lang.String id) Set the id of this LocationObject.- Parameters:
- id- the value to be set
 
 - 
getLocationpublic Location getLocation() Get the location of this LocationObject. The location of the object.- Returns:
- location
 
 - 
setLocationpublic void setLocation(Location location) Set the location of this LocationObject. The location of the object.- Parameters:
- location- the value to be set
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this LocationObject.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if two instances are equal.- Overrides:
- equalsin class- java.lang.Object
- Returns:
- True, if equal.
 
 - 
hashCodepublic int hashCode() Get the hashcode for this object.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hashcode.
 
 - 
clonepublic java.lang.Object clone() Clone the object.- Overrides:
- clonein class- java.lang.Object
 
 - 
addPropertyChangeListenerpublic 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.
 
 - 
removePropertyChangeListenerpublic 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.
 
 
- 
 
-