Package edu.sc.seis.TauP
Class ProtoSeismicPhase
- java.lang.Object
-
- edu.sc.seis.TauP.ProtoSeismicPhase
-
- All Implemented Interfaces:
java.lang.Comparable<ProtoSeismicPhase>
public class ProtoSeismicPhase extends java.lang.Object implements java.lang.Comparable<ProtoSeismicPhase>
-
-
Constructor Summary
Constructors Constructor Description ProtoSeismicPhase(java.util.List<SeismicPhaseSegment> segmentList, double receiverDepth)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SeismicPhaseSegment seg)
protected SeismicPhaseSegment
addFlatBranch(TauModel tMod, int branch, boolean isPWave, PhaseInteraction prevEndAction, PhaseInteraction endAction, java.lang.String currLeg)
SeismicPhaseSegment
addToBranch(TauModel tMod, int oldstartBranch, int endBranch, boolean isPWave, boolean nextIsPWave, PhaseInteraction endAction, java.lang.String currLeg)
SeismicPhase
asSeismicPhase()
java.util.List<java.lang.Integer>
branchNumSeg()
java.lang.String
branchNumSeqStr()
int
calcInteractionNumber()
int
calcStartBranch(java.lang.String currLeg)
int
compareTo(ProtoSeismicPhase o)
int
countDiffLegs()
int
countFlatLegs()
int
countHeadLegs()
SeismicPhaseSegment
endSegment()
static ProtoSeismicPhase
failNewPhase(TauModel tMod, boolean isPWave, boolean isDownGoing, double receiverDepth, java.lang.String phaseName, java.lang.String reason)
void
failNext(java.lang.String reason)
static int
findEndDiscon(TauModel tMod, int startBranchNum, boolean isPWave, boolean isDowngoing)
SeismicPhaseSegment
get(int i)
java.lang.String
getName()
java.lang.String
getPuristName()
boolean
isEmpty()
boolean
isSuccessful()
static java.lang.String
legNameForSegment(TauModel tMod, int endBranch, boolean isPWave, boolean isDownGoing, PhaseInteraction endAction)
static java.lang.String
legNameForSegment(TauModel tMod, SeismicPhaseSegment seg)
ProtoSeismicPhase
nextSegment(boolean isPWave, PhaseInteraction endAction)
java.lang.String
phaseNameForSegments()
java.lang.String
phaseNameForSegments(boolean zapED)
int
size()
static ProtoSeismicPhase
start(SeismicPhaseSegment startSeg, double receiverDepth)
static ProtoSeismicPhase
startEmpty(java.lang.String phaseName, TauModel tMod, double receiverDepth)
static ProtoSeismicPhase
startNewPhase(TauModel tMod, boolean isPWave, PhaseInteraction endAction, boolean isDownGoing, double receiverDepth)
void
validateSegList()
-
-
-
Constructor Detail
-
ProtoSeismicPhase
public ProtoSeismicPhase(java.util.List<SeismicPhaseSegment> segmentList, double receiverDepth)
-
-
Method Detail
-
startEmpty
public static ProtoSeismicPhase startEmpty(java.lang.String phaseName, TauModel tMod, double receiverDepth)
-
start
public static ProtoSeismicPhase start(SeismicPhaseSegment startSeg, double receiverDepth)
-
failNewPhase
public static ProtoSeismicPhase failNewPhase(TauModel tMod, boolean isPWave, boolean isDownGoing, double receiverDepth, java.lang.String phaseName, java.lang.String reason)
-
startNewPhase
public static ProtoSeismicPhase startNewPhase(TauModel tMod, boolean isPWave, PhaseInteraction endAction, boolean isDownGoing, double receiverDepth) throws TauPException
- Throws:
TauPException
-
failNext
public void failNext(java.lang.String reason)
-
nextSegment
public ProtoSeismicPhase nextSegment(boolean isPWave, PhaseInteraction endAction) throws TauModelException
- Throws:
TauModelException
-
findEndDiscon
public static int findEndDiscon(TauModel tMod, int startBranchNum, boolean isPWave, boolean isDowngoing)
-
validateSegList
public void validateSegList() throws TauModelException
- Throws:
TauModelException
-
get
public final SeismicPhaseSegment get(int i)
-
isEmpty
public final boolean isEmpty()
-
endSegment
public final SeismicPhaseSegment endSegment()
-
isSuccessful
public boolean isSuccessful()
-
size
public final int size()
-
countFlatLegs
public int countFlatLegs()
-
countHeadLegs
public int countHeadLegs()
-
countDiffLegs
public int countDiffLegs()
-
add
public final void add(SeismicPhaseSegment seg)
-
calcStartBranch
public int calcStartBranch(java.lang.String currLeg)
-
addToBranch
public SeismicPhaseSegment addToBranch(TauModel tMod, int oldstartBranch, int endBranch, boolean isPWave, boolean nextIsPWave, PhaseInteraction endAction, java.lang.String currLeg) throws TauModelException
- Throws:
TauModelException
-
addFlatBranch
protected SeismicPhaseSegment addFlatBranch(TauModel tMod, int branch, boolean isPWave, PhaseInteraction prevEndAction, PhaseInteraction endAction, java.lang.String currLeg) throws TauModelException
- Throws:
TauModelException
-
calcInteractionNumber
public int calcInteractionNumber()
-
phaseNameForSegments
public java.lang.String phaseNameForSegments()
-
phaseNameForSegments
public java.lang.String phaseNameForSegments(boolean zapED)
-
legNameForSegment
public static java.lang.String legNameForSegment(TauModel tMod, SeismicPhaseSegment seg)
-
legNameForSegment
public static java.lang.String legNameForSegment(TauModel tMod, int endBranch, boolean isPWave, boolean isDownGoing, PhaseInteraction endAction)
-
branchNumSeg
public java.util.List<java.lang.Integer> branchNumSeg()
-
branchNumSeqStr
public java.lang.String branchNumSeqStr()
-
asSeismicPhase
public SeismicPhase asSeismicPhase() throws TauModelException
- Throws:
TauModelException
-
getName
public java.lang.String getName()
-
getPuristName
public java.lang.String getPuristName()
-
compareTo
public int compareTo(ProtoSeismicPhase o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ProtoSeismicPhase>
-
-