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()Response(java.util.List<ResponseStage> responseStageList, InstrumentSensitivity instrumentSensitivity, InstrumentPolynomial instrumentPolynomial)Response(javax.xml.stream.XMLEventReader reader) -
Method Summary
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)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Response
public Response() -
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 Details
-
isValid
Deprecated. -
isValid
-
checkResponse
- Throws:
InvalidResponse
-
repairResponse
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
-
getResponseStageList
-
getInstrumentSensitivity
-
setInstrumentSensitivity
-
getInstrumentPolynomial
-
getResourceId
public java.lang.String getResourceId()
-
InstrumentSensitivity.isValid(InstrumentSensitivity)instead