Class Response
- java.lang.Object
-
- edu.sc.seis.seisFile.fdsnws.stationxml.Response
-
public class Response extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Response(java.util.List<ResponseStage> responseStageList, InstrumentSensitivity instrumentSensitivity, InstrumentPolynomial instrumentPolynomial)Response(javax.xml.stream.XMLEventReader reader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidcheckResponse(Response resp)ResponseStagegetFirstStage()InstrumentPolynomialgetInstrumentPolynomial()InstrumentSensitivitygetInstrumentSensitivity()java.lang.StringgetResourceId()java.util.List<ResponseStage>getResponseStageList()static booleanisValid(InstrumentSensitivity sens)Deprecated.static booleanisValid(Response resp)static voidrepairResponse(Response resp)Checks for nonsense sensitivity (overall gain of -1) and trys to repair by multiplying the gains of the individual stages.voidsetInstrumentSensitivity(InstrumentSensitivity sensitivity)
-
-
-
Constructor Detail
-
Response
public Response(java.util.List<ResponseStage> responseStageList, InstrumentSensitivity instrumentSensitivity, InstrumentPolynomial instrumentPolynomial)
-
Response
public Response(javax.xml.stream.XMLEventReader reader) throws javax.xml.stream.XMLStreamException, StationXMLException- Throws:
javax.xml.stream.XMLStreamExceptionStationXMLException
-
-
Method Detail
-
isValid
public static boolean isValid(InstrumentSensitivity sens)
Deprecated.
-
isValid
public static boolean isValid(Response resp)
-
checkResponse
public static void checkResponse(Response resp) throws InvalidResponse
- Throws:
InvalidResponse
-
repairResponse
public static void repairResponse(Response resp) throws InvalidResponse
Checks for nonsense sensitivity (overall gain of -1) and trys to repair by multiplying the gains of the individual stages. This only works if all the frequencys are either the same or zero. We assume a frequency of zero means that there is no frequnecy dependence for this stage.- Throws:
InvalidResponse
-
getFirstStage
public ResponseStage getFirstStage()
-
getResponseStageList
public java.util.List<ResponseStage> getResponseStageList()
-
getInstrumentSensitivity
public InstrumentSensitivity getInstrumentSensitivity()
-
setInstrumentSensitivity
public void setInstrumentSensitivity(InstrumentSensitivity sensitivity)
-
getInstrumentPolynomial
public InstrumentPolynomial getInstrumentPolynomial()
-
getResourceId
public java.lang.String getResourceId()
-
-