edu.sc.seis.fissuresUtil.hibernate
Class ChannelGroup

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.hibernate.ChannelGroup

public class ChannelGroup
extends java.lang.Object


Field Summary
protected  int dbid
           
 
Constructor Summary
protected ChannelGroup()
           
  ChannelGroup(edu.iris.Fissures.network.ChannelImpl[] channels)
           
 
Method Summary
 boolean areEqual(ChannelGroup other)
           
 boolean contains(edu.iris.Fissures.IfNetwork.Channel c)
           
 edu.iris.Fissures.network.ChannelImpl getChannel(edu.iris.Fissures.IfNetwork.ChannelId chanId, edu.iris.Fissures.IfEvent.EventAccessOperations event)
          Gets the channel that corresponds to this channelId from the ChannelGroup.
 edu.iris.Fissures.network.ChannelImpl getChannel1()
           
 edu.iris.Fissures.network.ChannelImpl getChannel2()
           
 edu.iris.Fissures.network.ChannelImpl getChannel3()
           
 edu.iris.Fissures.network.ChannelImpl[] getChannels()
           
 int getDbid()
           
 edu.iris.Fissures.network.ChannelImpl[] getHorizontal()
          Finds the 2 horizontal channels.
 edu.iris.Fissures.network.ChannelImpl[] getHorizontalXY()
          Gets the horizontals as X and Y, so that the first channel's azimuth is the seconds + 90 degrees, ie x -> east and y -> north.
 edu.iris.Fissures.network.NetworkAttrImpl getNetworkAttr()
           
 edu.iris.Fissures.network.ChannelImpl getRadial(edu.iris.Fissures.IfEvent.EventAccessOperations event)
           
 edu.iris.Fissures.network.ChannelImpl getRadial(edu.iris.Fissures.Location eventLoc)
           
 edu.iris.Fissures.network.StationImpl getStation()
           
 edu.iris.Fissures.network.ChannelImpl getTransverse(edu.iris.Fissures.IfEvent.EventAccessOperations event)
           
 edu.iris.Fissures.network.ChannelImpl getTransverse(edu.iris.Fissures.Location eventLoc)
           
 edu.iris.Fissures.network.ChannelImpl getVertical()
          Finds the vertical channel.
 void makeTransverseAndRadial(int transverseIndex, int radialIndex, edu.iris.Fissures.IfEvent.EventAccessOperations event)
          replaces the horizontal components with their radial and transverse versions in the ChannelGroup This should only be called if the seismograms that are accompanying this ChannelGroup through the vector process sequence have been rotated.
protected  void setChannel1(edu.iris.Fissures.network.ChannelImpl chan)
           
protected  void setChannel2(edu.iris.Fissures.network.ChannelImpl chan)
           
protected  void setChannel3(edu.iris.Fissures.network.ChannelImpl chan)
           
protected  void setDbid(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbid

protected int dbid
Constructor Detail

ChannelGroup

public ChannelGroup(edu.iris.Fissures.network.ChannelImpl[] channels)

ChannelGroup

protected ChannelGroup()
Method Detail

setDbid

protected void setDbid(int i)

getDbid

public int getDbid()

getChannels

public edu.iris.Fissures.network.ChannelImpl[] getChannels()

contains

public boolean contains(edu.iris.Fissures.IfNetwork.Channel c)

getVertical

public edu.iris.Fissures.network.ChannelImpl getVertical()
Finds the vertical channel. If no channel has a dip of -90 then null is returned.


getHorizontal

public edu.iris.Fissures.network.ChannelImpl[] getHorizontal()
Finds the 2 horizontal channels.


getHorizontalXY

public edu.iris.Fissures.network.ChannelImpl[] getHorizontalXY()
Gets the horizontals as X and Y, so that the first channel's azimuth is the seconds + 90 degrees, ie x -> east and y -> north. If this is not possible, then a zero length array is returned.


getChannel

public edu.iris.Fissures.network.ChannelImpl getChannel(edu.iris.Fissures.IfNetwork.ChannelId chanId,
                                                        edu.iris.Fissures.IfEvent.EventAccessOperations event)
Gets the channel that corresponds to this channelId from the ChannelGroup. The Event is needed in case this channel id comes from a seismogram that has been rotated to GCP, ie it has R or T as its orientation code.


makeTransverseAndRadial

public void makeTransverseAndRadial(int transverseIndex,
                                    int radialIndex,
                                    edu.iris.Fissures.IfEvent.EventAccessOperations event)
replaces the horizontal components with their radial and transverse versions in the ChannelGroup This should only be called if the seismograms that are accompanying this ChannelGroup through the vector process sequence have been rotated.


getRadial

public edu.iris.Fissures.network.ChannelImpl getRadial(edu.iris.Fissures.IfEvent.EventAccessOperations event)

getRadial

public edu.iris.Fissures.network.ChannelImpl getRadial(edu.iris.Fissures.Location eventLoc)

getTransverse

public edu.iris.Fissures.network.ChannelImpl getTransverse(edu.iris.Fissures.IfEvent.EventAccessOperations event)

getTransverse

public edu.iris.Fissures.network.ChannelImpl getTransverse(edu.iris.Fissures.Location eventLoc)

getChannel1

public edu.iris.Fissures.network.ChannelImpl getChannel1()

getChannel2

public edu.iris.Fissures.network.ChannelImpl getChannel2()

getChannel3

public edu.iris.Fissures.network.ChannelImpl getChannel3()

getStation

public edu.iris.Fissures.network.StationImpl getStation()

getNetworkAttr

public edu.iris.Fissures.network.NetworkAttrImpl getNetworkAttr()

areEqual

public boolean areEqual(ChannelGroup other)

setChannel1

protected void setChannel1(edu.iris.Fissures.network.ChannelImpl chan)

setChannel2

protected void setChannel2(edu.iris.Fissures.network.ChannelImpl chan)

setChannel3

protected void setChannel3(edu.iris.Fissures.network.ChannelImpl chan)