Class ListSpace

  extended by
      extended by
          extended by
              extended by
                  extended by
All Implemented Interfaces:, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, CoordinateMutable, Mutable, Space, RandomFunctions
Direct Known Subclasses:

public class ListSpace
extends ListBase
implements Mutable, CoordinateMutable

A one-dimensional, fixed-size, collection of agents providing services described for space. This os just a ListBase that is marked as Mutable; that is that you can add and remove agents from at runtime.

Miles Parker
See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class
CollectionSpace.ClosestDataPoint, CollectionSpace.ConditionalIterator, CollectionSpace.CSIterator, CollectionSpace.CSMutableIterator, CollectionSpace.ListMutableRandomIterator, CollectionSpace.ListRandomIterator, CollectionSpace.MutableSubIterator, CollectionSpace.SubIterator
Field Summary
Fields inherited from class
Fields inherited from class
Fields inherited from class
collection, ESTIMATED_MAXIMUM_SIZE, extent, geometry
Constructor Summary
          Constructs a (one-dimensional) mutable list.
ListSpace(CoordinateDiscrete extent)
          Constructs a (one-dimensional) mutable list.
Method Summary
Methods inherited from class
add, add, add, add, addAll, calculateDistance, coordinateSweep, findCellAway, findCellToward, findFirstMatchInRank, findNearestMatchRank, findNearestMatchRank, findRandomMatchInRank, findWithinImpl, get, get, indexOf, isCoordinateSweepNeeded, lastIndexOf, listIterator, listIterator, populate, remove, remove, remove, set, set, setGeometry, subList
Methods inherited from class
findNearest, findWithin, replace, swap
Methods inherited from class
bfsWithinIterator, calculateDistance, calculateNeighbors, findAvailable, findAvailable, findCellAwayBFS, findCellTowardBFS, findNearestAvailable, findNearestBFS, findNeighbors, findOccupants, findOccupants, findRandomAvailable, findRandomAvailable, findRandomAvailable, findRandomAvailableNeighbor, findRandomNeighbor, findRandomNeighbor, findRandomUnoccupiedCell, findRandomUnoccupiedCell, findWithinDefault, getCells, getCellsNearDefault, getDistance, getMaximumRank, getSize
Methods inherited from class
add, addAll, calculateDistance, clear, clone, conditionalIterator, conditionalIterator, construct, contains, containsAll, countWithin, createOrder, createSpatialConditional, deleteSweep, filter, find, findMaximum, findMaximum, findMaximumWithin, findMinimum, findMinimum, findMinimumWithin, findNearest, findRandom, findRandom, findRandom, findRandom, findRandomCoordinate, findRandomWithin, get, getContext, getExtent, getGeometry, getRandom, hasWithin, initialize, isDeleteSweepNeeded, isEmpty, isMutable, isPeriodic, iterator, iteratorCount, iteratorToList, moveAway, moveToward, newLocation, newLocation, randomInRange, randomInRange, randomIs, randomizeOrder, randomToLimit, removeAll, retainAll, safeIterator, safeIterator, safeIterators, safeRandomIterator, set, setContext, setExtent, setExtent, setPeriodic, setRandom, setSize, 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
coordinateSweep, isCoordinateSweepNeeded
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray

Constructor Detail


public ListSpace()
Constructs a (one-dimensional) mutable list.


public ListSpace(CoordinateDiscrete extent)
Constructs a (one-dimensional) mutable list.

extent - a coordinate describing the size of this space

Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.