|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.model.space.CollectionSpace
org.ascape.model.space.Discrete
org.ascape.model.space.Graph
org.ascape.model.space.SubGraph
public class SubGraph
This is an unsual version of the SubSpace - it's a Graph, where the members also exist in a Continuous Space. Written for use in the NAS model. At some point, this should probably be made more general.
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.Discrete |
---|
performanceWarning |
Fields inherited from class org.ascape.model.space.CollectionSpace |
---|
collection, ESTIMATED_MAXIMUM_SIZE, extent, geometry |
Constructor Summary | |
---|---|
SubGraph()
Constructs an arbitrary directed graph. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object o,
boolean isParent)
Adds the supplied object (assumed to be an agent) to this graph. |
Space |
getSuperSpace()
Gets the super space. |
void |
setSuperSpace(Space superSpace)
Sets the super space. |
Methods inherited from class org.ascape.model.space.Graph |
---|
addNeighbor, addNeighbor, addNeighborSafe, calculateNeighbors, clear, clearNeighbors, findCellAway, findCellToward, findNearest, findNeighbors, getAdjacencyMap, getNeighborsFor, initialize, isNeighbor, neighborIterator, remove, removeNeighbor, replaceNeighbor, setAdjacencyMap, setNeighborsFor, withinIterator |
Methods inherited from class org.ascape.model.space.CollectionSpace |
---|
add, addAll, calculateDistance, 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, findWithin, get, getContext, getExtent, getGeometry, getRandom, hasWithin, isDeleteSweepNeeded, isEmpty, isMutable, isPeriodic, iterator, iteratorCount, iteratorToList, moveAway, moveToward, newLocation, newLocation, populate, randomInRange, randomInRange, randomIs, randomizeOrder, randomToLimit, removeAll, retainAll, safeIterator, safeIterator, safeIterators, safeRandomIterator, set, setContext, setExtent, setExtent, setGeometry, setPeriodic, setRandom, setSize, size, toArray, toArray, toList |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public SubGraph()
Method Detail |
---|
public boolean add(java.lang.Object o, boolean isParent)
add
in interface Space
add
in class Graph
o
- the agent to addisParent
- the is parent
public Space getSuperSpace()
SubSpace
getSuperSpace
in interface SubSpace
public void setSuperSpace(Space superSpace)
SubSpace
setSuperSpace
in interface SubSpace
superSpace
- the new super space
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |