org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.rupCalc
Class TreeBranch

java.lang.Object
  extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.rupCalc.TreeBranch

public class TreeBranch
extends Object

Title: TreeBranch.java

Description: This refers to a branch of a tree

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
TreeBranch(int subSectionId)
           
 
Method Summary
 void addAdjacentSubSection(int subSectionId)
          Add adjacent sub section (if it does not exist already)
 int getAdjacentSubSection(int index)
          Get the adjancet subsection at the specified index
 ArrayList<Integer> getAdjacentSubSectionsList()
          Get a list of all adjacent subsections
 int getNumAdjacentSubsections()
          Get number of adjacent subsections to this section
 int getSubSectionId()
          Get sub-section id
 boolean isAdjacentSubSection(int subSectionId)
          Is the specified sub section adjacent to this sub section?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeBranch

public TreeBranch(int subSectionId)
Method Detail

getSubSectionId

public int getSubSectionId()
Get sub-section id

Returns:

getNumAdjacentSubsections

public int getNumAdjacentSubsections()
Get number of adjacent subsections to this section

Returns:

getAdjacentSubSection

public int getAdjacentSubSection(int index)
Get the adjancet subsection at the specified index

Parameters:
index -
Returns:

getAdjacentSubSectionsList

public ArrayList<Integer> getAdjacentSubSectionsList()
Get a list of all adjacent subsections

Returns:

addAdjacentSubSection

public void addAdjacentSubSection(int subSectionId)
Add adjacent sub section (if it does not exist already)

Parameters:
subSectionName -

isAdjacentSubSection

public boolean isAdjacentSubSection(int subSectionId)
Is the specified sub section adjacent to this sub section?

Parameters:
subSectionName -
Returns: