Class EventStationPair
java.lang.Object
edu.sc.seis.sod.hibernate.eventpair.WaveformWorkUnit
edu.sc.seis.sod.hibernate.eventpair.AbstractEventPair
edu.sc.seis.sod.hibernate.eventpair.CookieEventPair
edu.sc.seis.sod.hibernate.eventpair.EventStationPair
- All Implemented Interfaces:
java.lang.Runnable
public class EventStationPair extends CookieEventPair
-
Field Summary
Fields inherited from class edu.sc.seis.sod.hibernate.eventpair.WaveformWorkUnit
dbid, failLogger, lastQuery, numRetries
-
Constructor Summary
Constructors Modifier Constructor Description protected
EventStationPair()
for hibernateEventStationPair(edu.sc.seis.sod.model.event.StatefulEvent event, edu.sc.seis.seisFile.fdsnws.stationxml.Station station)
EventStationPair(edu.sc.seis.sod.model.event.StatefulEvent event, edu.sc.seis.seisFile.fdsnws.stationxml.Station station, edu.sc.seis.sod.model.status.Status status)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
edu.sc.seis.seisFile.fdsnws.stationxml.Station
getStation()
int
getStationDbId()
int
hashCode()
void
run()
protected void
setStation(edu.sc.seis.seisFile.fdsnws.stationxml.Station sta)
for use by hibernatejava.lang.String
toString()
void
update(edu.sc.seis.sod.model.status.Status status)
sets the status on this event network pair to be status and notifies its parentMethods inherited from class edu.sc.seis.sod.hibernate.eventpair.CookieEventPair
getMeasurements, getMeasurementsStr, setMeasurementsStr, setStatus
Methods inherited from class edu.sc.seis.sod.hibernate.eventpair.AbstractEventPair
addStatusNotify, getEvent, getEventDbId, getStatus, setEvent, update
Methods inherited from class edu.sc.seis.sod.hibernate.eventpair.WaveformWorkUnit
getDbid, getLastQuery, getNumRetries, setDbid, setLastQuery, setNumRetries, updateRetries
-
Constructor Details
-
EventStationPair
protected EventStationPair()for hibernate -
EventStationPair
public EventStationPair(edu.sc.seis.sod.model.event.StatefulEvent event, edu.sc.seis.seisFile.fdsnws.stationxml.Station station) -
EventStationPair
public EventStationPair(edu.sc.seis.sod.model.event.StatefulEvent event, edu.sc.seis.seisFile.fdsnws.stationxml.Station station, edu.sc.seis.sod.model.status.Status status)
-
-
Method Details
-
run
public void run() -
update
public void update(edu.sc.seis.sod.model.status.Status status)sets the status on this event network pair to be status and notifies its parent- Specified by:
update
in classAbstractEventPair
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classWaveformWorkUnit
-
hashCode
public int hashCode()- Overrides:
hashCode
in classWaveformWorkUnit
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getStationDbId
public int getStationDbId() -
getStation
public edu.sc.seis.seisFile.fdsnws.stationxml.Station getStation() -
setStation
protected void setStation(edu.sc.seis.seisFile.fdsnws.stationxml.Station sta)for use by hibernate
-