|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ascape.model.space.CollectionSpace org.ascape.model.space.SubCollection org.ascape.model.space.SubContinuous
public abstract class SubContinuous
A space containing a sub-population of agents that exist within some continuous space.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.ascape.model.space.CollectionSpace |
---|
CollectionSpace.ClosestDataPoint, CollectionSpace.ConditionalIterator, CollectionSpace.CSIterator, CollectionSpace.CSMutableIterator, CollectionSpace.ListMutableRandomIterator, CollectionSpace.ListRandomIterator, CollectionSpace.MutableSubIterator, CollectionSpace.SubIterator |
Field Summary |
---|
Fields inherited from class org.ascape.model.space.CollectionSpace |
---|
collection, ESTIMATED_MAXIMUM_SIZE, extent, geometry |
Constructor Summary | |
---|---|
SubContinuous()
Constructs a sub-continuous space. |
|
SubContinuous(CoordinateDiscrete extent)
Constructs a sub-collection. |
Method Summary | |
---|---|
void |
coordinateSweep()
A no-op; overrides the base collection's behavior so that agents do not have their coorinates changed. |
double |
distancePerIteration(double velocity)
Distance per iteration. |
Coordinate |
findRandomCoordinate()
Returns a coordinate randomly selected from the collection's space. |
Coordinate |
getExtent()
Returns the extent of this subscape, always the same as the super space. |
int |
getSize()
Return the number of agents in the space. |
void |
normalize(Coordinate coor)
Converts the coordiante into the boundaries of the space. |
void |
setSize(int size)
Sets the number of agents in the space. |
void |
setSuperSpace(Space superSpace)
Sets the super space for this sub collection, that is, the collection defined to contain a superset of this space's agents. |
Methods inherited from class org.ascape.model.space.SubCollection |
---|
add, addAll, calculateDistance, clear, getSuperSpace, moveAway, moveToward, populate, remove, removeAll, retainAll |
Methods inherited from class org.ascape.model.space.CollectionSpace |
---|
add, calculateDistance, clone, conditionalIterator, conditionalIterator, construct, contains, containsAll, countWithin, createOrder, createSpatialConditional, deleteSweep, filter, find, findMaximum, findMaximum, findMaximumWithin, findMinimum, findMinimum, findMinimumWithin, findNearest, findNearest, findRandom, findRandom, findRandom, findRandom, findRandomWithin, findWithin, get, getContext, getGeometry, getRandom, hasWithin, initialize, isDeleteSweepNeeded, isEmpty, isMutable, isPeriodic, iterator, iteratorCount, iteratorToList, newLocation, newLocation, randomInRange, randomInRange, randomIs, randomizeOrder, randomToLimit, safeIterator, safeIterator, safeIterators, safeRandomIterator, set, setContext, setExtent, setExtent, setGeometry, setPeriodic, setRandom, size, toArray, toArray, toList, withinIterator |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ascape.model.space.SubSpace |
---|
getSuperSpace |
Methods inherited from interface org.ascape.model.space.Continuous |
---|
moveToward |
Methods inherited from interface org.ascape.model.space.Mutable |
---|
clear, deleteSweep, isDeleteSweepNeeded, newLocation, newLocation, remove |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public SubContinuous()
public SubContinuous(CoordinateDiscrete extent)
extent
- a coordinate describing the size of this spaceMethod Detail |
---|
public void coordinateSweep()
public void setSuperSpace(Space superSpace)
setSuperSpace
in interface SubSpace
setSuperSpace
in class SubCollection
superSpace
- the collection to assign as super setpublic double distancePerIteration(double velocity)
Continuous
distancePerIteration
in interface Continuous
velocity
- the velocity
public Coordinate findRandomCoordinate()
CollectionSpace
findRandomCoordinate
in interface Continuous
findRandomCoordinate
in interface Space
findRandomCoordinate
in class CollectionSpace
public void normalize(Coordinate coor)
Continuous
normalize
in interface Continuous
coor
- the Coordinate to normalizepublic void setSize(int size)
setSize
in interface Space
setSize
in class CollectionSpace
size
- the sizepublic int getSize()
getSize
in interface Space
getSize
in class CollectionSpace
public Coordinate getExtent()
getExtent
in interface Space
getExtent
in class CollectionSpace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |