org.opensha.refFaultParamDb.vo
Class FaultSectionConnection

java.lang.Object
  extended by org.opensha.refFaultParamDb.vo.FaultSectionConnection

public class FaultSectionConnection
extends Object


Constructor Summary
FaultSectionConnection(int id1, int id2, Location loc1, Location loc2)
           
 
Method Summary
 double calcDistance()
           
 int getId1()
           
 int getId2()
           
 Location getLoc1()
           
 Location getLoc2()
           
 Location getLocationForID(int id)
           
 boolean involvesSection(int id)
           
 boolean involvesSectionAtLocation(int id, Location loc)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FaultSectionConnection

public FaultSectionConnection(int id1,
                              int id2,
                              Location loc1,
                              Location loc2)
Method Detail

getId1

public int getId1()

getId2

public int getId2()

getLoc1

public Location getLoc1()

getLoc2

public Location getLoc2()

involvesSection

public boolean involvesSection(int id)

involvesSectionAtLocation

public boolean involvesSectionAtLocation(int id,
                                         Location loc)

getLocationForID

public Location getLocationForID(int id)

calcDistance

public double calcDistance()
Returns:
the horizontal distance between the two locations

toString

public String toString()
Overrides:
toString in class Object