Package edu.sc.seis.sod
Class EventNetworkPair
java.lang.Object
edu.sc.seis.sod.WaveformWorkUnit
edu.sc.seis.sod.AbstractEventPair
edu.sc.seis.sod.EventNetworkPair
- All Implemented Interfaces:
java.lang.Runnable
public class EventNetworkPair extends AbstractEventPair
-
Field Summary
Fields inherited from class edu.sc.seis.sod.WaveformWorkUnit
dbid, failLogger, lastQuery, numRetries
-
Constructor Summary
Constructors Modifier Constructor Description protected
EventNetworkPair()
for hibernateEventNetworkPair(StatefulEvent event, edu.iris.Fissures.network.NetworkAttrImpl net)
EventNetworkPair(StatefulEvent event, edu.iris.Fissures.network.NetworkAttrImpl net, Status status)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
edu.iris.Fissures.network.NetworkAttrImpl
getNetwork()
int
getNetworkDbId()
int
hashCode()
void
run()
protected void
setNetwork(edu.iris.Fissures.network.NetworkAttrImpl attr)
for use by hibernatejava.lang.String
toString()
void
update(Status status)
sets the status on this event network pair to be status and notifies its parentMethods inherited from class edu.sc.seis.sod.AbstractEventPair
getEvent, getEventDbId, getStatus, setEvent, setStatus, update
Methods inherited from class edu.sc.seis.sod.WaveformWorkUnit
getDbid, getLastQuery, getNumRetries, setDbid, setLastQuery, setNumRetries, updateRetries
-
Constructor Details
-
EventNetworkPair
protected EventNetworkPair()for hibernate -
EventNetworkPair
-
EventNetworkPair
public EventNetworkPair(StatefulEvent event, edu.iris.Fissures.network.NetworkAttrImpl net, Status status)
-
-
Method Details
-
run
public void run() -
update
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
-
getNetworkDbId
public int getNetworkDbId() -
getNetwork
public edu.iris.Fissures.network.NetworkAttrImpl getNetwork() -
setNetwork
protected void setNetwork(edu.iris.Fissures.network.NetworkAttrImpl attr)for use by hibernate
-