org.opensha.gem.GEM1.calc.gemLogicTree
Interface GemLogicTreeAPI<Element>

All Superinterfaces:
Iterable<Element>
All Known Implementing Classes:
GemLogicTree

public interface GemLogicTreeAPI<Element>
extends Iterable<Element>


Method Summary
 void addBranchingLevel(GemLogicTreeBranchingLevel branLev)
           
 void addEBMapping(String str, Element obj)
           
 GemLogicTreeBranchingLevel getBranchingLevel(int idx)
           
 ArrayList<GemLogicTreeBranchingLevel> getBranchingLevelsList()
           
 HashMap<String,Element> getEBMap()
           
 String getModelName()
           
 double getTotWeight(String lab)
           
 double getWeight(String lab)
           
 int sampleBranchingLevel(int branchingLevelIndex)
           
 void saveGemLogicTreeModel(String fileName)
           
 void setModelName(String str)
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

addBranchingLevel

void addBranchingLevel(GemLogicTreeBranchingLevel branLev)

getBranchingLevelsList

ArrayList<GemLogicTreeBranchingLevel> getBranchingLevelsList()

getBranchingLevel

GemLogicTreeBranchingLevel getBranchingLevel(int idx)

addEBMapping

void addEBMapping(String str,
                  Element obj)

getEBMap

HashMap<String,Element> getEBMap()

setModelName

void setModelName(String str)

getModelName

String getModelName()

getWeight

double getWeight(String lab)

getTotWeight

double getTotWeight(String lab)

saveGemLogicTreeModel

void saveGemLogicTreeModel(String fileName)
                           throws Exception
Throws:
Exception

sampleBranchingLevel

int sampleBranchingLevel(int branchingLevelIndex)