edu.sc.seis.fissuresUtil.chooser
Class ChannelGrouperImpl

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.chooser.ChannelGrouperImpl

public class ChannelGrouperImpl
extends java.lang.Object

ChannelGrouperImpl.java Created: Fri Jun 21 15:06:45 2002


Constructor Summary
ChannelGrouperImpl()
          Creates a new ChannelGrouperImpl instance.
 
Method Summary
 edu.iris.Fissures.IfNetwork.Channel[] retrieve_grouping(edu.iris.Fissures.IfNetwork.Channel[] channels, edu.iris.Fissures.IfNetwork.Channel channel)
          Given a channel and an array of Channels, this method returns the ChannelGroup as an array of Channels corresponding to channel.
 edu.iris.Fissures.IfNetwork.ChannelId[] retrieve_grouping(edu.iris.Fissures.IfNetwork.ChannelId[] channelIds, edu.iris.Fissures.IfNetwork.ChannelId channelId)
          Given a channelId and an array of ChannelIds, this method returns the ChannelGroup as an array of ChannelIds corresponding to channelId.
 edu.iris.Fissures.IfNetwork.ChannelId[] sortChannelGroup(edu.iris.Fissures.IfNetwork.ChannelId[] channelIds)
          Given an array of channelIds this method returns sorted array of channelIds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelGrouperImpl

public ChannelGrouperImpl()
Creates a new ChannelGrouperImpl instance.

Method Detail

retrieve_grouping

public edu.iris.Fissures.IfNetwork.Channel[] retrieve_grouping(edu.iris.Fissures.IfNetwork.Channel[] channels,
                                                               edu.iris.Fissures.IfNetwork.Channel channel)
Given a channel and an array of Channels, this method returns the ChannelGroup as an array of Channels corresponding to channel.

Parameters:
channels - a Channel[] value
channel - a Channel value
Returns:
a Channel[] value

retrieve_grouping

public edu.iris.Fissures.IfNetwork.ChannelId[] retrieve_grouping(edu.iris.Fissures.IfNetwork.ChannelId[] channelIds,
                                                                 edu.iris.Fissures.IfNetwork.ChannelId channelId)
Given a channelId and an array of ChannelIds, this method returns the ChannelGroup as an array of ChannelIds corresponding to channelId.

Parameters:
channelIds - a ChannelId[] value
channelId - a ChannelId value
Returns:
a ChannelId[] value

sortChannelGroup

public edu.iris.Fissures.IfNetwork.ChannelId[] sortChannelGroup(edu.iris.Fissures.IfNetwork.ChannelId[] channelIds)
Given an array of channelIds this method returns sorted array of channelIds. It sorts the channelIds based on the channel code.

Parameters:
channelIds - a ChannelId[] value
Returns:
a ChannelId[] value