Class LocationObject
- java.lang.Object
- 
- jadex.bdi.examples.marsworld_classic.LocationObject
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class LocationObject extends java.lang.Object implements java.io.SerializableAn object with a location.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description LocationObject()Create a new location object.LocationObject(java.lang.String id, Location location)Create a new location object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.voidsetId(java.lang.String id)Set the id of this LocationObject.voidsetLocation(Location location)Set the location of this LocationObject.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
idprotected java.lang.String id Attribute for slot id.
 - 
locationprotected Location location The location of the object.
 
- 
 - 
Constructor Detail- 
LocationObjectpublic LocationObject() Create a new location object. Empty bean contructor.
 - 
LocationObjectpublic LocationObject(java.lang.String id, Location location)Create a new location object.- Parameters:
- id- The id.
- location- The location.
 
 
- 
 - 
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
 
 - 
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.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-