|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uchicago.src.sim.network.DefaultNode
|
+--uchicago.src.sim.gis.PointAdapter
| Nested Class Summary |
| Nested classes inherited from class uchicago.src.sim.network.DefaultNode |
DefaultNode.OrderedHashMap |
| Field Summary | |
protected Hashtable |
attributes
|
protected com.vividsolutions.jts.geom.Geometry |
geo
|
protected boolean |
multi
|
| Fields inherited from class uchicago.src.sim.network.DefaultNode |
inEdges, inMap, label, outEdges, outMap |
| Constructor Summary | |
PointAdapter()
create an empty Adapter, not very useful. |
|
PointAdapter(org.geotools.feature.Feature f)
create an adapter from a Geotools feature |
|
PointAdapter(com.vividsolutions.jts.geom.Point p)
Create a new feature with no attributes. |
|
| Method Summary | |
void |
addAttribute(String key,
Object value)
Add an attribute to the Fature. |
boolean |
crosses(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
boolean |
disjoint(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
Object |
getAttribute(String key)
Get the value of the Attribute with given name. |
String[] |
getAttributeNames()
Return an array with the attribute names for this feature. |
com.vividsolutions.jts.geom.Coordinate |
getCoordinates()
|
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Gets the geometry that defines this feature. |
double |
getX()
|
double |
getY()
|
double |
getZ()
|
boolean |
intersects(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
boolean |
isMulti()
Returns true if the feature is a "multi" type. |
boolean |
overlaps(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
void |
setAttributes(Hashtable attr)
Set the attributes for the feature. |
void |
setFeature(org.geotools.feature.Feature f)
set the feature for this adapter |
void |
setGeometry(com.vividsolutions.jts.geom.Geometry geo)
Add a jts geometry to this Adapter. |
void |
setX(double x)
|
void |
setY(double y)
|
void |
setZ(double z)
|
boolean |
touches(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
boolean |
within(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
| Methods inherited from class uchicago.src.sim.network.DefaultNode |
addInEdge, addInEdges, addOutEdge, addOutEdges, clearInEdges, clearOutEdges, getEdgesFrom, getEdgesTo, getFromNodes, getId, getInDegree, getInEdges, getInNodes, getNode, getNodeLabel, getNumInEdges, getNumOutEdges, getOutDegree, getOutEdges, getOutNodes, getRandomFromNode, getRandomNodeIn, getRandomNodeOut, getRandomToNode, getToNodes, hasEdgeFrom, hasEdgeTo, hasEdgeToOrFrom, makeRandomInEdge, makeRandomOutEdge, removeEdgesFrom, removeEdgesTo, removeInEdge, removeOutEdge, setNodeLabel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uchicago.src.sim.network.Node |
addInEdge, addOutEdge, clearInEdges, clearOutEdges, getId, getInEdges, getNodeLabel, getOutEdges, hasEdgeFrom, hasEdgeTo, removeInEdge, removeOutEdge, setNodeLabel |
| Field Detail |
protected Hashtable attributes
protected com.vividsolutions.jts.geom.Geometry geo
protected boolean multi
| Constructor Detail |
public PointAdapter()
public PointAdapter(com.vividsolutions.jts.geom.Point p)
p -
public PointAdapter(org.geotools.feature.Feature f)
throws Exception
f -
Exception| Method Detail |
public void setFeature(org.geotools.feature.Feature f)
throws Exception
setFeature in interface RepastGisFeaturef -
Exception
public void setGeometry(com.vividsolutions.jts.geom.Geometry geo)
throws IllegalArgumentException
setGeometry in interface RepastGisFeaturegeo -
IllegalArgumentExceptionpublic void setAttributes(Hashtable attr)
RepastGisFeature
setAttributes in interface RepastGisFeatureattr - public String[] getAttributeNames()
getAttributeNames in interface RepastGisFeaturepublic com.vividsolutions.jts.geom.Geometry getGeometry()
RepastGisFeature
getGeometry in interface RepastGisFeaturepublic double getX()
getX in interface SpatialNodepublic double getY()
getY in interface SpatialNodepublic double getZ()
getZ in interface SpatialNodepublic void setX(double x)
setX in interface SpatialNodepublic void setY(double y)
setY in interface SpatialNodepublic void setZ(double z)
setZ in interface SpatialNodepublic com.vividsolutions.jts.geom.Coordinate getCoordinates()
public void addAttribute(String key,
Object value)
RepastGisFeature
addAttribute in interface RepastGisFeaturekey - value - public Object getAttribute(String key)
RepastGisFeature
getAttribute in interface RepastGisFeaturekey -
public boolean isMulti()
isMulti in interface RepastGisFeaturepublic boolean intersects(RepastGisFeature g)
intersects in interface RepastGisFeatureg -
public boolean touches(RepastGisFeature g)
touches in interface RepastGisFeatureg -
public boolean within(RepastGisFeature g)
within in interface RepastGisFeatureg -
public boolean crosses(RepastGisFeature g)
crosses in interface RepastGisFeatureg -
public boolean overlaps(RepastGisFeature g)
overlaps in interface RepastGisFeatureg -
public boolean disjoint(RepastGisFeature g)
disjoint in interface RepastGisFeatureg -
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||