RePast
v. 2.0

uchicago.src.sim.gis
Class LinePoint

java.lang.Object
  |
  +--uchicago.src.sim.gis.LinePoint

public class LinePoint
extends Object

This is a point that defines part of a line string adapter. It doesn't contain many of the DefaultNode methods, because each of these has exactly one toNode and one From node. They are represented as com.vividsolutions.jts.geom.Points, however, so all of the jts algorithms will work on the included geometry.


Constructor Summary
LinePoint(com.vividsolutions.jts.geom.Coordinate c)
           
LinePoint(com.vividsolutions.jts.geom.Geometry g)
           
 
Method Summary
 LinePoint getFromPoint()
          return the point immediately followin this one.
 float getStrength()
          strength is equivelent to distance
 LinePoint getToPoint()
          return the point immediately preceding this one.
 double getX()
           
 double getY()
           
 void setFromPoint(LinePoint from)
          set the point immediately preceding this one.
 void setStrength(float strength)
          strength is equivelent to distance
 void setToPoint(LinePoint to)
          set the point immediately following this one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinePoint

public LinePoint(com.vividsolutions.jts.geom.Geometry g)

LinePoint

public LinePoint(com.vividsolutions.jts.geom.Coordinate c)
Method Detail

getStrength

public float getStrength()
strength is equivelent to distance

Returns:

setStrength

public void setStrength(float strength)
strength is equivelent to distance


getX

public double getX()

getY

public double getY()

getToPoint

public LinePoint getToPoint()
return the point immediately preceding this one.

Returns:

getFromPoint

public LinePoint getFromPoint()
return the point immediately followin this one.

Returns:

setToPoint

public void setToPoint(LinePoint to)
set the point immediately following this one.

Parameters:
to -

setFromPoint

public void setFromPoint(LinePoint from)
set the point immediately preceding this one.

Parameters:
from -

RePast
v. 2.0

Bug reports and feature requests to RePast