|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Space
The Interface Space.
Method Summary | |
---|---|
boolean |
add(java.lang.Object o,
boolean isParent)
Add. |
double |
calculateDistance(Coordinate origin,
Coordinate target)
Calculate distance. |
double |
calculateDistance(Location origin,
Location target)
Calculate distance. |
java.lang.Object |
clone()
Clone. |
java.util.Iterator |
conditionalIterator(Conditional condition)
Conditional iterator. |
void |
construct()
Construct. |
int |
countWithin(Coordinate origin,
Conditional condition,
boolean includeSelf,
double distance)
Count within. |
java.util.List |
find(Conditional condition)
Find. |
Location |
findMaximum(DataPoint point)
Find maximum. |
Location |
findMaximumWithin(Coordinate coordinate,
DataPoint dataPoint,
Conditional condition,
boolean includeSelf,
double distance)
Find maximum within. |
Location |
findMinimum(DataPoint point)
Find minimum. |
Location |
findMinimumWithin(Coordinate coordinate,
DataPoint dataPoint,
Conditional condition,
boolean includeSelf,
double distance)
Find minimum within. |
Location |
findNearest(Coordinate origin,
Conditional condition,
boolean includeOrigin,
double distance)
Find nearest. |
Location |
findNearest(Location origin,
Conditional condition,
boolean includeOrigin,
double distance)
|
Location |
findRandom()
Find random. |
Location |
findRandom(Conditional condition)
Find random. |
Location |
findRandom(Location excludeLocation)
Find random. |
Location |
findRandom(Location exclude,
Conditional condition)
|
Coordinate |
findRandomCoordinate()
Find random coordinate. |
Location |
findRandomWithin(Location origin,
Conditional condition,
boolean includeSelf,
double distance)
|
java.util.List |
findWithin(Coordinate origin,
Conditional condition,
boolean includeSelf,
double distance)
Find within. |
Location |
get(Coordinate coordinate)
Get. |
SpaceContext |
getContext()
Gets the context. |
Coordinate |
getExtent()
Gets the extent. |
Geometry |
getGeometry()
Gets the geometry. |
int |
getSize()
Gets the size. |
boolean |
hasWithin(Coordinate origin,
Conditional condition,
boolean includeSelf,
double distance)
Checks for within. |
void |
initialize()
Initialize. |
boolean |
isMutable()
Checks if is mutable. |
boolean |
isPeriodic()
Checks if is periodic. |
void |
moveAway(Location origin,
Coordinate target,
double distance)
Move away. |
void |
moveToward(Location origin,
Coordinate target,
double distance)
Move toward. |
Location |
newLocation(boolean randomLocation)
New location. |
void |
populate()
Populate. |
ResetableIterator |
safeIterator()
Safe iterator. |
ResetableIterator |
safeIterator(int start,
int limit)
Safe iterator. |
ResetableIterator[] |
safeIterators(int count)
Safe iterators. |
RandomIterator |
safeRandomIterator()
Safe random iterator. |
void |
set(Coordinate coordinate,
Location agent)
Set. |
void |
setContext(SpaceContext space)
Sets the context. |
void |
setExtent(Coordinate extent)
Sets the extent. |
void |
setPeriodic(boolean periodic)
Sets the periodic. |
void |
setSize(int size)
Sets the size. |
java.util.Iterator |
withinIterator(Coordinate origin,
Conditional condition,
boolean includeSelf,
double distance)
Within iterator. |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface org.ascape.util.RandomFunctions |
---|
getRandom, randomInRange, randomInRange, randomIs, randomToLimit, setRandom |
Method Detail |
---|
void moveAway(Location origin, Coordinate target, double distance)
origin
- the origintarget
- the targetdistance
- the distancevoid moveToward(Location origin, Coordinate target, double distance)
origin
- the origintarget
- the targetdistance
- the distancedouble calculateDistance(Coordinate origin, Coordinate target)
origin
- the origintarget
- the target
double calculateDistance(Location origin, Location target)
origin
- the origintarget
- the target
java.util.List find(Conditional condition)
condition
- the condition
Location findNearest(Coordinate origin, Conditional condition, boolean includeOrigin, double distance)
origin
- the origincondition
- the conditionincludeOrigin
- the include origindistance
- the distance
Location findNearest(Location origin, Conditional condition, boolean includeOrigin, double distance)
java.util.List findWithin(Coordinate origin, Conditional condition, boolean includeSelf, double distance)
origin
- the origincondition
- the conditionincludeSelf
- the include selfdistance
- the distance
int countWithin(Coordinate origin, Conditional condition, boolean includeSelf, double distance)
origin
- the origincondition
- the conditionincludeSelf
- the include selfdistance
- the distance
boolean hasWithin(Coordinate origin, Conditional condition, boolean includeSelf, double distance)
origin
- the origincondition
- the conditionincludeSelf
- the include selfdistance
- the distance
Location findMinimumWithin(Coordinate coordinate, DataPoint dataPoint, Conditional condition, boolean includeSelf, double distance)
coordinate
- the coordinatedataPoint
- the data pointcondition
- the conditionincludeSelf
- the include selfdistance
- the distance
Location findMaximumWithin(Coordinate coordinate, DataPoint dataPoint, Conditional condition, boolean includeSelf, double distance)
coordinate
- the coordinatedataPoint
- the data pointcondition
- the conditionincludeSelf
- the include selfdistance
- the distance
java.util.Iterator withinIterator(Coordinate origin, Conditional condition, boolean includeSelf, double distance)
origin
- the origincondition
- the conditionincludeSelf
- the include selfdistance
- the distance
Coordinate findRandomCoordinate()
Location findRandom()
Location findRandom(Location excludeLocation)
excludeLocation
- the exclude location
Location findRandom(Conditional condition)
condition
- the condition
Location findRandom(Location exclude, Conditional condition)
Location findRandomWithin(Location origin, Conditional condition, boolean includeSelf, double distance)
Location findMinimum(DataPoint point)
point
- the point
Location findMaximum(DataPoint point)
point
- the point
Location get(Coordinate coordinate)
coordinate
- the coordinate
void set(Coordinate coordinate, Location agent)
coordinate
- the coordinateagent
- the agentLocation newLocation(boolean randomLocation)
randomLocation
- the random location
void setExtent(Coordinate extent)
extent
- the new extentCoordinate getExtent()
int getSize()
void setSize(int size)
size
- the new sizevoid construct()
void populate()
void initialize()
SpaceContext getContext()
void setContext(SpaceContext space)
space
- the new contextGeometry getGeometry()
boolean isPeriodic()
boolean isMutable()
void setPeriodic(boolean periodic)
periodic
- the new periodicboolean add(java.lang.Object o, boolean isParent)
o
- the oisParent
- the is parent
java.lang.Object clone()
ResetableIterator safeIterator(int start, int limit)
start
- the startlimit
- the limit
ResetableIterator[] safeIterators(int count)
count
- the count
ResetableIterator safeIterator()
RandomIterator safeRandomIterator()
java.util.Iterator conditionalIterator(Conditional condition)
condition
- the condition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |