|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.more.rs.geo.util.MGeographyWrapper<AgentType>
AgentType
- The type of objects contained in the wrapped geographypublic class MGeographyWrapper<AgentType>
MoRe
Field Summary | |
---|---|
protected MoreWithinQueryFactory<AgentType> |
queryFac
|
Constructor Summary | |
---|---|
MGeographyWrapper(repast.simphony.space.gis.Geography<AgentType> geography)
|
Method Summary | ||
---|---|---|
|
getContainingAreaContext(AgentType agent,
Class<AreaType> areaClass)
|
|
|
getMaxNumAgents(Class<ReturnType> returnClass)
|
|
|
getMaxNumAgents(com.vividsolutions.jts.geom.Geometry area,
Class<ReturnType> returnClass)
|
|
|
getSurroundingAgents(AgentType focus,
double radius,
Class<? extends ReturnType> returnClass)
Find agents who are next to the focal agent within the given maximum radius. |
|
|
getSurroundingNAgents(AgentType focus,
int numAgents,
double radius,
Class<ReturnType> returnClass)
Find |
|
|
getSurroundingNAgents(AgentType focus,
int numAgents,
com.vividsolutions.jts.geom.Geometry area,
double radius,
Class<ReturnType> returnClass)
Find |
|
double |
getTotalArea(Collection<? extends Object> areaContexts)
Sums up the area of every given area context within the geography associated with this MGeographyWrapper . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MoreWithinQueryFactory<AgentType> queryFac
Constructor Detail |
---|
public MGeographyWrapper(repast.simphony.space.gis.Geography<AgentType> geography)
geography
- Method Detail |
---|
public <ReturnType> List<ReturnType> getSurroundingNAgents(AgentType focus, int numAgents, com.vividsolutions.jts.geom.Geometry area, double radius, Class<ReturnType> returnClass)
radius
the radius is
expanded by radius
until enough agents are found or the
number of total objects within the geography is reached.
Checks if the the number of all agents within the given area is
larger or equal to the requested number.
focus
- numAgents
- area
- radius
- radius to search agents within in metersreturnClass
-
public <ReturnType> List<ReturnType> getSurroundingNAgents(AgentType focus, int numAgents, double radius, Class<ReturnType> returnClass)
radius
the radius is
expanded by radius
until enough agents are found or the
number of total objects within the geography is reached.
focus
- numAgents
- radius
- radius to search agents within in metersreturnClass
-
public <ReturnType> List<ReturnType> getSurroundingAgents(AgentType focus, double radius, Class<? extends ReturnType> returnClass)
AreaContext
. Checks for return
class.
ReturnType
- focus
- radius
- radius to search agents within in metersreturnClass
-
public <ReturnType> int getMaxNumAgents(com.vividsolutions.jts.geom.Geometry area, Class<ReturnType> returnClass)
area
- returnClass
-
public <ReturnType> int getMaxNumAgents(Class<ReturnType> returnClass)
returnClass
-
public <AreaType> AreaType getContainingAreaContext(AgentType agent, Class<AreaType> areaClass)
geography
- agent
-
public double getTotalArea(Collection<? extends Object> areaContexts)
MGeographyWrapper
.
areaContexts
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |