|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.cleanerworld.multi.LocationData
jadex.examples.cleanerworld.multi.Location
public class Location
Editable Java class for concept Location of cleaner-generated ontology.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface nuggets.INugget |
---|
nuggets.INugget.Helper |
Field Summary | |
---|---|
static double |
DEFAULT_TOLERANCE
Distance, when two locations are considered near. |
Constructor Summary | |
---|---|
Location()
Create a new Location. |
|
Location(double x,
double y)
Create a new Location. |
Method Summary | |
---|---|
Object |
clone()
Clone the object. |
boolean |
equals(Object o)
Test if two instances are equal. |
double |
getDistance(Location other)
Caculate is a location is near this location. |
boolean |
isNear(Location other)
Check, if two locations are near to each other using the default tolerance. |
boolean |
isNear(Location other,
double tolerance)
Check, if two locations are near to each other. |
Methods inherited from class jadex.examples.cleanerworld.multi.LocationData |
---|
_persist, _set, getX, getY, setX, setY, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_TOLERANCE
Constructor Detail |
---|
public Location()
public Location(double x, double y)
Method Detail |
---|
public double getDistance(Location other)
public boolean isNear(Location other)
public boolean isNear(Location other, double tolerance)
tolerance
- The distance, when two locations are considered near.
public boolean equals(Object o)
equals
in class Object
public Object clone()
clone
in class Object
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.