Class Network
- java.lang.Object
-
- edu.sc.seis.seisFile.fdsnws.stationxml.BaseNodeType
-
- edu.sc.seis.seisFile.fdsnws.stationxml.Network
-
public class Network extends BaseNodeType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassociateInDb(Network net)java.lang.StringgetNetworkCode()java.lang.StringgetNetworkId()Same as getNetworkCode() for permanent networks, but the start year is appended for temporary networks to make the code unique.intgetSelectedNumStations()intgetStartYear()java.lang.StringgetStartYearString()StationIteratorgetStations()intgetTotalNumStations()booleanisTemporary()voidsetNetworkCode(java.lang.String code)voidsetSelectedNumStations(int selectedNumStations)voidsetStations(StationIterator stations)voidsetTotalNumStations(int totalNumStations)java.lang.StringtoString()-
Methods inherited from class edu.sc.seis.seisFile.fdsnws.stationxml.BaseNodeType
addComment, getAlternateCode, getCode, getCommentList, getDataAvailability, getDbid, getDescription, getEndDate, getEndDateTime, getHistoricalCode, getIdentifierList, getRestrictedStatus, getStartDate, getStartDateTime, setAlternateCode, setCode, setCommentList, setDataAvailability, setDescription, setEndDate, setEndDateTime, setHistoricalCode, setRestrictedStatus, setStartDate, setStartDateTime
-
-
-
-
Constructor Detail
-
Network
public Network()
-
Network
public Network(java.lang.String code)
-
Network
public Network(javax.xml.stream.XMLEventReader reader) throws javax.xml.stream.XMLStreamException, StationXMLException- Throws:
javax.xml.stream.XMLStreamExceptionStationXMLException
-
-
Method Detail
-
getNetworkId
public java.lang.String getNetworkId()
Same as getNetworkCode() for permanent networks, but the start year is appended for temporary networks to make the code unique. For example for the CO network this returns CO, but for the XC network that started in 1991 it returns XC1991.- Returns:
-
getNetworkCode
public java.lang.String getNetworkCode()
-
setNetworkCode
public void setNetworkCode(java.lang.String code)
-
getStations
public StationIterator getStations()
-
getTotalNumStations
public int getTotalNumStations()
-
getSelectedNumStations
public int getSelectedNumStations()
-
setTotalNumStations
public void setTotalNumStations(int totalNumStations)
-
setSelectedNumStations
public void setSelectedNumStations(int selectedNumStations)
-
setStations
public void setStations(StationIterator stations)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getStartYear
public int getStartYear()
-
getStartYearString
public java.lang.String getStartYearString()
-
isTemporary
public boolean isTemporary()
-
associateInDb
public void associateInDb(Network net)
-
-