Package edu.sc.seis.TauP
Class PhaseName
- java.lang.Object
-
- edu.sc.seis.TauP.PhaseName
-
- All Implemented Interfaces:
java.io.Serializable
public class PhaseName extends java.lang.Object implements java.io.SerializableConvenience class that allows sac header variables to be associated with a seismic phase name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringnamename of the phase, ie PKIKPintsacTNumsac t header to be associated with the phasejava.util.ArrayList<java.lang.Integer>sacTNumTriplicationlist of sac t headers to be associated with the phase, including n triplications
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(PhaseName obj)java.lang.StringgetName()static PhaseNameparseName(java.lang.String name)intsacTNumForTriplication(int index)Gets sac header for the index triplication.java.lang.StringtoString()
-
-
-
Field Detail
-
name
public java.lang.String name
name of the phase, ie PKIKP
-
sacTNum
public int sacTNum
sac t header to be associated with the phase
-
sacTNumTriplication
public java.util.ArrayList<java.lang.Integer> sacTNumTriplication
list of sac t headers to be associated with the phase, including n triplications
-
-
Constructor Detail
-
PhaseName
public PhaseName(java.lang.String name) throws PhaseParseException- Throws:
PhaseParseException
-
PhaseName
public PhaseName(java.lang.String name, int sacTNum) throws PhaseParseException- Throws:
PhaseParseException
-
PhaseName
public PhaseName(java.lang.String name, java.lang.String sacTNumList) throws PhaseParseException- Throws:
PhaseParseException
-
-
Method Detail
-
parseName
public static PhaseName parseName(java.lang.String name) throws PhaseParseException
- Throws:
PhaseParseException
-
equals
public boolean equals(PhaseName obj)
-
getName
public java.lang.String getName()
-
sacTNumForTriplication
public int sacTNumForTriplication(int index)
Gets sac header for the index triplication. Zero is the first arrival, 1 is next arrival, etc. Index zero should be same as this.sacTNum.- Parameters:
index- triplication index- Returns:
- index arrival for the phase
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-